Set up DNS for AWS Elastic Beanstalk


How should I set up the DNS section to be able to use Cloudflare on an Elastic Beanstalk Instance.

I believe I should change CNAME section besides just adding the instance IPs.

My setup for beanstalk is just a CNAME to the “url” that shows up in Elastic Beanstalk dashboard, eg <example>

I also recommend setting up the Security Group for the instance to only accept connections from Cloudflare IP addresses, so it looks something like this

The list of IP addresses is available at (you should also add rules for the IPv6 addresses)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.