Access an Amazon Web Service using an interface VPC endpoint - 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.

Access an Amazon Web Service using an interface VPC endpoint

You can create an interface VPC endpoint to connect to services powered by Amazon PrivateLink, including many Amazon Web Services.

For each subnet that you specify from your VPC, we create an endpoint network interface in the subnet and assign it a private IP address from the subnet address range. An endpoint network interface is a requester-managed network interface; you can view it in your Amazon Web Services account, but you can't manage it yourself.

Considerations

  • Interface VPC endpoints support traffic only over TCP.

  • Amazon Web Services accept connection requests automatically. The service can't initiate requests to resources in your VPC through the VPC endpoint. The endpoint only returns responses to traffic that was initiated by resources in your VPC.

  • The DNS names created for VPC endpoints are publicly resolvable. They resolve to the private IP addresses of the endpoint network interfaces for the enabled Availability Zones. The private DNS names are not publicly resolvable.

  • By default, each interface endpoint can support a bandwidth of up to 10 Gbps per Availability Zone and automatically scales up to 100 Gbps. If your application needs higher throughput per zone, contact Amazon Web Services Support.

  • There are quotas on your Amazon PrivateLink resources. For more information, see Amazon PrivateLink quotas.

Prerequisites

  • Create a private subnet in your VPC and deploy the resources that will access the Amazon Web Service using the VPC endpoint in the private subnet.

  • To use private DNS, you must enable DNS hostnames and DNS resolution for your VPC. For more information, see View and update DNS attributes in the Amazon VPC User Guide.

  • The security group for the interface endpoint must allow communication between the endpoint network interface and the resources in your VPC that must communicate with the service. By default, the interface endpoint uses the default security group for the VPC. Alternatively, you can create a security group to control the traffic to the endpoint network interfaces from the resources in the VPC. To ensure that tools such as the Amazon CLI can make requests over HTTPS from resources in the VPC to the Amazon Web Service, the security group must allow inbound HTTPS traffic.

  • If your resources are in a subnet with a network ACL, verify that the network ACL allows traffic between the endpoint network interfaces and the resources in the VPC.

Create a VPC endpoint

Use the following procedure to create an interface VPC endpoint that connects to an Amazon Web Service.

To create an interface endpoint for an Amazon Web Service
  1. Open the Amazon VPC console at https://console.amazonaws.cn/vpc/.

  2. In the navigation pane, choose Endpoints.

  3. Choose Create endpoint.

  4. For Service category, choose Amazon Web Services.

  5. For Service name, select the service. For more information, see Amazon Web Services that integrate with Amazon PrivateLink.

  6. For VPC, select the VPC from which you'll access the Amazon Web Service.

  7. To create an interface endpoint for Amazon S3, you must clear Additional settings, Enable DNS name. This is because Amazon S3 does not support private DNS for interface VPC endpoints.

  8. For Subnets, select one subnet per Availability Zone from which you'll access the Amazon Web Service.

  9. For Security group, select the security groups to associate with the endpoint network interfaces. The security group rules must allow resources that will use the VPC endpoint to communicate with the Amazon Web Service to communicate with the endpoint network interface.

  10. For Policy, select Full access to allow all operations by all principals on all resources over the VPC endpoint. Otherwise, select Custom to attach a VPC endpoint policy that controls the permissions that principals have for performing actions on resources over the VPC endpoint. This option is available only if the service supports VPC endpoint policies. For more information, see VPC endpoint policies.

  11. (Optional) To add a tag, choose Add new tag and enter the tag key and the tag value.

  12. Choose Create endpoint.

To create an interface endpoint using the command line