Skip to content

Commit

Permalink
configure pg ha
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Jan 5, 2024
1 parent 9c8bc57 commit 26feb19
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions terraform/clouds/azure/postgres.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ resource "azurerm_postgresql_flexible_server" "postgres" {

storage_mb = var.postgres_disk
sku_name = var.postgres_sku

high_availability {
mode = "ZoneRedundant"
}

lifecycle {
ignore_changes = [ zone ]
}
}

resource "azurerm_postgresql_flexible_server_database" "example" {
Expand Down

0 comments on commit 26feb19

Please sign in to comment.