'AWS - Create a record set for an s3 static website
I have a static website up and running at
http://volcalc.s3-website-ap-southeast-2.amazonaws.com/
It is stored on an aws S3 bucket.
I have bought the domain volcalc.io
I just want to switch to use that as the url of my website.
I'm following the instructions here. I'm doing "Create record sets".
I'm trying to create a record set but when I check the radio button "yes" for "alias" then I try to enter an "alias target" there are no options to select from and the tutorial is saying there should be:
So I just tried to paste in this: http://volcalc.s3-website-ap-southeast-2.amazonaws.com/
and click create but it says:
The record set could not be saved because: - Alias Target contains an invalid value.
What do I enter into alias target? Why aren't there any options to select from?
Solution 1:[1]
I know you might have solved the issue, but for the people who see this post:
If you cannot find the endpoint on the list, simply copy and paste it there.
Also you would need to remove the bucket name from your end point.
only input this part: s3-website-ap-southeast-2.amazonaws.com/
Route 53 will find a bucket that has your exact domain name.
Solution 2:[2]
You will need to point your alias record to the resource, not the endpoint :
ALIAS : s3-website-ap-southeast-2.amazonaws.com
Solution 3:[3]
Steps required:
- Create a bucket with the name of the desired domain (eg A bucket called
volcalc.io
) - Turn on Static Website hosting
- Create a Route 53 record set with
Alias=Yes
and select the static website from above
See: Routing Traffic to a Website that Is Hosted in an Amazon S3 Bucket
Solution 4:[4]
If you are trying to create the record but your s3 bucket is not showing up, check that the bucket name matches the name of the subdomain / domain you are trying to setup.
For example, if my subdomain is www.passioncloud.net
then I must make sure the name of my bucket is also www.passioncloud.net
.
See: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/RoutingToS3Bucket.html
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Arman Fatahi |
Solution 2 | madacoda |
Solution 3 | John Rotenstein |
Solution 4 | Gilbert |