| Did this page help you? Yes No Tell us about it... |
Creates a VPC with the CIDR block you specify. The smallest VPC you can create uses a /28 netmask (16 IP addresses), and the largest uses a /16 netmask (65,536 IP addresses). To help you decide how big to make your VPC, go to Your VPC and Subnets in the Amazon Virtual Private Cloud User Guide.
By default, each instance you launch in the VPC has the default DHCP options that includes only a default DNS server that we provide (AmazonProvidedDNS).
For more information about Amazon Virtual Private Cloud and DHCP options, go to Using DHCP Options in Your VPC in the Amazon Virtual Private Cloud User Guide.
The short version of this command is ec2addvpc.
ec2-create-vpc
cidr
[tenancy]
| Name | Description | Required |
|---|---|---|
|
|
The CIDR block you want the VPC to cover Type: String Default: None Example: 10.0.0.0/16 |
Yes |
|
|
The supported tenancy of instances launched into the VPC.
A value of Type: String Default: default Valid Values: |
No |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
Output type identifier ("VPC")
VPC ID, which uniquely identifies the VPC
CIDR block of the VPC
The current state of the VPC (pending or available)
ID of DHCP options associated with the VPC (or default if none)
The allowed tenancy of instances launched into the VPC.
Amazon EC2 command line tools display errors on stderr.
This example creates a VPC with CIDR block 10.0.0.0/16.
PROMPT>ec2-create-vpc 10.0.0.0/16VPC vpc-1a2b3c4d pending 10.0.0.0/16 default