AWS PrivateLink
Links: 101 AWS SAA Index
Why PrivateLink¶
- Suppose you want to share some service in you VPC to the customer VPC.
- One option is to use the service over public internet. This is not ideal.
- Another option is to use VPC peering but it exposes your whole VPC to the customer which is not ideal.
PrivateLink¶
- In the console it is under the name endpoint services.
- Most secure & scalable way to expose service to 1000s of VPC (own or other accounts)
- Does not require VPC peering, internet gateway, NAT, route tables...
- Requires a network load balancer (Service VPC) (your end) and ENI (Customer VPC) or GWLB.
- To remember which side needs what remember since the service VPC contains the service there should be some kind of load balancing hence NLB in service VPC.
- This ENI is also known as PrivateLink endpoint which is implemented on the customer side.
- PrivateLink with ECS:
Last updated: 2023-03-08