WKLD.12 Use VPC endpoints to access supported services
In VPCs, resources that need to access AWS or other external services require either a
route to the internet (0.0.0.0/0) or to the public IP address of the target
service. Use VPC endpoints to enable a private IP route from your VPC to supported AWS or
other services, removing the need for an internet gateway, NAT device, virtual private network
(VPN) connection, or AWS Direct Connect connection.
You can attach policies and security groups to VPC endpoints to control access to a
service. For example, you can write a VPC endpoint policy for Amazon DynamoDB
VPC endpoints come in two types: interface endpoints and gateway endpoints. You access most services by using a VPC interface endpoint. DynamoDB is accessed using a gateway endpoint. Amazon S3 supports both interface and gateway endpoints. We recommend gateway endpoints for workloads that are contained within a single AWS account and Region. Gateway endpoints come at no additional charge. We recommend interface endpoints when you need more extensible access, such as to an Amazon S3 bucket from other VPCs, from on-premises networks, or from different AWS Regions.
For more information about using VPC endpoints, see the following resources:
-
For more information about selecting between gateway and interface endpoints for Amazon S3, see Choosing your VPC endpoint strategy for Amazon S3
on the AWS Architecture Blog. -
Access an AWS service using an interface VPC endpoint in the Amazon VPC documentation.
-
Gateway endpoints in the Amazon VPC documentation.
-
For example Amazon S3 bucket policies that restrict access to a specific VPC or VPC endpoint, see Restricting access to a specific VPC in the Amazon S3 documentation.
-
For example DynamoDB endpoint policies that restrict actions, see Endpoint policies for DynamoDB in the Amazon VPC documentation.
Note
Gateway endpoints are available at no additional charge. Interface endpoints incur an
hourly charge and a per-GB data-processing charge. These charges are lower than the
equivalent charges for routing traffic through AWS NAT Gateway. For more information, see
Amazon VPC pricing