Skip to content

Commit

Permalink
[CES-118] Update Cosmos Citizen network settings after manual failover (
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty93 authored Nov 5, 2024
1 parent 3a07f0c commit 20494c5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/domains/citizen-auth-app/99_variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ variable "plan_shared_1_sku_size" {
variable "plan_shared_1_sku_capacity" {
description = "Shared functions app plan capacity"
type = number
default = 1
default = 3
}
###########################
################################
Expand Down
2 changes: 1 addition & 1 deletion src/domains/citizen-auth-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
| <a name="input_lollipop_enabled"></a> [lollipop\_enabled](#input\_lollipop\_enabled) | Lollipop function enabled? | `bool` | `false` | no |
| <a name="input_monitor_resource_group_name"></a> [monitor\_resource\_group\_name](#input\_monitor\_resource\_group\_name) | Monitor resource group name | `string` | n/a | yes |
| <a name="input_plan_shared_1_kind"></a> [plan\_shared\_1\_kind](#input\_plan\_shared\_1\_kind) | App service plan kind | `string` | `null` | no |
| <a name="input_plan_shared_1_sku_capacity"></a> [plan\_shared\_1\_sku\_capacity](#input\_plan\_shared\_1\_sku\_capacity) | Shared functions app plan capacity | `number` | `1` | no |
| <a name="input_plan_shared_1_sku_capacity"></a> [plan\_shared\_1\_sku\_capacity](#input\_plan\_shared\_1\_sku\_capacity) | Shared functions app plan capacity | `number` | `3` | no |
| <a name="input_plan_shared_1_sku_size"></a> [plan\_shared\_1\_sku\_size](#input\_plan\_shared\_1\_sku\_size) | App service plan sku size | `string` | `null` | no |
| <a name="input_plan_shared_1_sku_tier"></a> [plan\_shared\_1\_sku\_tier](#input\_plan\_shared\_1\_sku\_tier) | App service plan sku tier | `string` | `null` | no |
| <a name="input_prefix"></a> [prefix](#input\_prefix) | n/a | `string` | n/a | yes |
Expand Down
5 changes: 5 additions & 0 deletions src/domains/citizen-auth-common/01_network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ resource "azurerm_private_endpoint" "cosmos_db" {
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]
}
}

## Redis Common subnet
Expand Down
17 changes: 7 additions & 10 deletions src/domains/citizen-auth-common/05_database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,15 @@ module "cosmosdb_account" {
enable_free_tier = false
kind = "GlobalDocumentDB"

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

main_geo_location_location = azurerm_resource_group.data_rg.location
public_network_access_enabled = false
private_endpoint_enabled = false
subnet_id = data.azurerm_subnet.private_endpoints_subnet.id
is_virtual_network_filter_enabled = false

main_geo_location_location = "italynorth"
main_geo_location_zone_redundant = true
additional_geo_locations = [{
location = "italynorth"
location = azurerm_resource_group.data_rg.location
failover_priority = 1
zone_redundant = true
}]
Expand Down

0 comments on commit 20494c5

Please sign in to comment.