Skip to content

Commit

Permalink
Merge pull request #1851 from visiativ-agora/visiativ/feat/eventgrid-…
Browse files Browse the repository at this point in the history
…tags

Added tags to eventgrid resources
  • Loading branch information
arnaudlh authored Nov 23, 2023
2 parents 828d386 + 2eb4376 commit 4d36d9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eventgrid.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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,
Expand Down Expand Up @@ -75,4 +76,4 @@ module "eventgrid_domain_topic" {
}
output "eventgrid_domain_topic" {
value = module.eventgrid_domain_topic
}
}

0 comments on commit 4d36d9d

Please sign in to comment.