Nat Gateway

The format for NAT Gateway is:

{  "Type" : "AWS::EC2::NatGateway",  "Properties" : {    "AllocationId" : String,    "SubnetId" : String  }}

Sno

Properties

Required

Type

1

AllocationId

Yes

String

2

SubnetId

Yes

String

Example:

"NATGateway" : {    "Type" : "AWS::EC2::NatGateway",    "DependsOn": "VPCGatewayAttach","Properties" : { "AllocationId" : { "Fn::GetAtt" : ["NATGatewayEIP", "AllocationId"]}, "SubnetId" : { "Ref" : "PublicSubnet"} }}

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.