Can not create S3 Bucket after change AWS region

Issue

We changed our cluster from region and we try to recreate it again and it shows this error:

[elasticsearch-snapshots] 1 error(s) occurred:
[elasticsearch-snapshots]
[elasticsearch-snapshots] * aws_s3_bucket.elasticsearch-snapshots: Error creating S3 bucket: AuthorizationHeaderMalformed: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2'
[elasticsearch-snapshots] status code: 400, request id: 320A07AAD3665997

Environment

  • CloudBees Jenkins Enterprise (CJE)
  • Amazon Web Services (AWS)

Resolution

The error switching regions is caused because the S3 buckets have to be unique, if you haven’t destroyed the previous one AWS will throw errors. Once the S3 bucket is deleted, it may take some time for the other region to ‘see’ that it has been deleted.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.