Manage service-network endpoints
After you create a service-network endpoint, you can modify its security groups, subnets (add only), 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 service-network 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 a service-network endpoint
You can update a VPC endpoint.
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 adds a subnet to an existing service-network endpoint. Add subnets in a separate request, without other changes. You can't remove subnets from a service-network endpoint.
aws ec2 modify-vpc-endpoint \ --vpc-endpoint-id vpce-0123456789abcdef0 \ --add-subnet-ids subnet-0abc1234def567890