Skip to content

Commit

Permalink
fix issues and timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredfholgate committed Dec 20, 2024
1 parent 377495a commit 5fd2e97
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ hub_and_spoke_vnet_virtual_networks = {
auto_registration_zone_name = "$${primary_auto_registration_zone_name}.azure.local"
subnet_address_prefix = "$${primary_private_dns_resolver_subnet_address_prefix}"
private_dns_resolver = {
name = "$${primary_dns_resolver_name}"
name = "$${primary_private_dns_resolver_name}"
}
}
bastion = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ virtual_wan_virtual_hubs = {
auto_registration_zone_name = "$${primary_auto_registration_zone_name}"
subnet_address_prefix = "$${primary_private_dns_resolver_subnet_address_prefix}"
private_dns_resolver = {
name = "$${primary_dns_resolver_name}"
name = "$${primary_private_dns_resolver_name}"
}
}
bastion = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ virtual_wan_virtual_hubs = {
auto_registration_zone_name = "$${primary_auto_registration_zone_name}"
subnet_address_prefix = "$${primary_private_dns_resolver_subnet_address_prefix}"
private_dns_resolver = {
name = "$${primary_dns_resolver_name}"
name = "$${primary_private_dns_resolver_name}"
}
}
bastion = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ virtual_wan_virtual_hubs = {
auto_registration_zone_name = "$${primary_auto_registration_zone_name}"
subnet_address_prefix = "$${primary_private_dns_resolver_subnet_address_prefix}"
private_dns_resolver = {
name = "$${primary_dns_resolver_name}"
name = "$${primary_private_dns_resolver_name}"
}
}
bastion = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,31 @@ locals {
} }
} }
default_retries = {
policy_assignments = {
error_message_regex = ["AuthorizationFailed", "The policy definition specified in policy assignment '.+' is out of scope"]
}
policy_definitions = {
error_message_regex = ["AuthorizationFailed"]
}
policy_set_definitions = {
error_message_regex = ["AuthorizationFailed"]
}
policy_role_assignments = {
error_message_regex = ["AuthorizationFailed", "ResourceNotFound"]
}
}
default_timeouts = {
policy_assignments = {
create = "10m"
}
policy_definitions = {
create = "10m"
}
policy_set_definitions = {
create = "10m"
}
policy_role_assignments = {
create = "10m"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ module "management_groups" {
partner_id = try(var.management_group_settings.partner_id, null)
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, {})
timeouts = try(var.management_group_settings.timeouts, local.default_timeouts)
dependencies = var.dependencies
}

0 comments on commit 5fd2e97

Please sign in to comment.