-
Notifications
You must be signed in to change notification settings - Fork 1.8k
google_compute_router - Provider Version >=5.32.0 causes permadiff for advertised_ip_ranges #18472
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
Comments
Managed to reproduce the issue. This is a simplified configuration that triggers the perma diff:
FYI perma diff doesn't happen if advertised IP ranges are put in order. @SarahFrench @bahag-klickst I'll need to look again at hashicorp/terraform-provider-google/pull/18228. |
Hej @LucaPrete, @SarahFrench for_each = { for k, v in each.value.advertised_ip_ranges : k => v if each.value.advertise_mode == "CUSTOM" } which means we use a list as input advertised_ip_ranges = optional(list(object({
range = string
description = string
})), []) and convert it to a map, so basically our assumption was, that the order in the list defined in the tfvars which we converted to a map would be kept. Best Regards, |
It may be that the approach used in that that PR (reordering to match config) isn't compatible with dynamic blocks- writing an acceptance test with dynamic blocks would be a good starting point for solving this |
Confirmed issue! As @LucaPrete describes the |
Can reproduce. |
Closed by GoogleCloudPlatform/magic-modules#11262 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Uh oh!
There was an error while loading. Please reload this page.
Community Note
Terraform Version & Provider Version(s)
Terraform v1.8.5
on darwin_arm64 | amd64
Affected Resource(s)
google_compute_router
Terraform Configuration
Debug Output
Expected Behavior
Preserve the order, as it was before v5.32.0 no diff was shown as the order was preserved
Actual Behavior
Permadiff is shown even after appy, maybe due to the fix introduced as part of #9353 / #18228
Steps to reproduce
terraform apply
Important Factoids
No response
References
No response
b/348509494
The text was updated successfully, but these errors were encountered: