The format for subnet declaration is:
{"Type" : "AWS::EC2::Subnet","Properties" : { "AvailabilityZone" : String, "CidrBlock" : String, "MapPublicIpOnLaunch" : Boolean, "Tags" : [ Resource Tag, ... ], "VpcId" : String}}
Sno |
Properties |
Required |
Type |
Available values |
Default value |
1 |
AvailabilityZone |
No |
String |
Example: “us-east-1a” |
AWS automatically selects a zone |
2 |
CIDRBlock |
Yes |
String |
Example, 10.0.0.0/16 |
NA |
3 |
MapPublicIpOnLaunch |
No |
Boolean |
True/False |
FALSE |
4 |
Tags |
No |
String |
Key: String Value: String |
NA |
5 |
VpcId |
Yes |
Ref ID |
Example: "Ref": vpc-12345678 |
NA |