Created
February 19, 2019 23:55
-
-
Save eulersson/6e1656ef2b8469b2b2c5c0a46a92f328 to your computer and use it in GitHub Desktop.
VPC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VPC: | |
Type: AWS::EC2::VPC | |
Properties: | |
EnableDnsSupport: true | |
EnableDnsHostnames: true | |
CidrBlock: 10.0.0.0/16 | |
Tags: # You can give | |
- Key: Name # pretty names to | |
Value: ECSFS VPC # your resources. | |
PublicSubnetOne: | |
Type: AWS::EC2::Subnet | |
Properties: | |
# Select the first availability zone on our current region. | |
AvailabilityZone: !Select # !Select chooses an item from a list. | |
- 0 # First availability zone, since... | |
- Fn::GetAZs: !Ref AWS::Region # ...a region has various zones (list). | |
CidrBlock: 10.0.0.0/24 | |
VpcId: !Ref VPC | |
PublicSubnetTwo: | |
Type: AWS::EC2::Subnet | |
Properties: | |
AvailabilityZone: !Select | |
- 1 # Second availability zone under the same region. | |
- Fn::GetAZs: !Ref AWS::Region | |
CidrBlock: 10.0.1.0/24 | |
VpcId: !Ref VPC | |
PrivateSubnet: | |
Type: AWS::EC2::Subnet | |
Properties: | |
AvailabilityZone: !Select | |
- 0 | |
- Fn::GetAZs: !Ref AWS::Region | |
CidrBlock: 10.0.2.0/24 | |
VpcId: !Ref VPC | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment