fix: make postgresql accessible

This commit is contained in:
Tine 2024-03-08 12:20:20 +01:00
parent 78371a2b33
commit 1cfa001dec
Signed by: mentos1386
SSH key fingerprint: SHA256:MNtTsLbihYaWF8j1fkOHfkKNlnN1JQfxEU/rBU8nCGw

View file

@ -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