Difference between revisions of "Aws s3 mb"
Jump to navigation
Jump to search
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | <code>[[aws s3]] mb</code> creates an S3 bucket. | + | <code>[[aws s3]] mb</code> (make bucket) 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 | ||
− | |||
− | + | aws s3 mb [[s3://]]mybucket | |
+ | make_bucket: mybucket | ||
+ | |||
+ | aws s3 mb [[--region]] | ||
== Example == | == Example == | ||
Line 12: | Line 14: | ||
Solution: include --region configuration parameter | Solution: include --region configuration parameter | ||
aws s3 mb s3://mybucket [[--region]] [[us-west-2]] | aws s3 mb s3://mybucket [[--region]] [[us-west-2]] | ||
+ | |||
+ | == Errors == | ||
+ | * <code>"[[ResourceStatusReason]]": "Bucket name should not contain uppercase characters"</code> | ||
== Related terms == | == Related terms == | ||
* <code>[[aws s3api create-bucket]]</code> | * <code>[[aws s3api create-bucket]]</code> | ||
* <code>[[Cloudformation AWS::S3::Bucket example|Cloudformation AWS::S3::Bucket]]</code> example | * <code>[[Cloudformation AWS::S3::Bucket example|Cloudformation AWS::S3::Bucket]]</code> example | ||
− | |||
− | |||
− | |||
* <code>[[gsutil mb]]</code> | * <code>[[gsutil mb]]</code> | ||
+ | * [[Terraform]]: <code>[[aws_s3_bucket]]</code> | ||
+ | * <code>[[aws s3 rm]]</code> | ||
+ | * <code>[[az storage container create]]</code> | ||
== See also == | == See also == | ||
+ | * {{aws s3 mb}} | ||
* {{aws s3}} | * {{aws s3}} | ||
− | |||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 12:17, 31 January 2025
aws s3 mb
(make bucket) creates an S3 bucket.
https://docs.aws.amazon.com/cli/latest/reference/s3/mb.html
aws s3 mb s3://mybucket make_bucket: mybucket
aws s3 mb --region
Contents
Example[edit]
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
Errors[edit]
"ResourceStatusReason": "Bucket name should not contain uppercase characters"
Related terms[edit]
aws s3api create-bucket
Cloudformation AWS::S3::Bucket
examplegsutil mb
- Terraform:
aws_s3_bucket
aws s3 rm
az storage container create
See also[edit]
Advertising: