Configure Cloudflare to point to AWS Amplify
Asked Answered
L

3

14

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

Longley answered 21/4, 2020 at 15:50 Comment(1)
stuck at the same step; pointed my subdomain to https://d1xxxxxxxxxx.cloudfront.net/ in cloudflare, but when I try to open this url in the browser, I get: <Code>SignatureDoesNotMatch</Code> <Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>Snocat
G
11

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

Georgettegeorgi answered 3/11, 2020 at 9:0 Comment(6)
im going to try this out Monday morning with a new integration. first time doing this one with CloudFlare, hope it works! :)Hetman
@Hetman sure, I hope it helps. do let me know here.Georgettegeorgi
youre the man @afzal zubair! worked like a charm my friend!Hetman
better late than never 😂Hetman
@Hetman thanks man, I'm glad that it worked for you.Georgettegeorgi
Right now there is one more step involved in the setup to add an ANAME/ALIAS, but cloudflare doesnot support ANAME/ALIAS. so how to get this done in the current situation.Myongmyopia
P
8

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

Patman answered 10/12, 2020 at 13:1 Comment(2)
this tweak works for me.Associate
this is important, but the answer from Karlis Rode below is also a must https://mcmap.net/q/811121/-configure-cloudflare-to-point-to-aws-amplifyGird
R
1

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...

Reeher answered 9/10, 2023 at 15:23 Comment(1)
this one works!Gird

© 2022 - 2025 — McMap. All rights reserved.