- Newest
- Most votes
- Most comments
It sounds like you're on the right track with setting up your CloudFront distribution for your S3 bucket, but there are a few things to check to resolve the issue you're experiencing with Route 53.
First, ensure that you've added an alternate domain name (CNAME) to your CloudFront distribution that matches the domain name you're trying to use in Route 53. For example, if your Route 53 record name is "example.com", your CloudFront distribution must have "example.com" listed as one of its alternate domain names.
Next, verify that you're creating the Route 53 record in the correct region. CloudFront distributions are global resources, but they're only available for selection in Route 53 when you're in the US East (N. Virginia) region. You may see a message indicating that CloudFront distributions are only available in this region.
Also, make sure you're using the correct AWS account. The CloudFront distribution should be created in the same AWS account where you're setting up the Route 53 record.
If you've confirmed all of these points and still don't see your CloudFront distribution in the dropdown, try the following:
- Double-check that your CloudFront distribution is fully deployed and not in a "In Progress" state.
- Ensure you have the necessary permissions to view and select CloudFront distributions in Route 53.
- If possible, try creating the record using the AWS CLI or API to see if it's a console-specific issue.
Remember, when setting up the alias record in Route 53, you should choose "A - IPv4 address" as the record type, even though you're pointing to a CloudFront distribution. This is because CloudFront will handle the appropriate routing.
If you've verified all these steps and are still encountering issues, it may be worth contacting AWS support for further assistance.
Sources
Route53 - alias to cloudfront, distribution not listed | AWS re:Post
Speeding up your Amazon S3-based website using Amazon CloudFront - Hosting Static Websites on AWS
Relevant content
- asked 8 days ago
- asked 2 years ago