Skip to content

Commit

Permalink
chore: allow access from azure service
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjoeoui committed Apr 29, 2024
1 parent 2adda5b commit b24ab0a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ resource "azurerm_postgresql_flexible_server" "flojoy-cloud-postgres-server" {
}
}

resource "azurerm_postgresql_flexible_server_firewall_rule" "flojoy-cloud-postgres-flexible-server-fw-rule" {
name = "flojoy-cloud-postgres-flexible-server-fw-rule"
server_id = azurerm_postgresql_flexible_server.flojoy-cloud-postgres-server.id

# allow-access-from-azure-services
start_ip_address = "0.0.0.0"
end_ip_address = "0.0.0.0"
}

resource "azurerm_postgresql_flexible_server_configuration" "flojoy-cloud-postgres-server-config" {
name = "azure.extensions"
server_id = azurerm_postgresql_flexible_server.flojoy-cloud-postgres-server.id
Expand Down

0 comments on commit b24ab0a

Please sign in to comment.