92 Followers
·
Follow

Image for post
Image for post

If you know how to use S3 for static site hosting, you will find it pretty easier to setup a CloudFront distribution and map it as a CNAME to your custom domain. However, it requires more manual operations to use a custom domain for API Gateway. API Gateway requires that you use https, but the certificate that it uses is only valid for the default domain.

Let’s say we have an URL generated by API Gateway:

https://ab123456.execute-api.us-west-2.amazonaws.com/production

This is what we want:

https://api.yourdomain.com

To do this, we are going to use Let’s Encrypt to get a free SSL certificate to use with API Gateway. …

About

George Jor

Software Engineer (Node / GraphQL / React Native / Vue.js / TypeScript / MongoDB / Redis)