Creates a new VPC NAT gateway.


euca-create-nat-gateway [-s SUBNETID] [-a ALLOCATIONID]
   [--show-empty-fields] [-U URL] [--region USER@REGION] [-I  KEY_ID]  
   [-S KEY] [--security-token TOKEN] [--debug] [--debugger] [--version] [-h]


Option Description Required
-s, --subnet-id subnetid The subnet in which to create the NAT gateway. No
-a, --allocation-id allocationid The allocation ID of an Elastic IP address to associate with the NAT gateway. No

Common Options

Option Description
--show-empty-fields Show empty fields as "(nil)".
--region user@region Region and/or user name to search when looking up config file data. Only valid for EC2 endpoints.
-U,--url url URL of the cloud service to connect to. For administrative commands, this should be <ip_address>:8773/services/Empyrean.
-I,--access-key-id key_id User's access key ID.
-S,--secret-key secret_key User's secret key.
--security-token token User's security token.
--debug Prints what the command sends to the server and what it receives from the server. Use when you're trying to debug Euca2ools.
--debugger Enable interactive debugger on error.
-h,--help Display the manual page for the command.
--version Display the version of this tool.


If an output was requested, then Eucalyptus returns a message stating that the NAT gateway was successfully created.


To create a NAT gateway on a newly created VPC subnet:

create-nat-gateway --subnet-id vpc-6017a79e --allocation-id eipalloc-077d6221
Note: A subnet with NAT gateway(s) should appear in the network broadcast even if there are no running instances in the subnet.