Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
saliceti committed Aug 13, 2024
1 parent 19dd963 commit c236069
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions aks/postgres/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,18 @@ locals {
resource "azurerm_postgresql_flexible_server" "main" {
count = var.use_azure ? 1 : 0

name = local.azure_name
location = data.azurerm_resource_group.main[0].location
resource_group_name = data.azurerm_resource_group.main[0].name
version = var.server_version
administrator_login = local.database_username
administrator_password = local.database_password
create_mode = "Default"
storage_mb = var.azure_storage_mb
sku_name = var.azure_sku_name
delegated_subnet_id = data.azurerm_subnet.main[0].id
private_dns_zone_id = data.azurerm_private_dns_zone.main[0].id
name = local.azure_name
location = data.azurerm_resource_group.main[0].location
resource_group_name = data.azurerm_resource_group.main[0].name
version = var.server_version
administrator_login = local.database_username
administrator_password = local.database_password
create_mode = "Default"
storage_mb = var.azure_storage_mb
sku_name = var.azure_sku_name
delegated_subnet_id = data.azurerm_subnet.main[0].id
private_dns_zone_id = data.azurerm_private_dns_zone.main[0].id
public_network_access_enabled = false

dynamic "high_availability" {
for_each = var.azure_enable_high_availability ? [1] : []
Expand Down

0 comments on commit c236069

Please sign in to comment.