- Newest
- Most votes
- Most comments
According to Amazon Q:
Yes, you can create a regional custom domain linked to an edge REST API in API Gateway.
To do so:
Request or import an SSL/TLS certificate for the domain from AWS Certificate Manager (ACM). The certificate must be requested/imported in the same region as your API.
Create the custom domain name for your edge REST API in API Gateway. Select the ACM certificate created in step 1.
Create a DNS record (e.g. CNAME) to route traffic from your custom domain to the API's edge hostname.
Test your API by making requests using the custom domain name. Traffic will be routed through CloudFront to the edge API endpoint.
The key difference between regional and edge custom domains is that edge domains use CloudFront for routing, while regional domains route directly to the regional API endpoint.
Refer to the API Gateway documentation for more details on setting up custom domains for REST and other API types. Let me know if you have any other questions!
Sources
[1] [Setting up a regional custom domain name in API Gateway - Amazon API Gateway] (https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-regional-api-custom-domain-create.html)
[2] [How can I set up a custom domain name for my API Gateway API?] (https://repost.aws/knowledge-center/custom-domain-name-amazon-api-gateway)
Relevant content
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago