AWS — VPC Endpoints Overview

Ashish Patel
Awesome Cloud
Published in
4 min readApr 5, 2020


Introduction to AWS VPC Endpoints — What are VPC Endpoints?

AWS — VPC Endpoints


VPC endpoint enables creation of a private connection between VPC to supported AWS services and VPC endpoint services powered by PrivateLink using its private IP address. Traffic between VPC and AWS service does not leave the Amazon network.

There are two types of VPC endpoints:

Interface endpoint is an elastic network interface (ENI) with a private IP address from the IP address range of user’s subnet that serves as an entry point for traffic destined to a supported service. It enables you to privately access services by using private IP addresses.

Gateway endpoint is a gateway that you specify as a target for a route in your route table for traffic destined to a supported AWS service. Currently supports S3 and DynamoDB services.

VPC Endpoints Key points

  • VPC endpoint enables users to privately connect their VPC to supported AWS services.
  • VPC Endpoint does not require a public IP address, access over the Internet, NAT device, a VPN connection or AWS Direct Connect to communicate with resources in the service.
  • Endpoints are virtual devices, that are horizontally scaled, redundant, and highly available VPC components that allow communication between instances in the VPC.
  • Access to the resources in other services can be controlled by endpoint policies.
  • By default, Endpoint policy, allows full access to the service. Endpoint policies must be written in JSON format.
  • Endpoint policy does not override or replace IAM user policies or service-specific policies (such as S3 bucket policies).

Interface Endpoints

AWS — VPC Endpoints — Interface Endpoints
  • When you create an interface endpoint, AWS generate endpoint-specific DNS hostnames (private) that you can use to communicate with the service. This is optional.
  • Network ACL for the subnet can restrict traffic, and needs to be configured properly.

Gateway Endpoints

  • Route is automatically added to the Route table with a destination that specifies the prefix list of service and the target with the endpoint id.
    e.g. A rule with destination s3 service (pl-63a5400a (,,,, and a target with this endpoints’ id(e.g. vpce-0b66ba758a38cef8c) will be added to the route tables.
  • Endpoint needs to be associated with the Route table and the route table cannot be modified to remove the route entry. It can only be deleted by removing the Endpoint association with the Route table or when the endpoint is deleted.
  • Security groups need to be modified to allow Outbound traffic from the VPC to the service that specified in the endpoint. Use the service prefix list ID (e.g. as the destination in the outbound rule.
  • Multiple endpoints can be created in a single VPC, for multiple services.
  • Multiple endpoints to the same service cannot be specified in a single route table.
  • You can create multiple endpoints in a single VPC for a single service, But different route tables used to enforce different access policies from different subnets to the same service.
  • You can modify the endpoint policy that’s attached to your endpoint, and add or remove the route tables that are used by the endpoint.

VPC Endpoints Limitations

  • VPC endpoints support IPv4 traffic only.
  • Endpoints are supported within the same Region only. You cannot create an endpoint between a VPC and a service in a different Region.
  • Endpoints cannot transfer an endpoint from one VPC to another, or from one service to another.

Interface Endpoints

  • For each Interface endpoint, you can choose only one subnet per Availability Zone.
  • Each Interface endpoint can support a bandwidth of up to 10 Gbps per Availability Zone by default. Additional capacity may be added automatically based on your usage.
  • Interface Endpoint supports TCP traffic only.
  • Interface Endpoints cannot be transferred from one VPC to another, or from one service to another.

Gateway Endpoints

  • Gateway Endpoints are not reachable outside of VPC via Transit Gateway, VPC Peering, VPN or Direct Connect.



Ashish Patel
Awesome Cloud

Cloud Architect • 4x AWS Certified • 6x Azure Certified • 1x Kubernetes Certified • MCP • .NET • Terraform • DevOps • Blogger []