From d712506b33056f76d04d459e4f92ef89212e320e Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Fri, 22 Nov 2024 13:32:29 +0100 Subject: [PATCH] fix azure --- terraform/clouds/azure/postgres.tf | 1 + terraform/clouds/azure/variables.tf | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/terraform/clouds/azure/postgres.tf b/terraform/clouds/azure/postgres.tf index 65f66cb..1f1c47b 100644 --- a/terraform/clouds/azure/postgres.tf +++ b/terraform/clouds/azure/postgres.tf @@ -32,6 +32,7 @@ resource "azurerm_postgresql_flexible_server" "postgres" { private_dns_zone_id = azurerm_private_dns_zone.postgres[0].id administrator_login = "console" administrator_password = random_password.password.result + public_network_access_enabled = false storage_mb = var.postgres_disk sku_name = var.postgres_sku diff --git a/terraform/clouds/azure/variables.tf b/terraform/clouds/azure/variables.tf index 8936b42..518dfb3 100644 --- a/terraform/clouds/azure/variables.tf +++ b/terraform/clouds/azure/variables.tf @@ -69,7 +69,7 @@ variable "db_sku" { variable "workload_identity_enabled" { type = bool - default = false + default = true } variable "postgres_dns_zone" {