Skip to content

Commit

Permalink
fix: deploy postgres on NE (#153)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado Ferrero <[email protected]>
  • Loading branch information
JorTurFer authored Jun 10, 2024
1 parent 3eaa25e commit 5729003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/modules/azure/postgres-flex-server/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "random_string" "admin_username" {
resource "azurerm_postgresql_flexible_server" "postgres_flex_server" {
name = local.postgres_server_name
resource_group_name = data.azurerm_resource_group.rg.name
location = data.azurerm_resource_group.rg.location
location = "northeurope" # We cannot provision postgres on WestEurope
administrator_login = random_string.admin_username.result
administrator_password = random_password.admin_password.result
authentication {
Expand Down Expand Up @@ -65,4 +65,4 @@ resource "azurerm_postgresql_flexible_server_firewall_rule" "postgres_flex_serve
resource "azurerm_postgresql_flexible_server_database" "postgres_flex_server_db" {
name = var.postgres_database_name
server_id = azurerm_postgresql_flexible_server.postgres_flex_server.id
}
}

0 comments on commit 5729003

Please sign in to comment.