How can I connect to API Gateway from my on-premises network?
3 minute read
I want to connect to Amazon API Gateway from my on-premises network. How can I do this?
API Gateway API types include REST APIs (edge-optimized and Regional API endpoints), HTTP APIs, WebSocket APIs, and private REST APIs. REST APIs, HTTP APIs, and WebSocket APIs can be connected from on-premises networks directly. Private REST APIs can only be accessed from within an Amazon Virtual Private Cloud (Amazon VPC) using an interface VPC endpoint.
Before you begin, verify that your on-premises network:
has connectivity to the internet.
firewall allows bidirectional traffic to and from the API Gateway endpoint.
Connect an on-premises network to a REST API, HTTP API, or WebSocket API
Use invoke to connect your on-premises network to API Gateway depending on the API type.
If you are using private DNS, you can access your private API from your on-premises network using the private DNS names. You must set up a Route 53 Resolver inbound endpoint, and then forward to it all DNS queries of the private DNS from your on-premises network. For more information, see Invoking your private API using private DNS names.
Public DNS names
You can access your private API from your on-premises network using endpoint-specific DNS hostnames. The public DNS hostnames contain the VPC endpoint ID or API ID for your private API in the following URL format: