-
Notifications
You must be signed in to change notification settings - Fork 151
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 #2442 #3638
Fix #2442 #3638
Conversation
Wanted to get feedback on this before adding some tests, but this seems to pass a local variation of tests for me with this change, this is one way to get this suggestion implemented:
I found a way to do this post-patching so adding a patch is not required, which I think is slightly easier to maintain. |
Does the PR have any schema changes?Does the PR have any schema changes?Looking good! No breaking changes found. Maintainer note: consult the runbook for dealing with any breaking changes. |
LGTM, should we call out the change somewhere in the RDS docs? It might be slightly unexpected for a user that they can not modify JUST the apply_method - that'd now yield no diff, right? |
That is true we need to edit that note out of the docs. |
I'm also a bit surprised that marking the field as Computed now decided that it will always be populated in the TypeScript type projection. So this needs to re-generate schema, and makes an optional field required. I think it's benign in this case but it is a strange bridge behavior. |
LGTM. I would second @VenelinMartinov in mentioning the new behavior in the docs. |
Adding a docs edit, then should be ready to go. One moment. |
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.
🔥
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.27.0` -> `6.28.2`](https://renovatebot.com/diffs/npm/@pulumi%2faws/6.27.0/6.28.2) | --- > [!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.28.2`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.28.2) [Compare Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.28.1...v6.28.2) ##### Changelog - [`60ee1d9`](https://togithub.com/pulumi/pulumi-aws/commit/60ee1d9972) Correctly set the alt type for `aws_cloudwatch_log_resource_policy` ([#​3743](https://togithub.com/pulumi/pulumi-aws/issues/3743)) - [`2ee8434`](https://togithub.com/pulumi/pulumi-aws/commit/2ee84343ef) Update the interface for ECS Container PortMapping with current options ([#​3043](https://togithub.com/pulumi/pulumi-aws/issues/3043)) - [`bcceea1`](https://togithub.com/pulumi/pulumi-aws/commit/bcceea1a68) Upgrade pulumi-terraform-bridge to v3.79.0 ([#​3758](https://togithub.com/pulumi/pulumi-aws/issues/3758)) - [`1ee3194`](https://togithub.com/pulumi/pulumi-aws/commit/1ee31944f4) fix: rds.dataSourceEngineVersionRead panic ([#​3757](https://togithub.com/pulumi/pulumi-aws/issues/3757)) ### [`v6.28.1`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.28.1) [Compare Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.27.0...v6.28.1) ##### Changelog ##### What's Changed - Upstream v5.42.0 by [@​t0yv0](https://togithub.com/t0yv0) in [pulumi/pulumi-aws#3728 - Add support for C7a instance types by [@​t0yv0](https://togithub.com/t0yv0) in [pulumi/pulumi-aws#3734 - Remove patch for CloudWatch Logging entry in Lambda description by [@​guineveresaenger](https://togithub.com/guineveresaenger) in [pulumi/pulumi-aws#3654 - Fix rds.ParameterGroup diff not clear [#​2442](https://togithub.com/pulumi/pulumi-aws/issues/2442) by [@​t0yv0](https://togithub.com/t0yv0) in [pulumi/pulumi-aws#3638 - Remove stale doc for acm.CertificateValidation by [@​guineveresaenger](https://togithub.com/guineveresaenger) in [pulumi/pulumi-aws#3656 - Cleanup: Update import overwrite for Network Firewall Resource Policy by [@​guineveresaenger](https://togithub.com/guineveresaenger) in [pulumi/pulumi-aws#3676 - Fix updating tags on aws_launch_template by [@​t0yv0](https://togithub.com/t0yv0) in [pulumi/pulumi-aws#3687 - Update auto-generated AWS managed IAM policies by [@​iwahbe](https://togithub.com/iwahbe) in [pulumi/pulumi-aws#3701 - Deprecation: inline rules for SecurityGroup and NetworkAcl resources by [@​EronWright](https://togithub.com/EronWright) in [pulumi/pulumi-aws#3729 - Add EKS service principal for Node.js SDK by [@​auvred](https://togithub.com/auvred) in [pulumi/pulumi-aws#3651 ##### Dependencies - Upgrade pulumi-terraform-bridge to v3.78.0 by [@​pulumi-bot](https://togithub.com/pulumi-bot) in [pulumi/pulumi-aws#3673 ##### New Contributors - [@​EronWright](https://togithub.com/EronWright) made their first contribution in [pulumi/pulumi-aws#3729 - [@​auvred](https://togithub.com/auvred) made their first contribution in [pulumi/pulumi-aws#3651 **Full Changelog**: pulumi/pulumi-aws@v6.27.0...v6.28.1 </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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI3Ni4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> 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.27.0` -> `6.28.2`](https://renovatebot.com/diffs/npm/@pulumi%2faws/6.27.0/6.28.2) | --- > [!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.28.2`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.28.2) [Compare Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.28.1...v6.28.2) ##### Changelog - [`60ee1d9`](https://togithub.com/pulumi/pulumi-aws/commit/60ee1d9972) Correctly set the alt type for `aws_cloudwatch_log_resource_policy` ([#​3743](https://togithub.com/pulumi/pulumi-aws/issues/3743)) - [`2ee8434`](https://togithub.com/pulumi/pulumi-aws/commit/2ee84343ef) Update the interface for ECS Container PortMapping with current options ([#​3043](https://togithub.com/pulumi/pulumi-aws/issues/3043)) - [`bcceea1`](https://togithub.com/pulumi/pulumi-aws/commit/bcceea1a68) Upgrade pulumi-terraform-bridge to v3.79.0 ([#​3758](https://togithub.com/pulumi/pulumi-aws/issues/3758)) - [`1ee3194`](https://togithub.com/pulumi/pulumi-aws/commit/1ee31944f4) fix: rds.dataSourceEngineVersionRead panic ([#​3757](https://togithub.com/pulumi/pulumi-aws/issues/3757)) ### [`v6.28.1`](https://togithub.com/pulumi/pulumi-aws/releases/tag/v6.28.1) [Compare Source](https://togithub.com/pulumi/pulumi-aws/compare/v6.27.0...v6.28.1) ##### Changelog ##### What's Changed - Upstream v5.42.0 by [@​t0yv0](https://togithub.com/t0yv0) in [pulumi/pulumi-aws#3728 - Add support for C7a instance types by [@​t0yv0](https://togithub.com/t0yv0) in [pulumi/pulumi-aws#3734 - Remove patch for CloudWatch Logging entry in Lambda description by [@​guineveresaenger](https://togithub.com/guineveresaenger) in [pulumi/pulumi-aws#3654 - Fix rds.ParameterGroup diff not clear [#​2442](https://togithub.com/pulumi/pulumi-aws/issues/2442) by [@​t0yv0](https://togithub.com/t0yv0) in [pulumi/pulumi-aws#3638 - Remove stale doc for acm.CertificateValidation by [@​guineveresaenger](https://togithub.com/guineveresaenger) in [pulumi/pulumi-aws#3656 - Cleanup: Update import overwrite for Network Firewall Resource Policy by [@​guineveresaenger](https://togithub.com/guineveresaenger) in [pulumi/pulumi-aws#3676 - Fix updating tags on aws_launch_template by [@​t0yv0](https://togithub.com/t0yv0) in [pulumi/pulumi-aws#3687 - Update auto-generated AWS managed IAM policies by [@​iwahbe](https://togithub.com/iwahbe) in [pulumi/pulumi-aws#3701 - Deprecation: inline rules for SecurityGroup and NetworkAcl resources by [@​EronWright](https://togithub.com/EronWright) in [pulumi/pulumi-aws#3729 - Add EKS service principal for Node.js SDK by [@​auvred](https://togithub.com/auvred) in [pulumi/pulumi-aws#3651 ##### Dependencies - Upgrade pulumi-terraform-bridge to v3.78.0 by [@​pulumi-bot](https://togithub.com/pulumi-bot) in [pulumi/pulumi-aws#3673 ##### New Contributors - [@​EronWright](https://togithub.com/EronWright) made their first contribution in [pulumi/pulumi-aws#3729 - [@​auvred](https://togithub.com/auvred) made their first contribution in [pulumi/pulumi-aws#3651 **Full Changelog**: pulumi/pulumi-aws@v6.27.0...v6.28.1 </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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI3Ni4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
In #3638 - we introduced a diff customizer to change the schema as an alternative to patching. The change does not pass InternalValidate but because of pulumi/pulumi-terraform-bridge#1852 it was not flagged up. After turning InternalValidate back on (pulumi/pulumi-terraform-bridge#1852) we discovered an issue with this parameter: ``` make tfgen_no_deps (cd provider && go build -p 2 -o /Users/vvm/code/pulumi-aws/bin/pulumi-tfgen-aws -ldflags "-X github.com/pulumi/pulumi-aws/provider/v6/pkg/version.Version=6.29.1+dirty" github.com/pulumi/pulumi-aws/provider/v6/cmd/pulumi-tfgen-aws) /Users/vvm/code/pulumi-aws/bin/pulumi-tfgen-aws schema --out provider/cmd/pulumi-resource-aws Errors occurred: [InternalValidate: Internal validation of the provider failed! This is always a bug with the provider itself, and not a user issue. Please report this bug: resource aws_db_parameter_group: apply_method: Default must be nil if computed] make: *** [tfgen_no_deps] Error 255 ``` This should fix it by also setting the Default to nil in the schema. To keep the current behaviour, we set the Default in the pulumi overlay instead.
Fixes #2442
This adds a diff customizer that ignores changes to parameters that only change the apply_method and not the value for the aws_db_parameter_group resource. To make this work, the change also needs to modify the set element hashing function to identify parameters that differ only by apply_method as identical.
As a side-effect of the set hashing change, upgrading stacks to the newer version of the provider with this change will show a reordering update diff on the ParameterGroup resource.