darcwader
darcwader

Reputation: 71

Custom Domain for API Gateway not able to set 404

I am trying to setup a custom domain endpoint for API gateway published endpoint but not able to set.

I've followed all steps

What might be going wrong.

Upvotes: 0

Views: 693

Answers (1)

MKF
MKF

Reputation: 39

When you are pointing to a DNS hostname, rather than an IP, you need a CNAME record. More importantly, when you assign a custom domain to your API Gateway, it will create a CloudFront distribution for you and gives you a CloudFront endpoint: E123CNFSOMETHING.cloudfront.net. You need to create a CNAME record in your registrar dashboard to point to this address, not the API Endpoint:

FROM                        TO                                    TTL
subdomain                   E123CNFSOMETHING.cloudfront.net.      300

Upvotes: 1

Related Questions