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"} }}