diff --git a/src/domains/cgn/_modules/cosmos/cosmos_account_cgn.tf b/src/domains/cgn/_modules/cosmos/cosmos_account_cgn.tf index 541268430..32999b3f6 100644 --- a/src/domains/cgn/_modules/cosmos/cosmos_account_cgn.tf +++ b/src/domains/cgn/_modules/cosmos/cosmos_account_cgn.tf @@ -9,7 +9,7 @@ module "cosmos_account_cgn" { offer_type = "Standard" kind = "GlobalDocumentDB" - main_geo_location_zone_redundant = false + main_geo_location_zone_redundant = true enable_free_tier = false enable_automatic_failover = true @@ -26,7 +26,7 @@ module "cosmos_account_cgn" { { location = var.secondary_location failover_priority = 1 - zone_redundant = true + zone_redundant = false } ] @@ -36,12 +36,7 @@ module "cosmos_account_cgn" { ip_range = "" - # private endpoint - private_endpoint_sql_name = "${var.project}-cosmos-cgn-sql-endpoint" - private_endpoint_enabled = true - private_service_connection_sql_name = "${var.project}-cosmos-cgn-sql-endpoint" - subnet_id = var.private_endpoint_subnet_id - private_dns_zone_sql_ids = [data.azurerm_private_dns_zone.privatelink_documents.id] + private_endpoint_enabled = false tags = var.tags } @@ -59,5 +54,10 @@ resource "azurerm_private_endpoint" "cosno_remote_content_itn" { subresource_names = ["Sql"] } + private_dns_zone_group { + name = "private-dns-zone-group" + private_dns_zone_ids = [data.azurerm_private_dns_zone.privatelink_documents.id] + } + tags = var.tags } diff --git a/src/domains/cgn/prod/cosmos.tf b/src/domains/cgn/prod/cosmos.tf index c12df5b4e..9b5bd8e49 100644 --- a/src/domains/cgn/prod/cosmos.tf +++ b/src/domains/cgn/prod/cosmos.tf @@ -2,8 +2,8 @@ module "cosmos" { source = "../_modules/cosmos" project = local.project - location = local.location - secondary_location = local.secondary_location + location = "italynorth" + secondary_location = "spaincentral" resource_group_name = module.resource_groups.resource_group_cgn.name private_endpoint_subnet_id = module.networking.subnet_pendpoints.id