Skip to content

Instantly share code, notes, and snippets.

@AndrewBestbier
Created March 5, 2020 09:46
Show Gist options
  • Select an option

  • Save AndrewBestbier/b0e72fe3268b21b63b2fd911cf8dbbf8 to your computer and use it in GitHub Desktop.

Select an option

Save AndrewBestbier/b0e72fe3268b21b63b2fd911cf8dbbf8 to your computer and use it in GitHub Desktop.
PublicSubnetA: # (1)
Type: AWS::EC2::Subnet # (2)
Properties:
VpcId: !Ref VPC # (3)
CidrBlock: 10.0.0.0/24 # (4)
AvailabilityZone: !Select [0, !GetAZs ] # (5)
PublicSubnetB:
Type: AWS::EC2::Subnet
Properties:
VpcId: !Ref VPC
CidrBlock: 10.0.1.0/24
AvailabilityZone: !Select [1, !GetAZs ]
PrivateSubnetA:
Type: AWS::EC2::Subnet
Properties:
VpcId: !Ref VPC
CidrBlock: 10.0.2.0/24
AvailabilityZone: !Select [0, !GetAZs ]
PrivateSubnetB:
Type: AWS::EC2::Subnet
Properties:
VpcId: !Ref VPC
CidrBlock: 10.0.3.0/24
AvailabilityZone: !Select [1, !GetAZs ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment