aws ec2 create-default-vpc
Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To create a default VPC
The following create-default-vpc example creates a default VPC.
aws ec2 create-default-vpcIdentifyIts output
{
"Vpc": {
"VpcId": "vpc-8eaae5ea",
"InstanceTenancy": "default",
"Tags": [],
"Ipv6CidrBlockAssociationSet": [],
"State": "pending",
"DhcpOptionsId": "dopt-af0c32c6",
"CidrBlock": "172.31.0.0/16",
"IsDefault": true
}
}For more information, see Work with your default VPC and default subnets in the Amazon VPC User Guide.
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.