Route 53 domain cname record without hosted zone

0

So there are a few things I have done so far:

  1. Purchase a domain name through route 53.
  2. Create a public S3 bucket, configure it for static website hosting, and upload some website files. Please note that this bucket's name is identical to the domain name I purchased through route 53.
  3. Create a Cloudfront distribution whose origin is the S3 bucket.

My question is simply this: what is the cheapest way to point the domain to either the Cloudfront distribution or the S3 bucket via SSL (HTTPS)? I keep reading in places that, if the S3 bucket name is identical to the domain name, you can do this without using hosted zones. Is this correct? I'm just looking to reduce my monthly bill (which is $0.50 due to the hosted zone that I am currently using to route traffic to the Cloudfront distribution).

已提问 3 年前916 查看次数
1 回答
0
已接受的回答

I keep reading in places that, if the S3 bucket name is identical to the domain name, you can do this without using hosted zones. Is this correct?

That's not generally correct. CNAME records must be contained within some DNS zone on some nameservers (ie a hosted zone in Route 53). If you're not owning a DNS zone somewhere, you'd have to be putting your CNAME in the parent domain's DNS zone. DNS Registries do not generally allow that - they only delegate to your DNS zone's nameservers. it's conceivable that the owner of some domain, e.g. example.com might let you put a CNAME in there called e.g. foo.example.com or foo.bar.example.com, but that's really just someone else owning the zone.

AWS
专家
gavinmc
已回答 3 年前
profile picture
专家
已审核 10 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则