Edge Amazon API Gateway with a custom domain

Client → Edge-optimized API Gateway

Edge Amazon API Gateway custom domain with AWS SAM: certificate in us-east-1 when using another Region

To deploy an Edge-optimized API Gateway, it's mandatory to generate a certificate in us-east-1. Resources in one stack are deployed in a single region, you are not able to set another region for a specific resource.

< 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-edge-custom-domain

Deploy

sam deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete --stack-name sample-api --region eu-west-1
Delete the stack cert: sam delete --stack-name cert-sample-api --region us-east-1.

Created by:

Walid BATTOU

Walid BATTOU

I am an AWS Solution Architect, FinOps, Linux and open-source enthusiast.

Follow on LinkedIn