Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in AWS by (19.1k 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.4k 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!

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
2 answers
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...