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 in AWS by akhtar
• 33,720 points
27 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 by MD
• 79,930 points

Related Questions In AWS

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 in AWS by MD
• 79,930 points
72 views
0 votes
1 answer
+3 votes
5 answers

How to move files from amazon ec2 to s3 bucket using command line

Hey, 3 ways you can do this: To ...READ MORE

answered Oct 9, 2018 in AWS by Omkar
• 69,030 points
13,505 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
• 57,700 points
1,461 views
0 votes
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
• 57,700 points
2,315 views
0 votes
2 answers
0 votes
1 answer