ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 CLF-C02

VPC endpoints

Private access to AWS services with no NAT gateway: gateway endpoints and interface endpoints.

本课尚未翻译,暂以英文显示。

你在云从业者中已学过

  • A VPC endpoint reaches AWS services without the internet.
  • Gateway endpoints for S3 and DynamoDB cost nothing.
阅读云从业者课程
  • Services

    Gateway endpoint
    S3, DynamoDB
    Interface endpoint
    Most AWS services, partner services
  • How it works

    Gateway endpoint
    Route table entry
    Interface endpoint
    Network interface with private IP
  • Cost

    Gateway endpoint
    Free
    Interface endpoint
    Hourly plus per GB
  • From on premises

    Gateway endpoint
    No
    Interface endpoint
    Yes, over VPN or Direct Connect
  • Security groups

    Gateway endpoint
    No
    Interface endpoint
    Yes
Gateway and interface endpoints compared.

1 / 2

  • Services

    Gateway endpoint
    S3, DynamoDB
    Interface endpoint
    Most AWS services, partner services
  • How it works

    Gateway endpoint
    Route table entry
    Interface endpoint
    Network interface with private IP
  • Cost

    Gateway endpoint
    Free
    Interface endpoint
    Hourly plus per GB

2 / 2

  • From on premises

    Gateway endpoint
    No
    Interface endpoint
    Yes, over VPN or Direct Connect
  • Security groups

    Gateway endpoint
    No
    Interface endpoint
    Yes
Gateway and interface endpoints compared.
VPCEC2
Gateway endpoint
S3
Bucket policy: only this endpoint
route
Private path from a private subnet to S3, locked to the endpoint.

是什么

A gateway endpoint adds a route to your route table for S3 or DynamoDB. It is free. It works only from inside the VPC, not from on premises or a peered VPC. An interface endpoint, built on AWS PrivateLink, puts a network interface with a private IP into your subnet. It supports most AWS services and services from other companies. It costs an hourly fee plus a charge per GB. It can be reached over VPN or AWS Direct Connect, and you attach security groups to it.

是什么

An endpoint policy is a resource policy on the endpoint. It limits which principals, actions and buckets can pass through. On the other side, a bucket policy can deny any request that does not come through your endpoint, using the aws:sourceVpce condition.

Private subnets that only talk to S3 or DynamoDB then need no NAT gateway for that traffic. That also removes NAT data processing charges.

要记住

  • Gateway endpoint: S3 and DynamoDB, route table entry, no charge.
  • Interface endpoint: PrivateLink, hourly plus per-GB charge, reachable from on premises.
  • Endpoint policy limits what goes through the endpoint.
  • Bucket policy with aws:sourceVpce keeps a bucket reachable only through the endpoint.

要记住

  • Gateway endpoints do not work from on premises. Use an interface endpoint for that.
  • Traffic to the service stays on the AWS network.

考试中

  • “Private instances must read S3 with no internet and no extra cost” points to a gateway endpoint.
  • “Reach the SQS API from private subnets without a NAT gateway” points to an interface endpoint.
  • “Only allow bucket access from our VPC” points to a bucket policy with aws:sourceVpce or aws:SourceVpc.