This repository was archived by the owner on Mar 23, 2026. It is now read-only.
S3: fix change in behavior in CreateBucketConfiguration#13427
Merged
Conversation
S3 Image Test Results (AMD64 / ARM64) 2 files 2 suites 8m 10s ⏱️ Results for commit e0f53fc. |
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 1h 42m 22s ⏱️ - 59m 11s Results for commit e0f53fc. ± Comparison against base commit 12934db. This pull request removes 3306 tests.♻️ This comment has been updated with latest results. |
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 1h 20m 20s ⏱️ - 43m 31s Results for commit e0f53fc. ± Comparison against base commit 12934db. This pull request removes 2956 tests. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
We got a report that the newer 6.23 Terraform AWS provider version is failing with LocalStack: #13426
This is due to a change in what exceptions are being raised by AWS: previously, if the body contained a
CreateBucketConfigurationXML tag, it also needed to have theLocationConstrainttag inside of it. This seems to have change in AWS, probably related to the new addition of theTagsXML tag inside of it: see https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html#AmazonS3-CreateBucket-request-TagsWhen trying to revalidate the test against AWS, the exception was not raised anymore, so the logic of the provider has been updated.
There is still more to be done to make the
6.23AWS provider work with LocalStack, because it requires the new tagging endpoints that are not yet part of our stubs. Some follow-up work will still need to be done.Changes
CreateBucketConfigurationmust containLocationConstraintanymoreNext up
Support the
Tagsinput value inCreateBucketConfiguration