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
Open the Amazon VPC console at https://console.amazonaws.cn/vpc/
. -
In the navigation pane, choose Endpoints.
-
Select the endpoint.
-
Choose Actions, Delete VPC endpoints.
-
When prompted for confirmation, enter
delete. -
Choose Delete.
To delete an endpoint using the command line
-
delete-vpc-endpoints (Amazon CLI)
-
Remove-EC2VpcEndpoint (Tools for Windows PowerShell)
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
Open the Amazon VPC console at https://console.amazonaws.cn/vpc/
. -
In the navigation pane, choose Endpoints.
-
Select the endpoint.
-
Choose Actions, and the appropriate option.
-
Follow the console steps to submit the update.
To update an endpoint using the command line
-
modify-vpc-endpoint (Amazon CLI)
-
Edit-EC2VpcEndpoint (Tools for Windows PowerShell)
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