You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a region within a record on the latest versions, we are seeing dirty plans caused by re-ordering of the country/georegions (see below). This persists across plan/apply cycles.
- regions {
- meta = {
- "country" = "RU,CA,MX,US"
- "georegion" = "EUROPE,US-CENTRAL,US-WEST,AFRICA,US-EAST"
} -> null
- name = "NA-EMEA" -> null
}
+ regions {
+ meta = {
+ "country" = "CA,MX,RU,US"
+ "georegion" = "AFRICA,EUROPE,US-CENTRAL,US-EAST,US-WEST"
}
+ name = "NA-EMEA"
}
It's a bit of a pickle, because the default hashing in a TF set is not order-invariant, but even if we use a different hashing function when building it we can't seem to get it to stick in the plan.
One thing to note is that at the moment we're sorting these fields when building the meta object, but the flow from PlanResourceChange builds them in a different way that doesn't sort them, which is why we end up with a difference: we could remove the sorting, but that's in ns1-go and it's fine in other places.
I'm not despairing of finding a fix but I don't expect it to be easy.
Workaround for now: keeps these fields sorted in the terraform file.
Hi there,
When using a
region
within arecord
on the latest versions, we are seeing dirty plans caused by re-ordering of the country/georegions (see below). This persists across plan/apply cycles.Terraform Version
Affected Resource(s)
Debug Output
Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
There should not by any changes.
The text was updated successfully, but these errors were encountered: