Subnet

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

Get AWS Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.