Resources: # NAT Gateway MYVPCEIP: Type: AWS::EC2::EIP Properties: Domain: vpc MYVPCNATGW: Type: AWS::EC2::NatGateway Properties: AllocationId: Fn::GetAtt: - MYVPCEIP - AllocationId SubnetId: Tags: - Key: Name Value: MYVPC-NATGW # Add Route - PrivateSubnet RouteTable MYVPCNATGWRoute: Type: AWS::EC2::Route DependsOn: MYVPCNATGW Properties: RouteTableId: DestinationCidrBlock: 0.0.0.0/0 NatGatewayId: !Ref MYVPCNATGW