diff --git a/eventgrid.tf b/eventgrid.tf index c030458b28..c26e4a05d2 100755 --- a/eventgrid.tf +++ b/eventgrid.tf @@ -5,6 +5,7 @@ module "eventgrid_domain" { global_settings = local.global_settings client_config = local.client_config settings = each.value + base_tags = try(local.global_settings.inherit_tags, false) ? try(local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].tags, {}) : {} location = can(local.global_settings.regions[each.value.region]) ? local.global_settings.regions[each.value.region] : local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].location @@ -25,6 +26,7 @@ module "eventgrid_topic" { global_settings = local.global_settings client_config = local.client_config settings = each.value + base_tags = try(local.global_settings.inherit_tags, false) ? try(local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].tags, {}) : {} location = can(local.global_settings.regions[each.value.region]) ? local.global_settings.regions[each.value.region] : local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].location @@ -44,7 +46,6 @@ module "eventgrid_event_subscription" { client_config = local.client_config settings = each.value - remote_objects = { all = local.remote_objects, functions = local.combined_objects_function_apps, @@ -75,4 +76,4 @@ module "eventgrid_domain_topic" { } output "eventgrid_domain_topic" { value = module.eventgrid_domain_topic -} \ No newline at end of file +}