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
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
terraform apply => creation of the rules
wait for some time (I don't understand for now why it does not happen right away but I'm confident that no one touches manually or with api on the resource since I work on an env I only manage myself)
terraform apply => recreation of the rules
Other behavior: if some rule is added / deleted ==> recreation of every rules instead of working only on the affected rule.
What is the expected behavior?
Terraform is supposed to detect that the rules are already created and not recreate them if not needed.
Software versions?
terraform --version
Terraform v1.9.3
on windows_amd64
Initializing modules...
Initializing provider plugins...
- Reusing previous version of hashicorp/aws from the dependency lock file
- Using previously-installed hashicorp/aws v5.55.0
I guess the issue comes from the fact that the var.rules is not typed as a map(object) but as any and has a default value to an empty list [].
But even if I pass a map (with keys matching the rule name), the rules are recreated.
What is the current behavior?
When terraform runs over an existing
aws_wafv2_web_acl
, it constantly detects a change in the rules and recreates them, even if there is no change.If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Other behavior: if some rule is added / deleted ==> recreation of every rules instead of working only on the affected rule.
What is the expected behavior?
Terraform is supposed to detect that the rules are already created and not recreate them if not needed.
Software versions?
I guess the issue comes from the fact that the
var.rules
is not typed as amap(object)
but asany
and has a default value to an empty list[]
.But even if I pass a map (with keys matching the rule name), the rules are recreated.
I think it would need to use the aws_wafv2_rule_group resource in the module and then use the rule group reference within
aws_wafv2_rule_group
resource.If we use this in conjunction with a map it should be able to reference the appropriate key in the rule_group_reference_statement
The text was updated successfully, but these errors were encountered: