Skip to content

Conversation

lucille42
Copy link

Issue #, if available:
n/a

Description of changes:

If two s3 buckets had the prefix "podid" in different regions, this would cause the tests to fail with the error:
getting bucket tagging: operation error S3: GetBucketTagging, https response error StatusCode: 301, RequestID: WGBQJQFB7Z2KXSVT, HostID: GAVWfFhWLvjhbykCzTgV3mIrOFU4lEAFVitSA8FMMavPLFcSPaVmBjHQ1B6a+ckL+SMvN+S/zHU=, api error PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.

Check if the bucket region is in a different region than the stack user is working on. If so, skip adding this to the list of s3 buckets to be deleted upon cleanup.

Testing (if applicable):

Ran make e2e-test ginkgo && ./_bin/e2e-test run-e2e -f="al23-amd64 && simpleflow && ssm" --skip-cleanup=true --artifacts-dir=e2e-artifacts --logs-bucket=
saw that error went away and expected infra was deployed in dev account. Was now able to run the tests in us-east-1 and us-west-2

Documentation added/planned (if applicable):
n/a

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants