---
title: "Check the VPC endpoint policy behind an AWS access denial | Proofline"
description: "When only the workload's private network path fails, check the policy of the endpoint the request used."
url: https://proofline.sh/learn/aws-endpoint-policy-denied/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# Check the VPC endpoint policy behind an AWS access denial

When only the workload's private network path fails, check the policy of the endpoint the request used. An endpoint policy can restrict access through that endpoint in addition to the other applicable AWS policies.

Permission errors The Proofline team November 24, 2026 1 min read

For example, an S3 reporting job moves into a fictional VPC whose S3 gateway endpoint allows access only to archive buckets. The same reports object is readable in the approved test environment, but the production worker's read fails. Check which route table serves the failing subnet and which endpoint that table uses. An authorized EC2 reader can query the endpoint policy and associated route tables together.

```
aws ec2 describe-vpc-endpoints --vpc-endpoint-ids vpce-0123456789abcdef0 \
  --query 'VpcEndpoints[0].{Service:ServiceName,Policy:PolicyDocument,RouteTables:RouteTableIds}'
```

Compare the endpoint's policy with the failed action and bucket. Record the route and endpoint policy together, since another VPC may use a different path. A successful comparison request cannot establish that the endpoint was the only difference. If the endpoint policy excludes the approved reports bucket, take the exact resource and action to the endpoint owner. [VPC endpoint policies](https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-access.html) · [S3 gateway endpoints](https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-s3.html)

[Trace another denied request](/learn/permission-denied-request-triage/).

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Trace a permission denial to the caller and the policy](/learn/permission-denied-request-triage/)
    
    Permission errors The Proofline team November 24, 2026 3 min read
    
-   ### [Find why S3 listing fails for one prefix](/learn/s3-listbucket-prefix-denied/)
    
    Permission errors The Proofline team November 24, 2026 1 min read
