By using AWS re:Post, you agree to the Terms of Use

CloudFront can't reach API Gateway


I've got CloudFront configured to hit my backend, but it can't resolve the API Gateway.

CloudFront wasn't able to resolve the origin domain name. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

It works just fine hitting the API Gateway directly.

$ curl
2 Answers


Here is the link to the documentation that discusses the process to connect CF with API gateway. refer to the steps where they mention about configuring CF distribution.

Link- -- [1]

answered 13 days ago

Hi, @catsclaw.

I was able

% curl
{"test":"ok"}%                                                                                                                                                                     % curl                    

Please check the settings according to the following.

For example, the protocol should be HTTPS only.

Enter image description here

profile picture
answered 13 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions