Best Practices for Designing Amazon API Gateway Private APIs and Private Integration
Publication date: August 26, 2022 (Document revisions)
Abstract
For many enterprise customers,
AWS Direct
Connect
It is aimed at developers who use API Gateway, or are considering using it in the future.
Are you Well-Architected?
The
AWS
Well-Architected Framework
For more expert guidance and best practices for your cloud
architecture—reference architecture deployments, diagrams, and
whitepapers—refer to the
AWS
Architecture Center
Introduction
API Gateway private integration makes it simple to expose your
HTTP/HTTPS resources behind an Amazon VPC, for access by clients
outside of the VPC. Additionally, private integration can integrate
with private APIs, so the APIs can send requests to a
Network
Load Balancer (NLB) through a private link. For HTTP APIs,
Application Load Balancer (ALB) and
AWS Cloud Map
Based on security requirements, different security measures can be placed at different security layers. To secure VPC resources such as Elastic Network Interface (ENI), associate resources are associated with a security group. VPC endpoints are associated with both the security group and the resource policy. For NLB, Transport Secure Layer (TLS) listeners are used to secure a listener. For ALB, security groups and HTTPS listeners are used.
Compared to regional and edge-optimized API implementations, private API implementation and private integrations add additional components, such as interface VPC endpoints and load balancers. This can lead to additional complexity in application architectures.
This whitepaper includes sample architectures to help understand private APIs, along with private integration implementation and best practices. It also covers security and cost optimizations.