euca-create-subnet

Creates a new VPC subnet.

Syntax

euca-create-subnet -c VPCID [-i CIDR] [-z AVAILABILITYZONE]
 [--show-empty-fields] [-U URL] [--region  USER@REGION]  [-I  KEY_ID] 
  [-S KEY] [--security-token TOKEN] [--debug] [--debugger] [--version] [-h]

Options

Option Description Required
-c, --vpc VPCID Specify the ID of the VPC in which to create the new subnet. Yes
-i, --cidr CIDR Specify the CIDR address block for the new subnet. Yes
-z, --availability-zone availabilityzone Specify the availability zone in which to create the new subnet. 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.

Output

If an output was requested, then Eucalyptus returns information about the newly created subnet.

Example

To create a VPC subnet 1bcb52d0 in the CIDR address block of 172.31.1.0/24:

euca-create-subnet -c vpc-1bcb52d0 -i 172.31.1.0/24
SUBNET	subnet-02cedfcf	available	vpc-1bcb52d0	172.31.1.0/24	251	PARTI00	false	false
x