Skip to content

Commit

Permalink
Merge pull request #410 from recognizegroup/feature/PVWT-2
Browse files Browse the repository at this point in the history
PVWT-2 Zone 1 is temporary not available, so this makes it possible t…
  • Loading branch information
tom-reinders authored Apr 30, 2024
2 parents 561cce7 + a06ee69 commit b37f1b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/azure/postgresql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ resource "azurerm_postgresql_flexible_server" "postgresql_server" {
administrator_login = var.admin_username
administrator_password = random_password.postgresql_admin.result
version = var.postgresql_version
zone = "1"
zone = var.postgresql_zone
delegated_subnet_id = var.delegated_subnet_id
private_dns_zone_id = var.private_dns_zone_id

Expand Down
6 changes: 6 additions & 0 deletions modules/azure/postgresql/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ variable "postgresql_version" {
description = "Version of the PostgreSQL database."
}

variable "postgresql_zone" {
type = string
description = "Zone of the PostgreSQL database."
default = "1"
}

variable "postgresql_database_name" {
type = string
description = "Name of the PostgreSQL resource."
Expand Down

0 comments on commit b37f1b7

Please sign in to comment.