Reputation: 10866
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"
Upvotes: 1
Views: 801
Reputation: 737
As at the time of writing, based on my experience, there are 3 things that you need to do:
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
make sure that your buckets are configured to be publicly accessible, both in Bucket policy and in Block public access permission setting
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
Upvotes: 0
Reputation: 10866
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.
Upvotes: 1