Let’s discuss how to easily create S3 bucket with AWS CLI
Before we go into the details, please ensure that you have the latest version of AWS CLI installed by referring to AWS documentation.
Creating S3 bucket with s3
If we have a empty bucket, just run the
cb command to create the bucket.
# Create S3 'my-bucket'
aws s3 cb s3://my-bucket
Creating S3 bucket with s3api
s3api command also have the capability to create s3 bucket.
If you need more information, we have done a comparison between s3 and s3api command here.
aws s3api create-bucket --bucket my-bucket --region xxxxxx
Create a bucket is simple with AWS CLI and if you create it by mistake, it can be easily deleted.