Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
aws s3api create-bucket —bucket make exception

I am trying to create an S3 bucket using

aws s3api create-bucket —bucket kubernetes-aws-wthamira-io

It gives this error:

An error occurred (IllegalLocationConstraintException) when calling
the CreateBucket operation: The unspecified location constraint is
incompatible for the region specific endpoint this request was sent
to.

I set the region using aws configure to eu-west-1

Default region name [eu-west-1]: 

but it gives the same error. How do I solve this?

I use osx terminal to connect aws

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

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

over 4 years ago · Santiago Trujillo Report

0

Using mb solved the issue for us

aws s3 mb s3://storage.example.com --region us-west-1
over 4 years ago · Santiago Trujillo Report

0

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).

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!