Skip to content

Commit

Permalink
[IOPLT-807] Update Azure Tags of Common module resources (#1376)
Browse files Browse the repository at this point in the history
Co-authored-by: Krusty93 <[email protected]>
  • Loading branch information
Krusty93 and Krusty93 authored Jan 15, 2025
1 parent d6fc5da commit 65a74b6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/common/_modules/global/modules/dns/private_dns_zones.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,15 @@ resource "azurerm_private_dns_zone" "privatelink_azurewebsites" {
resource "azurerm_private_dns_zone" "privatelink_srch" {
name = "privatelink.search.windows.net"
resource_group_name = var.resource_groups.common

tags = var.tags
}

resource "azurerm_private_dns_zone" "privatelink_vault" {
name = "privatelink.vaultcore.azure.net"
resource_group_name = var.resource_groups.common

tags = var.tags
}

resource "azurerm_private_dns_zone" "azure_api_net" {
Expand Down
2 changes: 1 addition & 1 deletion src/common/prod/global.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ module "global" {
apim_v2_private_ip = module.apim_weu.private_ips[0]
}

tags = merge(local.tags, { Source = "https://github.com/pagopa/io-infra" })
tags = local.tags
}
11 changes: 6 additions & 5 deletions src/common/prod/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ locals {
secondary_project = "${local.prefix}-${local.env_short}-${local.location_short.germanywestcentral}"

tags = {
CostCenter = "TS310 - PAGAMENTI & SERVIZI"
CreatedBy = "Terraform"
Environment = "Prod"
Owner = "IO"
Source = "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
CostCenter = "TS000 - Tecnologia e Servizi"
CreatedBy = "Terraform"
Environment = "Prod"
BusinessUnit = "App IO"
Source = "https://github.com/pagopa/io-infra/blob/main/src/common/prod"
ManagementTeam = "IO Platform"
}

core = data.terraform_remote_state.core.outputs
Expand Down
2 changes: 1 addition & 1 deletion src/common/prod/westeurope.tf
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ module "application_gateway_weu" {
deny_paths = ["\\/admin\\/(.*)"]
error_action_group_id = module.monitoring_weu.action_groups.error

tags = merge(local.tags, { Source = "https://github.com/pagopa/io-infra" })
tags = local.tags
}

module "apim_weu" {
Expand Down

0 comments on commit 65a74b6

Please sign in to comment.