May 2019
Intermediate to advanced
308 pages
8h 5m
English
Now, let's focus on the private subnets. The definition is the same as it is for the private subnets, except for their resource names, PrivateSubnetOne and PrivateSubnetTwo, and the CIDR IP ranges:
"PrivateSubnetOne" : { "Type" : "AWS::EC2::Subnet", "DependsOn" : "simpleVPC", "Properties" : { "VpcId" : { "Ref" : "simpleVPC" }, "CidrBlock" : "10.0.2.0/24", "AvailabilityZone" : "us-east-2a", "Tags" : [ {"Key" : "purpose", "Value" : "demo"} ] } }, "PrivateSubnetTwo" : { "Type" : "AWS::EC2::Subnet", "DependsOn" : "simpleVPC", "Properties" : { "VpcId" : { "Ref" : "simpleVPC" }, "CidrBlock" : "10.0.3.0/24", "AvailabilityZone" : "us-east-2b", "Tags" : [ {"Key" : "purpose", "Value" : "demo"} ] } },
Read now
Unlock full access