Regional Amazon API Gateway with edge-optimized domain name to AWS Lambda

API Gateway REST API → AWS Lambda

Create a regional API with edge-optimized domain name and a Lambda integration.

This pattern deploys an Amazon API Gateway REST regional API with an edge-optimized domain name and a Lambda integration.
You will need: a route53 hosted zone, an ACM Certificate in the us-east-1 region.
The domain name choosen needs to match or be a subdomain of the domain name on the certificate.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/apigw-domain-edge-lambda

Deploy

sam deploy


Testing

1. Enter the ARN of the certificate (which is in us-east-1) and the custom domain name in the parameters of the template.
Deploy the template
2. Create a new record in your Hosted zone in route53 with an alias to the API Edge-Optimized endpoint
3. Paste the custom domain name into a browser to make requests

Cleanup

Delete the stack: sam delete.

Created by:

Alice Goumain

Alice Goumain

Cloud Support Engineer in Serverless @ AWS

Follow on LinkedIn