Join our Newsletter — 33% off our NHI Course
Home› Glossary› Architecture & Implementation› Gateway Endpoint
Architecture & Implementation

Gateway Endpoint

← Back to Glossary
By NHI Mgmt Group Updated November 26, 2026 Domain: Architecture & Implementation

A Gateway Endpoint is an AWS VPC endpoint type, for Amazon S3 and DynamoDB, that adds a route-table target so traffic to the service stays on the AWS network rather than crossing an internet gateway. Defenders attach an endpoint policy limiting which buckets, tables and principals are reachable, which helps block exfiltration to attacker-owned accounts.

What a Gateway Endpoint changes in AWS networking

A gateway endpoint changes the routing path, not the application protocol. For Amazon S3 and DynamoDB, it gives a VPC a route-table target so traffic stays on the AWS backbone instead of traversing an internet gateway, which reduces exposure and makes private service access a routing decision rather than a public-network design choice.

That matters because the control is coarse at the network edge and specific at the service layer. You are not just “making S3 private”; you are telling the VPC which service destinations should be reachable through AWS-managed routing and which should not.

Gateway endpoints are therefore best understood as a private connectivity primitive for two AWS services, with policy attached to the endpoint itself and to the surrounding AWS resource policies. They are not a general replacement for every form of private access to cloud services.

How endpoint routing and endpoint policy work together

The routing side is simple: a route table sends S3 or DynamoDB-bound traffic to the endpoint instead of the internet gateway. The policy side is where defenders narrow the blast radius, because the endpoint policy can restrict which buckets, tables and principals can use that path.

Used well, this gives organisations a way to enforce intended service reachability inside a VPC without exposing the traffic to public egress paths. That is why gateway endpoints often appear in private-workload designs alongside bucket policies and account-level access controls. For a broader private-cloud pattern, see VPC Endpoints vs NAT Gateways.

Endpoint policy is not the only control that matters. Service-side policies, identity permissions and routing all have to agree, otherwise a “private” path can still allow unintended access if one layer is too broad.

Where gateway endpoints fit in data perimeter design

Gateway endpoints are most useful when the security goal is to keep application traffic to S3 or DynamoDB off the public internet and inside a controlled AWS path. That supports data perimeter thinking, where the question is not just “who is allowed” but also “from where and by what path is access permitted”.

They are especially relevant when teams want to reduce dependence on NAT-based egress for those services, because NAT-based designs can widen exfiltration options and make service access look like ordinary outbound internet traffic. The broader AWS hardening pattern is covered in Amazon VPC Security Guide.

Gateway endpoints also help clarify trust boundaries for workloads that should never need general internet access to reach cloud storage or tables. In that sense, the endpoint becomes part of the account, VPC and resource-policy perimeter rather than a standalone networking convenience.

Operational limits and common design mistakes

Gateway endpoints are purpose-built and limited. They do not provide a universal private-link mechanism for arbitrary AWS services, and they do not automatically make data access safe if endpoint policy, bucket policy or IAM policy is too permissive.

A frequent mistake is to treat the endpoint as a complete exfiltration control. It is stronger than a simple route change, but it still needs supporting policies, inventory of which subnets use it, and attention to whether workloads can reach alternate paths to the same data. The difference between “private path exists” and “private access is actually constrained” is often the difference between good architecture and a false sense of control.

Another mistake is assuming the endpoint alone proves least privilege. The routing decision may be private, yet the permissions can still be overly broad if the surrounding policies allow wildcard access to buckets, tables or principals.

Risk and Threat Considerations

Gateway endpoints reduce exposure, but they also create a policy boundary that can be misconfigured. If endpoint policy, resource policy or identity permissions are too broad, attackers who obtain valid access can still move data through an apparently private channel, which makes exfiltration harder to notice than traffic that crosses an internet gateway.

Failure mechanism: The risk is usually not the endpoint itself, but the combination of private routing and weak authorization, where a workload, role or application can still reach sensitive objects or tables even though the path is no longer public.

Impact: A compromised principal can exfiltrate data through AWS-native traffic, and defenders may miss the abuse if they rely only on perimeter-style monitoring of internet egress.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-3 — Access EnforcementGateway endpoint policy and resource policy both enforce who may reach S3/DynamoDB.
SC-7 — Boundary ProtectionThe endpoint changes network trust boundaries by keeping service traffic off the internet gateway.
AC-6 — Least PrivilegeEndpoint policy should narrow service reachability to only required buckets, tables and principals.
Recommendation — Enforce AC-3 to constrain which principals can access S3 and DynamoDB through the endpoint. Apply SC-7 to segment service traffic through controlled private paths and limit public exposure. Use AC-6 to restrict endpoint-reachable data access to the minimum necessary scope.
CIS Controls v8CIS-3 — Data ProtectionGateway endpoints support reducing data exposure and controlling egress routes for sensitive cloud data.
Recommendation — Use CIS-3 to reduce exposed data paths and constrain service access to approved routes.
NIST CSF 2.0PR.AA-05 — Network SegmentationGateway endpoints are a network segmentation control for private AWS service access.
Recommendation — Use PR.AA-05 to segment S3 and DynamoDB access through private routed paths.

Practitioner Guidance

Governance implication: Treat the gateway endpoint, the endpoint policy and the resource policy as one control stack. If one layer is broad, the overall design is broad, even when the route stays inside AWS.

What to watch for: Reconcile route tables, endpoint policies and bucket or table policies together, then verify that each attached principal only has the minimum service scope it genuinely needs. That is the practical test for whether the endpoint is enforcing a private access boundary or merely relocating the traffic path.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org