Difference between revisions of "Aws s3 mb"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
<code>[[aws s3]] mb</code> creates an S3 bucket.
 
<code>[[aws s3]] mb</code> creates an S3 bucket.
 
https://docs.aws.amazon.com/cli/latest/reference/s3/mb.html
 
https://docs.aws.amazon.com/cli/latest/reference/s3/mb.html
* <code>aws s3 mb s3://mybucket</code>
+
 
 +
aws s3 mb [[s3://]]mybucket
 +
make_bucket: mybucket
  
 
  <code>mb</code> - Make bucket
 
  <code>mb</code> - Make bucket

Revision as of 15:01, 19 February 2024

aws s3 mb creates an S3 bucket. https://docs.aws.amazon.com/cli/latest/reference/s3/mb.html

aws s3 mb s3://mybucket
make_bucket: mybucket
mb - Make bucket

Example

aws s3 mb s3://mybucket
make_bucket failed: s3://mybucket An error occurred (InvalidLocationConstraint) when calling the CreateBucket operation: The specified location-constraint is not valid
Solution: include --region configuration parameter
aws s3 mb s3://mybucket --region us-west-2

Related terms

See also

Advertising: