Create an S3 bucket in a specific region from the command line

0 votes
Hi Guys,

I am new to AWS S3. I want to create an S3 bucket with location constrain from the command line. How can I do that?
Oct 7, 2020 in AWS by akhtar
• 38,260 points
2,668 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use LocationConstraint in your command. The following command creates a bucket named bucketnew in the ap-south-1 region. Regions outside of us-east-1 require the appropriate LocationConstraint to be specified in order to create the bucket in the desired region.

$ aws s3api create-bucket --bucket my-bucket --region ap-south-1 --create-bucket-configuration LocationConstraint=ap-south-1
answered Oct 7, 2020 by MD
• 95,460 points

Related Questions In AWS

0 votes
1 answer

How much will it cost to read from an S3 bucket in the same region but on different account

There will be no data transfer cost ...READ MORE

answered Feb 17, 2022 in AWS by anonymous
3,139 views
0 votes
1 answer

How to copy a snapshot in AWS from the command line?

Hi@akhtar, The following copy-snapshot example command copies the specified snapshot ...READ MORE

answered Oct 20, 2020 in AWS by MD
• 95,460 points
1,105 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,020 points
5,946 views
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,020 points
5,200 views
0 votes
2 answers
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP