Not able to configure Route53 record for hosting static website

776 Views Asked by At

I want to host static website which looks very straight forward as per AWS documentation like creating two buckets example.com and www.example.com etc.

but while configuring on Route 53; and creating Alias A record; it is not populating that S3 bucket name.. I even tried to put value manually it says

"Alias Target contains an invalid value"

2

There are 2 best solutions below

3
On BEST ANSWER

Solution was that on S3 bucket level --> Add permissions --> Let Everyone List the contents. I think instead of Everyone even "Authenticated AWS User" should work fine.

0
On

As at the time of writing, based on my experience, there are 3 things that you need to do:

  1. use the new Route53 console. The S3 bucket will not be listed if you are using the old Route 53 console. You will need to use the new Route 53 console. As to how to switch between the two, in the top section of the route 53 dashboard it will asks you whether you want to switch between the old/new console. If it is not there, then you will need to contact AWS

  2. make sure that your buckets are configured to be publicly accessible, both in Bucket policy and in Block public access permission setting

  3. make sure your bucket name is the same as your subdomain.

Example 1: if I want to make an A record with blog.mycoolwebsite.com then the bucket name need to be blog.mycoolwebsite.com.

Example 2: if I want to make an A record in the root domain mycoolwebsite.com then the bucket name need to be mycoolwebsite.com