AWS Amazon Static Website Hosting – Error adding Route 53 alias record

AWS Amazon Static Website Hosting – Error adding Route 53 alias record
S3 The record set could not be saved because: – Alias Target contains an invalid value.
The bucket name has to match the alias name you are defining exactly.
So for example: if your bucket is named “mydomain.com” then the alias name has to be exactly “mydomain.com”, if you wanted “www.mydomain.com” then you must create both a bucket named and alias named “www.mydomain.com”.
BTW, mydomain.com is an example of an Apex domain – AWS only supports “Apex Domains” via Alias type A records
Type: A
Alias Yes radio button
Clearing the  text field out should present a drop down list of valid end points.  If no end points are specified – hit <ctrl-shift-R> to refresh the page.  Or sometimes you just have to be patient as it takes a minute to load the drop drown.
Once you have a target in the list simply select it and save.  Oddly, the bucket name is left out of the “value” only amazons postfix is left – but it works.
I’m guessing, amazon is making some assumptions about alias records for static website hosting based on S3 buckets…

Leave a Comment

Scroll to Top