I am seeing terraform want to change resources for meaningless changes (often related to the ordering of list type things). For example below, This resource has not changed, just the ordering returned this particular run from the APIs.
Can I change anything to prevent these sort of meaningless changes from showing up in plans and applys? Application Gateway and it's many blocks are another example where I see this occurring.
# azurerm_web_application_firewall_policy.owasp_only will be updated in-place
~ resource "azurerm_web_application_firewall_policy" "owasp_only" {
id = "/subscriptions/ReallingInterestingGUID/resourceGroups/rg-apim/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/ccr-owasp-only"
name = "ccr-owasp-only"
tags = {
"created-by" = bob.jones@jones.com
"terraform-stack" = "api-gateway"
}
# (4 unchanged attributes hidden)
~ managed_rules {
~ managed_rule_set {
~ type = "Microsoft_BotManagerRuleSet" -> "OWASP"
~ version = "0.1" -> "2.2.9"
}
~ managed_rule_set {
~ type = "OWASP" -> "Microsoft_BotManagerRuleSet"
~ version = "2.2.9" -> "0.1"
}
}
# (1 unchanged block hidden)
}