How to configure a static website on Amazon S3 bucket with AWS CLI
We created or configured S3 buckets through the S3 management console so far. However, the problem is that it takes time if you do the same thing again and again. If you use AWS CLI, you don't need to sign in on the AWS management console and can finish your work with the command-line alone.
Getting ready
It is sometimes tiresome to operate or integrate through Amazon management console because the interface may change even if you create an instruction and capture several images for it. We learn how to create a static website with Amazon Command Line Interface (AWS CLI). You need to meet the following requirements:
- Install and set up AWS CLI on your PC at http://aws.amazon.com/cli/
- Configure an IAM user and a policy to enable full access to S3 and issue an IAM credential
Tip
For more information about how to install and set up AWS CLI, refer to https://github.com/aws/aws-cli.
On the other hand, one of the easiest ways to use...