-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix aws.s3.Bucket tag drift detection #3910
Conversation
Make sure that `pulumi refresh` detects changes to bucket tagging. The implementation restores aws_s3_legacy_bucket resource participation in the generic tags interceptor.
Does the PR have any schema changes?Looking good! No breaking changes found. Maintainer note: consult the runbook for dealing with any breaking changes. |
Is README.md missing any configuration options?
Please add a description for each of these options to |
The randomized tagging tests flagged legacy-bucket not behaving correctly which is very relevant to this change. Specifically the randomized state transition defying the expectation is:
We have seen flakes here before due to tag retrieval eventual consistency but I'm going to double check since this very well may be an actual problem. |
Doesn't reproduce locally, must have been a flake. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@t0yv0 I'm assuming that adding the legacy bucket as a ServicePackage
is what enrolls it into the generic tags? Is there any other implications of doing this, I'm not very familiar with what ServicePackage
does.
I think yes that's it. https://github.com/hashicorp/terraform-provider-aws/blob/master/internal/provider/provider.go#L39 walks through all ServicePackage defined resources and https://github.com/hashicorp/terraform-provider-aws/blob/master/internal/provider/provider.go#L329 installs the interceptor. It looks like it does a few checks. I think it's reasonable for the legacy bucket to participate here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@pulumi/aws](https://pulumi.io) ([source](https://togithub.com/pulumi/pulumi-aws)) | dependencies | minor | [`6.34.1` -> `6.35.0`](https://renovatebot.com/diffs/npm/@pulumi%2faws/6.34.1/6.35.0) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>pulumi/pulumi-aws (@​pulumi/aws)</summary> ### [`v6.35.0`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.35.0) [Compare Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.34.1...v6.35.0) ##### Changelog - Fix aws.s3.Bucket tag drift detection by [@​t0yv0](https://togithub.com/t0yv0) in [https://github.com/pulumi/pulumi-aws/pull/3910](https://togithub.com/pulumi/pulumi-aws/pull/3910) - Fix empty retry_strategy of Batch JobDefinition causing panics by [@​flostadler](https://togithub.com/flostadler) in [https://github.com/pulumi/pulumi-aws/pull/3921](https://togithub.com/pulumi/pulumi-aws/pull/3921) - Combined dependencies PR by [@​pulumi-bot](https://togithub.com/pulumi-bot) in [https://github.com/pulumi/pulumi-aws/pull/3928](https://togithub.com/pulumi/pulumi-aws/pull/3928) - Bump the go_modules group across 3 directories with 2 updates by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/pulumi/pulumi-aws/pull/3894](https://togithub.com/pulumi/pulumi-aws/pull/3894) **Full Changelog**: pulumi/pulumi-aws@v6.34.1...v6.35.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTYuMSIsInVwZGF0ZWRJblZlciI6IjM3LjM1Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL21pbm9yIl19--> Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@pulumi/aws](https://pulumi.io) ([source](https://togithub.com/pulumi/pulumi-aws)) | dependencies | minor | [`6.34.1` -> `6.35.0`](https://renovatebot.com/diffs/npm/@pulumi%2faws/6.34.1/6.35.0) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>pulumi/pulumi-aws (@​pulumi/aws)</summary> ### [`v6.35.0`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.35.0) [Compare Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.34.1...v6.35.0) ##### Changelog - Fix aws.s3.Bucket tag drift detection by [@​t0yv0](https://togithub.com/t0yv0) in [https://github.com/pulumi/pulumi-aws/pull/3910](https://togithub.com/pulumi/pulumi-aws/pull/3910) - Fix empty retry_strategy of Batch JobDefinition causing panics by [@​flostadler](https://togithub.com/flostadler) in [https://github.com/pulumi/pulumi-aws/pull/3921](https://togithub.com/pulumi/pulumi-aws/pull/3921) - Combined dependencies PR by [@​pulumi-bot](https://togithub.com/pulumi-bot) in [https://github.com/pulumi/pulumi-aws/pull/3928](https://togithub.com/pulumi/pulumi-aws/pull/3928) - Bump the go_modules group across 3 directories with 2 updates by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/pulumi/pulumi-aws/pull/3894](https://togithub.com/pulumi/pulumi-aws/pull/3894) **Full Changelog**: pulumi/pulumi-aws@v6.34.1...v6.35.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNTYuMSIsInVwZGF0ZWRJblZlciI6IjM3LjM1Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL21pbm9yIl19--> Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
Make sure that
pulumi refresh
detects changes to bucket tagging.The implementation restores aws_s3_legacy_bucket resource participation in the generic tags interceptor.
Fixes #3674