I can't route traffic to an Amazon S3 bucket that's configured for website hosting - Amazon Route 53
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

I can't route traffic to an Amazon S3 bucket that's configured for website hosting

When you configure an Amazon S3 bucket for website hosting, you must give the bucket the same name as the record that you want to use to route traffic to the bucket. For example, if you want to route traffic for example.com to an S3 bucket that is configured for website hosting, the name of the bucket must be example.com.

If you want to route traffic to an S3 bucket that is configured for website hosting but the name of the bucket doesn't appear in the Alias Target list in the Amazon Route 53 console, or if you're trying to create an alias record programmatically and you're getting an InvalidInput error from the Route 53 API, one of the Amazon SDKs, the Amazon CLI, or Amazon Tools for Windows PowerShell, check the following:

  • The name of the bucket exactly matches the name of the record, such as example.com or www.example.com.

  • The S3 bucket is correctly configured for website hosting. For more information, see Hosting a static website on Amazon S3 in the Amazon Simple Storage Service User Guide.