သဘောတရား · CLF-C02 အပေါ် ဆက်လေ့လာရန်
VPC endpoints
Private access to AWS services with no NAT gateway: gateway endpoints and interface endpoints.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
Cloud Practitioner မှ သင်သိပြီးသားများ
- 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
| Aspect | Gateway endpoint | Interface endpoint |
|---|---|---|
| Services | S3, DynamoDB | Most AWS services, partner services |
| How it works | Route table entry | Network interface with private IP |
| Cost | Free | Hourly plus per GB |
| From on premises | No | Yes, over VPN or Direct Connect |
| Security groups | No | Yes |
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
| Aspect | Gateway endpoint | Interface endpoint |
|---|---|---|
| Services | S3, DynamoDB | Most AWS services, partner services |
| How it works | Route table entry | Network interface with private IP |
| Cost | Free | 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
| Aspect | Gateway endpoint | Interface endpoint |
|---|---|---|
| From on premises | No | Yes, over VPN or Direct Connect |
| Security groups | No | Yes |
ဘာလဲ
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.
ဒါတွေနဲ့ မရောပါနဲ့
- Subnets, route tables, gateways and NATDesign public, private and isolated tiers across Availability Zones, and pick the right gateway for each path.
AWS PrivateLinkExpose one service to other VPCs and accounts privately, with no routing between the networks.
- NAT gateway cost designA NAT gateway bills per hour and per GB, so place it by AZ and send heavy traffic around it.