服务 · Networking and Content Delivery · 基于 CLF-C02
AWS PrivateLink
Expose one service to other VPCs and accounts privately, with no routing between the networks.
本课尚未翻译,暂以英文显示。
你在云从业者中已学过
- PrivateLink gives private access to a service, not to a whole network.
- The consumer creates an interface endpoint in its own subnet.
- Traffic stays on the AWS network.
S3 or DynamoDB from a VPC
- Use
- Gateway endpoint
- Note
- Free, route table entry
Other AWS services, privately
- Use
- Interface endpoint
- Note
- PrivateLink, hourly fee
Your service for other VPCs
- Use
- Endpoint service
- Note
- Needs an NLB or GWLB
Full network access
- Use
- Peering or Transit Gateway
- Note
- No overlap allowed
| Need | Use | Note |
|---|---|---|
| S3 or DynamoDB from a VPC | Gateway endpoint | Free, route table entry |
| Other AWS services, privately | Interface endpoint | PrivateLink, hourly fee |
| Your service for other VPCs | Endpoint service | Needs an NLB or GWLB |
| Full network access | Peering or Transit Gateway | No overlap allowed |
是什么
The SAA view is from the provider side. You run a service behind a Network Load Balancer. You publish it as an endpoint service. Each consumer creates an interface endpoint in its own VPC, which appears as a network interface with a private IP address there. The consumer connects to that address. Only that service is reachable, and only in one direction, from the consumer to the provider.
是什么
Because no routes join the two VPCs, their address ranges can overlap. That makes PrivateLink the answer when you sell or share a service with hundreds of customer VPCs, or when ranges clash. Put an interface endpoint in each Availability Zone you use. The provider approves connection requests. Gateway Load Balancer endpoints use the same technology to send traffic to security appliances.
要记住
- Provider: Network Load Balancer (or Gateway Load Balancer) plus an endpoint service.
- Consumer: an interface endpoint, which is a private IP address in its VPC.
- One way: the consumer calls the service. No access to the rest of the provider’s network.
- Overlapping address ranges are fine.
要记住
- Costs an hourly fee per endpoint per Availability Zone, plus a charge per GB.
考试中
- “Share one application with many customer VPCs without exposing the VPC” points to PrivateLink.
- “Overlapping CIDR blocks” and “only one service must be reachable” points to PrivateLink.
- “Reach Amazon S3 or DynamoDB privately at no cost” points to a gateway endpoint, not PrivateLink.
别和这些弄混
- VPC peeringA private link between two VPCs. It is one to one and never transitive.
- VPC endpointsPrivate access to AWS services with no NAT gateway: gateway endpoints and interface endpoints.
AWS Transit GatewayA regional hub that joins many VPCs, VPNs and Direct Connect links, with routing you control.