Skip to content

Commit

Permalink
revert examples syntax (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
gettek authored Apr 12, 2023
1 parent b0feb67 commit c8506c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/definitions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ module "whitelist_regions" {
# 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.cwd, "../policies/Monitoring/*.json") : basename(p)])
policy_name = trimsuffix(each.key, ".json")
for_each = toset([for p in fileset(path.cwd, "../policies/Monitoring/*.json") : trimsuffix(basename(p), ".json")])
policy_name = each.key
policy_category = "Monitoring"
management_group_id = data.azurerm_management_group.org.id
}
Expand Down

0 comments on commit c8506c4

Please sign in to comment.