aws::nat-gateway

Creates a Nat Gateway with the specified subnet id.

Example

Public NAT Gateway (default):

aws::nat-gateway nat-gateway-example
    elastic-ip: $(aws::elastic-ip elastic-ip-example-for-nat-gateway)
    internet-gateway: $(aws::internet-gateway internet-gateway-example)
    subnet: $(aws::subnet subnet-example-for-nat-gateway)

    tags: {
        Name: nat-gateway-example
    }
end

Private NAT Gateway:

aws::nat-gateway nat-gateway-private-example
    connectivity-type: "PRIVATE"
    subnet: $(aws::subnet subnet-example-for-nat-gateway)

    tags: {
        Name: nat-gateway-private-example
    }
end

Attributes

Attribute Description
connectivity-type The connectivity type of the NAT gateway. Defaults to public. Valid values are PUBLIC or PRIVATE.
elastic-ip The associated elastic IP for the Nat Gateway. Required for public NAT gateways.
subnet The associated subnet for the Nat Gateway. (Required)
internet-gateway The internet gateway required for a public Nat Gateway to be created. Required for public NAT gateways.

Outputs

Attribute Description
id The ID of the Nat Gateway.