VPCAddNATGateway

Description

Create network address translation (NAT) gateways in the specified subnets. You can use a NAT gateway so that instances in a private subnet can connect to services outside your VPC but external services cannot initiate a connection with those instances. For more information, see NAT Gateways in the Amazon VPC User Guide.

Resources

AWS::EC2::NatGateway

2 NAT Gateways. One for each subnets

AWS::EC2::EIP

2 EIPs. One for each NAT Gateways

AWS::EC2::Route

2 private routes. One for each NAT Gateways

Input

publicSubnet1

Logical ID of AWS::EC2::Subnet public subnet resource #1 in which you want to create a NAT gateway #1

privateRouteTable1

Logical ID of AWS::EC2::RouteTable private route table resource #1 to associate with NAT gateway #1

publicSubnet2

Logical ID of AWS::EC2::Subnet public subnet resource #1 in which you want to create a NAT gateway #2

privateRouteTable2

Logical ID of AWS::EC2::RouteTable private route table resource #2 to associate with NAT gateway #2

Output

None