diff --git a/terraform/main.tf b/terraform/main.tf index 803d91d..f033eef 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -25,10 +25,17 @@ resource "azurerm_postgresql_server" "main" { version = "11" storage_mb = 5120 - public_network_access_enabled = true + public_network_access_enabled = false ssl_enforcement_enabled = true ssl_minimal_tls_version_enforced = "TLS1_2" } +resource "azurerm_postgresql_firewall_rule" "main" { + name = "azure-internal" + resource_group_name = azurerm_resource_group.main.name + server_name = azurerm_postgresql_server.main.name + start_ip_address = "0.0.0.0" + end_ip_address = "0.0.0.0" +} ## # Container Registry