Replies: 1 comment
-
|
I found the issue: I changed the variables.tf under the module/definition: thank you, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have the follwing error when I try to use definition module. any idea?
thanks,
│ Error: Error in function call
│
│ on ../../modules/definition/variables.tf line 110, in locals:
│ 110: policy_rule = coalesce(var.policy_rule, try((local.policy_object).properties.policy_Rule, null))
│ ├────────────────
│ │ while calling coalesce(vals...)
│ │ local.policy_object is object with 3 attributes
│ │ var.policy_rule is null
│
│ Call to function "coalesce" failed: no non-null, non-empty-string arguments.
main.tf:
##################
Monitoring
##################
create definitions by looping around all files found under the Monitoring category folder
module "deploy_resource_diagnostic_setting" {
source = "../../modules/definition"
for_each = toset([
for p in fileset(path.module, "../../policies/Monitoring/*.json") :
trimsuffix(basename(p), ".json")
])
policy_name = each.key
policy_category = "Monitoring"
}
Beta Was this translation helpful? Give feedback.
All reactions