What is the IP address of my AWS website so I can add the A record on Cloudflare?

0

I've bought a web domain with AWS Route 53 and set up the S3 buckets required, followed the AWS guide and got my site all working without cloudflare. Then I wanted to get my site to be secured with HTTPS and so I applied for the certificate on AWS Certificate Manager, giving me the CNAME and value which I put into cloudflare.. Now it's all setup, but the site won't resolve. I have the certificates on AWS issued, BUT cloudflare is still saying this:

Add an A, AAAA, or CNAME record for www so that www.mysite.com will resolve.

Add an A, AAAA, or CNAME record for your root domain so that mysite.com will resolve.

I only have the two CNAME records and TXT record on cloudflare. The problem is, I have no idea how to get the IPv4 address for my AWS site, which is required to add an A record on cloudflare:

| Type A | Name (required), Use @ for root | IPv4 address (required) |

I should also add I have done this before somehow on my other basic AWS S3 site and there is an IPv4 address on the cloudflare for that, and I don't think I remember ever finding it or adding it manually. How did it get there? And how can I get this A record IP address on cloudflare for my new site?

1개 답변
2
수락된 답변

Hi There

You do not need to create an A record. You create CNAME records to point to the bucket endpoint. Have you checked the bucket public acces and bucket policy to ensure Cloudflare has access to it?

See https://support.cloudflare.com/hc/en-us/articles/360037983412-Configuring-an-Amazon-Web-Services-static-site-to-use-Cloudflare

I applied for the certificate on AWS Certificate Manager, giving me the CNAME and value which I put into cloudflare

The CNAME that you were given when you generated the certificate in ACM was for validation of domain ownership only. It does not route traffic for your website. See https://docs.aws.amazon.com/acm/latest/userguide/dns-validation.html

profile pictureAWS
전문가
Matt-B
답변함 일 년 전
profile picture
전문가
검토됨 5달 전
profile pictureAWS
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠