I will be creating the bucket in the ap-south-1 region; you may choose any region of your choice:
- Create a bucket, qnatime.com, for the primary domain.
- Create an index document, index.html, and an error document, error.html, for the S3 website.
- Upload the index and error documents.
- Create a website configuration JSON file, specifying the index and error filenames.
- Create a static website, specifying the website configuration JSON file.
- Create a bucket policy, with read permission for everyone, for the bucket qnatime.com.
- Create an S3 bucket with the name www.qnatime.com.
- Configure the bucket as a website by using the aws s3aoi put-bucket-website command, with a configuration JSON file for redirection, as follows:
{ "RedirectAllRequestsTo" ...