Skip to content

Commit

Permalink
feat: policy definition retries
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Dec 19, 2024
1 parent 30e1d38 commit 6c35c81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ locals {
overrides = try(policy_assignment_value.overrides, null)
} }
} }
default_retries = {
policy_definitions = {
error_message_regex = ["AuthorizationFailed"]
}
policy_set_definitions = {
error_message_regex = ["AuthorizationFailed"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module "management_groups" {
enable_telemetry = var.enable_telemetry
management_group_hierarchy_settings = try(var.management_group_settings.management_group_hierarchy_settings, null)
partner_id = try(var.management_group_settings.partner_id, null)
retries = try(var.management_group_settings.retries, {})
retries = try(var.management_group_settings.retries, local.default_retries)
subscription_placement = try(var.management_group_settings.subscription_placement, {})
timeouts = try(var.management_group_settings.timeouts, {})
dependencies = var.dependencies
Expand Down

0 comments on commit 6c35c81

Please sign in to comment.