Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Cloudflare to point to AWS Amplify

I use Cloudflare to generate SSL and AWS Amplify to host the project. I would like to configure Cloudflare to point to AWS Amplify project.

These are the current DNS records, which points to the current server.

enter image description here

This is the project URL and the URL where is project deployed on AWS Amplify.

I tried to changed DNS records to point website to AWS Amplify project, but it doesn’t work.

enter image description here

like image 855
Matt Avatar asked Apr 21 '20 15:04

Matt


People also ask

How do I connect my domain to AWS amplify?

Sign in to the AWS Management Console and open the Amplify console . Choose your app that you want to add a custom domain to. In the navigation pane, choose App Settings, Domain management. On the Domain management page, choose Add domain.

Does AWS have Cloudflare?

Cloudflare with AWSCloudflare integrates quickly and easily with AWS. Host your websites and run applications on AWS while keeping them secure, fast, and reliable. Use Cloudflare as a unified control plane for consistent security policies, faster performance, and load balancing for your AWS S3 or EC2 deployment.

How do I add my own domain to amplify?

You can connect a custom domain to an app that you've deployed with Amplify Hosting. You can purchase a custom domain through a domain registrar such as Amazon Route 53, GoDaddy, or Google Domains. Route 53 is Amazon's Domain Name System (DNS) web service.


2 Answers

Follow the steps as mentioned in this link, but remove from Proxied to DNS only. You can achieve it by clicking on the yellow cloud icon.

enter image description here

like image 144
Thananjaya S Avatar answered Oct 19 '22 11:10

Thananjaya S


For your AWS Amplify Domain, you do not need to use Proxied, as it's already secure connection (https://master.DIGITS.amplify.com)

Before you add your subdomain entry in your DNS you also need to add an entry in your DNS to verify the ownership of the domain

enter image description here

After you have done the above step, you can get the DNS record name like this:

enter image description here

you need to add this entry in your DNS like this:

enter image description here

I hope this helps anyone looking for it, I found it hard myself as well.

like image 21
Afzal Zubair Avatar answered Oct 19 '22 11:10

Afzal Zubair