Matt
Matt

Reputation: 8942

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

Upvotes: 14

Views: 10682

Answers (3)

Karlis Rode
Karlis Rode

Reputation: 3862

My journey started off with Amplify suggesting to add a CAA entry for [0 issue "amazontrust.com"], which I did and it did not solve anything.

I then read somewhere that the solution is to add all four of the suggested CAA entries:

0 issue "amazonaws.com"
0 issue "amazon.com"
0 issue "amazontrust.com"
0 issue "awstrust.com"

Unfortunately, this also did not work.

The issue got solved when I added a wildcard for all of the CAA certificates. In other words, this is the setup that worked for me:

0 issue "amazonaws.com"
0 issue "amazon.com"
0 issue "amazontrust.com"
0 issue "awstrust.com"
0 issuewild "amazonaws.com"
0 issuewild "amazon.com"
0 issuewild "amazontrust.com"
0 issuewild "awstrust.com"

Note: all entries are DNS only = not proxied...

Upvotes: 1

Afzal Zubair
Afzal Zubair

Reputation: 211

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.

EDIT: There have been some updates. You can check on this link from official docs. Also, you can make tweaks as explained by Thananjaya S in the comment below. Thanks

Upvotes: 11

Thananjaya S
Thananjaya S

Reputation: 1689

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

Upvotes: 8

Related Questions