Skip to content

Commit

Permalink
[CES-501] Update Remote Content Cosmos DB secondary region (#1306)
Browse files Browse the repository at this point in the history
Co-authored-by: Krusty93 <[email protected]>
  • Loading branch information
Krusty93 and Krusty93 authored Nov 14, 2024
1 parent df1d431 commit c250d1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
5 changes: 5 additions & 0 deletions src/domains/messages-common/01_network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,9 @@ resource "azurerm_private_endpoint" "cosno_remote_content_itn" {
is_manual_connection = false
subresource_names = ["Sql"]
}

private_dns_zone_group {
name = "private-dns-zone-group"
private_dns_zone_ids = [data.azurerm_private_dns_zone.privatelink_documents_azure_com.id]
}
}
16 changes: 6 additions & 10 deletions src/domains/messages-common/03_database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -292,21 +292,17 @@ module "cosmosdb_account_remote_content" {
enable_free_tier = false
kind = "GlobalDocumentDB"

public_network_access_enabled = false
private_endpoint_enabled = true
subnet_id = data.azurerm_subnet.private_endpoints_subnet.id
private_dns_zone_sql_ids = [data.azurerm_private_dns_zone.privatelink_documents_azure_com.id]
private_service_connection_sql_name = "${local.product}-messages-remote-content-private-endpoint"
private_endpoint_sql_name = "${local.product}-messages-remote-content"
is_virtual_network_filter_enabled = false
public_network_access_enabled = false
private_endpoint_enabled = false
is_virtual_network_filter_enabled = false

main_geo_location_location = azurerm_resource_group.data_rg.location
main_geo_location_location = "italynorth"
main_geo_location_zone_redundant = true

additional_geo_locations = [{
location = "italynorth"
location = "spaincentral"
failover_priority = 1
zone_redundant = true
zone_redundant = false
}]

consistency_policy = {
Expand Down

0 comments on commit c250d1b

Please sign in to comment.