dns - How to CNAME to Amazon API Gateway Endpoint - Stack Overflow

Ask questions Research chat →

https://stackoverflow.com/questions/36737313/how-to-cname-to-amazon-api-gateway-endpoint · scraped

deploy

Attachments

Scraped Content

— 151 words · 2026-02-14 03:01:15 UTC ·

Excerpt

I'm trying to set a CNAME on Cloudflare to point to an Amazon API Gateway endpoint. The CNAME is for use when referring to one of my subdomains. The gateway in turn points to the IP of a server on DigitalOcean. I am very new to Amazon web services and would appreciate if someone could give me an overview of the correct configuration for the DNS, Amazon Gateway and Cloudfront (which I think is needed to expose the gateway to DNS servers external to Amazon). Any help would be much appreciated. UPDATE I've been going at this for a while now and not making much progress. Does anyone have an idea if this is a viable approach or how else it might be done? UPDATE2 I thought I needed to add the CNAME record to cloudFlare and just ended up in a redirect loop, observed by: curl -L -i -v https://sub.mydomain.com/
I'm trying to set a CNAME on Cloudflare to point to an Amazon API Gateway endpoint. The CNAME is for use when referring to one of my subdomains. The gateway in turn points to the IP of a server on DigitalOcean. I am very new to Amazon web services and would appreciate if someone could give me an overview of the correct configuration for the DNS, Amazon Gateway and Cloudfront (which I think is needed to expose the gateway to DNS servers external to Amazon). Any help would be much appreciated. UPDATE I've been going at this for a while now and not making much progress. Does anyone have an idea if this is a viable approach or how else it might be done? UPDATE2 I thought I needed to add the CNAME record to cloudFlare and just ended up in a redirect loop, observed by: curl -L -i -v https://sub.mydomain.com/

Visibility

Visible to everyone

Reading Status

Related Bookmarks

My Note


Saved!

Annotations

Export as Markdown
+ Annotate selection

Add Annotation