aws s3api create-bucket —bucket make exception
try this:
aws s3api create-bucket --bucket kubernetes-aws-wthamira-io --create-bucket-configuration LocationConstraint=eu-west-1
Regions outside of us-east-1
require the appropriate LocationConstraint
to be specified in order to create the bucket in the desired region.
https://docs.aws.amazon.com/cli/latest/reference/s3api/create-bucket.html
Using mb solved the issue for us
aws s3 mb s3://storage.example.com --region us-west-1
You'll also get this error if you're trying to create a bucket with a name that's already been taken.
So try giving your bucket a more unique name and then it should work (I just added digits to the end of the bucket name).