View a markdown version of this page

Manage resource endpoints - Amazon Virtual Private Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Manage resource endpoints

After you create a resource endpoint, you can manage its security groups, private DNS settings, or tags.

Delete an endpoint

When you are finished with a VPC endpoint, you can delete it.

To delete an endpoint using the console
  1. Open the Amazon VPC console at https://console.amazonaws.cn/vpc/.

  2. In the navigation pane, choose Endpoints.

  3. Select the endpoint.

  4. Choose Actions, Delete VPC endpoints.

  5. When prompted for confirmation, enter delete.

  6. Choose Delete.

To delete an endpoint using the command line

Update an endpoint

You can update a VPC endpoint. For resource endpoints, you can enable or disable private DNS, and change the private DNS preference and specified domains. For more information, see Custom domain names for resource consumers.

To update an endpoint using the console
  1. Open the Amazon VPC console at https://console.amazonaws.cn/vpc/.

  2. In the navigation pane, choose Endpoints.

  3. Select the endpoint.

  4. Choose Actions, and the appropriate option.

  5. Follow the console steps to submit the update.

To update an endpoint using the command line

The following example changes a resource VPC endpoint so that VPC Lattice provisions private hosted zones for verified domains and for example.com and *.example.org. The change applies only to resource configurations added after the update.

aws ec2 modify-vpc-endpoint \ --vpc-endpoint-id vpce-0123456789abcdef0 \ --dns-options '{"PrivateDnsPreference":"VERIFIED_DOMAINS_AND_SPECIFIED_DOMAINS","PrivateDnsSpecifiedDomains":["example.com","*.example.org"]}'

The following example enables private DNS on an existing endpoint.

aws ec2 modify-vpc-endpoint \ --vpc-endpoint-id vpce-0123456789abcdef0 \ --private-dns-enabled