I want to configure Amazon Route 53 to point to a static website hosted in an Amazon Simple Storage Service (Amazon S3) bucket.
Resolution
To use an S3 bucket to host your static website, configure Amazon Route 53 to route traffic to the bucket.
To resolve DNS issues when you host a site on Amazon S3, check your configurations for the following features:
- Verify that the buckets that you configure records for have the same name as your domain or subdomain. For example, if you want to use the domain "example.com", then the name of your bucket must be "example.com". If you want to use "www.example.com" as a subdomain, then the name of your secondary bucket for the subdomain must be "www.example.com".
- Confirm that the name of your bucket matches the name of your Route 53 hosted zone record.
- Create a second alias record when you have a secondary bucket for a subdomain that redirects to the primary bucket for the domain. For example, you can redirect users to your static website that's hosted in your primary bucket "example.com" when a user enters "www.example.com" in their browser. For more information, see Create another S3 Bucket, for your subdomain.