CmdID

CmdID / aws / aws ec2

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a default VPC

The following create-default-vpc example creates a default VPC.

aws ec2 create-default-vpcIdentify
Its 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

1 in the AWS CLI reference
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.