-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
google_pubsub_subscription TF changes at every plan #18016
google_pubsub_subscription TF changes at every plan #18016
Comments
Hi @apenen this scenario was replicated a considerable number of times with the same message:
Also as the documentation describes: If you don't set the |
The problem is given to us by setting the maximum_backoff to null. We will put the value to empty string by default in our vars. Thanks. |
b/339860576 |
We are using the code from this module: https://github.com/terraform-google-modules/terraform-google-pubsub When you set maximum_backoff to null, Terraform always applies empty changes, as I mentioned earlier. |
Reviewing in deep this kind of scenarios are detected as a permadiff as @melinath commented, but now if you are managing the value of the Just to confirm again: The scenario was replicated with all the configurations, code and versions provided even waiting for a long time to run a |
@trodge was able to reproduce this permadiff by using an empty
The dynamic block is likely producing an empty entry for some reason. |
What do you think @melinath? I've reproduced this issue with this initial config for the
Then executed a
Finally as you suggested I executed new tests with this config:
But always having the same result as the previous replications... Did you get a different result to forward it? |
@ggtisc |
Community Note
Terraform Version & Provider Version(s)
Terraform v1.5.7
Affected Resource(s)
google_pubsub_subscription
Terraform Configuration
Debug Output
No response
Expected Behavior
The google_pubsub_subscription should be fully idempotent.
Using the resource after the first apply should return the: No changes. Your infrastructure matches the configuration. message
Actual Behavior
When not specifying these optional property: retry_policy, terraform wants to change their values in this way:
Steps to reproduce
Create a google_pubsub_subscription without specifying that property
Important Factoids
This change produces a change in the iam bindings since it has reference in replace_triggered_by
References
No response
b/341370938
The text was updated successfully, but these errors were encountered: