Select

The select method is the CloudFormation Fn::Select equivalent.

Example Snippet

resource("Subnet0", "AWS::EC2::Subnet",
  VpcId: ref("Vpc"),
  CidrBlock: select("0", ref("DbSubnetIpBlocks"))
)

Example Output

Resources:
  Subnet0:
    Type: AWS::EC2::Subnet
    Properties:
      VpcId:
        Ref: Vpc
      CidrBlock:
        Fn::Select:
        - '0'
        - Ref: DbSubnetIpBlocks

Back to Intrinsic Functions List.

Pro tip: Use the <- and -> arrow keys to move back and forward.

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!