CmdID

CmdID / aws / aws ec2

aws ec2 modify-vpc-attribute

Modifies the specified attribute of the specified VPC. AWS CLI reference

2 examples 4 options 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

Example 1: To modify the enableDnsSupport attribute

The following modify-vpc-attribute example modifies the enableDnsSupport attribute. This attribute indicates whether DNS resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for your instances to their corresponding IP addresses; otherwise, it does not.

aws ec2 modify-vpc-attribute --vpc-id vpc-a01106c2 --enable-dns-support "{\"Value\":false}"Identify
--vpc-idThe ID of the VPC.
--enable-dns-supportIndicates whether the DNS resolution is supported for the VPC.

This command produces no output.

For more information, see View and update DNS attributes for your VPC in the Amazon VPC User Guide.

Example 2: To modify the enableDnsHostnames attribute

The following modify-vpc-attribute example modifies the enableDnsHostnames attribute. This attribute indicates whether instances launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames; otherwise, they do not.

aws ec2 modify-vpc-attribute --vpc-id vpc-a01106c2 --enable-dns-hostnames "{\"Value\":false}"Identify
--vpc-idThe ID of the VPC.
--enable-dns-hostnamesIndicates whether the instances launched in the VPC get DNS hostnames.

This command produces no output.

For more information, see View and update DNS attributes for your VPC in the Amazon VPC User Guide.

Options

4 in the AWS CLI reference
--enable-dns-hostnamesIndicates whether the instances launched in the VPC get DNS hostnames.
--enable-dns-supportIndicates whether the DNS resolution is supported for the VPC.
--enable-network-address-usage-metricsIndicates whether Network Address Usage metrics are enabled for your VPC.
--vpc-idThe ID of the VPC.