tactlabs / error-archive

All issues related to tact and tact labs work
0 stars 0 forks source link

Could not create S3 bucket locally. #310

Open Ananthu2oo3 opened 1 year ago

Ananthu2oo3 commented 1 year ago

Traceback (most recent call last): File "s3_util.py", line 158, in create_bucket(BUCKET) File "s3_util.py", line 61, in create_bucket response = localstack_client.create_bucket(Bucket=bucket_name) File "/home/sivaraam/miniconda3/envs/py38/lib/python3.8/site-packages/botocore/client.py", line 508, in _api_call return self._make_api_call(operation_name, kwargs) File "/home/sivaraam/miniconda3/envs/py38/lib/python3.8/site-packages/botocore/client.py", line 911, in _make_api_call raise error_class(parsed_response, operation_name) botocore.exceptions.ClientError: 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.

Ananthu2oo3 commented 1 year ago

https://repost.aws/questions/QUKgr9fG6fSimVSUqK9fvkwQ

check the link try out this way import boto3 s3 = boto3.client('s3') s3.create_bucket(Bucket='lddidddddd', CreateBucketConfiguration={'LocationConstraint': 'us-east-2'})