fix: make postgresql accessible
This commit is contained in:
parent
78371a2b33
commit
1cfa001dec
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue