0 votes
1 view
in AWS by (19.2k points)
How can I create S3 buckets directly from my CLI, rather than logging in and doing all the manual steps? If possible, please provide me with steps so that I can follow them. Thanks in advance!

1 Answer

0 votes
by (44.6k points)

This is a single step process if you have already downloaded and installed AWS CLI. If not installed, check out this link and install the CLI according to your OS. 

https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html

After installing it, type in this command - aws configure

This command will ask you for the access key, secret access key, default region. So, provide these details and hit Enter to save them.

Once that is done, you are pretty much set. Now, it is just one command to create a bucket. Below is the command:

aws s3 mb s3://bucket-name-here

Make sure the bucket name is unique, else your command will fail.

This is the output you will get if the command is successful:

image

Hope this helps you!

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...