-
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
Permanent diff on aws.wafv2.RuleGroup #3190
Comments
This is still a problem; it looks very similar to pulumi/pulumi-terraform-bridge#1917 - we have a confused diff because the set element hash is perceived to be changing, and the reason for this is nil/empty array confusion:
|
If this is the right call, something like this #3897 could be used to work around if we cannot fix the root cause in the bridge. |
With AWS 3880 there is some evidence (derivation in #1917) that sometimes TF has entries in the InstanceDiff.Attributes while still planning to take the resource to the end-state that is identical to the original state. IN these cases, TF does not display a diff but Pulumi does. The root cause here remains unfixed (#1895) - Pulumi bridge is editing terraform-pulgin-sdk to expose the InstanceDiff structure to connect it to the makeDetailedDiff machinery. Pulumi should, like TF, stick to the gRPC protocol and rely only on the PlannedState value. We can incrementally approach the desired behavior with this change though which detects PlannedState=PriorState case and suppresses any diffs in this case. Fixes: - pulumi/pulumi-aws#3880 - pulumi/pulumi-aws#3306 - pulumi/pulumi-aws#3190 - pulumi/pulumi-aws#3454 --------- Co-authored-by: Venelin <venelin@pulumi.com>
This was fixed in #3948. It'll be released in release 6.36.0 |
What happened?
Calling pulumi up repeatedly produces non-empty diff.
Example
The example is in examples/wafv2.
Output of
pulumi about
CLI
Version 3.97.0
Go Version go1.21.4
Go Compiler gc
Plugins
NAME VERSION
aws 5.43.0
nodejs unknown
Host
OS darwin
Version 14.1.1
Arch x86_64
This project is written in nodejs: executable='/Users/t0yv0/bin/node' version='v18.18.2'
Current Stack: t0yv0/WafV2/wafv2awstest
TYPE URN
pulumi:pulumi:Stack urn:pulumi:wafv2awstest::WafV2::pulumi:pulumi:Stack::WafV2-wafv2awstest
pulumi:providers:aws urn:pulumi:wafv2awstest::WafV2::pulumi:providers:aws::prov
aws:wafv2/ruleGroup:RuleGroup urn:pulumi:wafv2awstest::WafV2::aws:wafv2/ruleGroup:RuleGroup::waf
Found no pending operations associated with wafv2awstest
Backend
Name pulumi.com
URL https://app.pulumi.com/t0yv0
User t0yv0
Organizations t0yv0, pulumi
Token type personal
Dependencies:
NAME VERSION
@pulumi/aws 5.43.0
@pulumi/pulumi 3.99.0
@types/aws-sdk 2.7.0
@types/node 8.10.66
Pulumi locates its logs in /var/folders/gk/cchgxh512m72f_dmkcc3d09h0000gp/T/com.apple.shortcuts.mac-helper// by default
Additional context
This example was tested but for some historic reasons it was tested under Quick: True option of ProgramTest that disabled the checks that verify against repeated diffs.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: