Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aws_tag_deprovision: continue on s3tag fetch
There might be s3buckets in account that attached to different region. This caused the deprovisioner to fail fataly. For example: 2018/09/24 22:52:43 DEBUG: Request s3/GetBucketTagging Details: ---[ REQUEST POST-SIGN ]----------------------------- GET /?tagging= HTTP/1.1 Host: atectonic-demo-97d9f36d6647e7be86e0ce5baca4e419.s3.amazonaws.com User-Agent: aws-sdk-go/1.15.41 (go1.10.3; linux; amd64) Authorization: <redacted> Accept-Encoding: gzip ---[ RESPONSE ]-------------------------------------- HTTP/1.1 400 Bad Request Connection: close Transfer-Encoding: chunked Content-Type: application/xml Date: Tue, 25 Sep 2018 05:55:26 GMT Server: AmazonS3 ----------------------------------------------------- 2018/09/24 22:55:27 <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AuthorizationHeaderMalformed</Code><Message>The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-2'</Message><Region>us-west-2</Region></Error> Skipping errors allows us to create best possible list of s3 buckets that might have the required tag.
- Loading branch information