Skip to content

Commit

Permalink
Merge pull request #248 from hashicorp/TF-15190/special-character-sup…
Browse files Browse the repository at this point in the history
…port

Enhancing the database special character allow list
  • Loading branch information
jkerry authored Jun 4, 2024
2 parents 32addd0 + 443b6f8 commit 7689ff9
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions modules/database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@
resource "random_string" "tfe_pg_password" {
length = 24
special = true
override_special = "?!%&*"
override_special = "!#$%&*()-_=+[]{}<>?"
}

resource "azurerm_postgresql_flexible_server" "tfe" {
location = var.location
name = "${var.friendly_name_prefix}-pg"
resource_group_name = var.resource_group_name

administrator_login = var.database_user
administrator_password = random_string.tfe_pg_password.result
backup_retention_days = var.database_backup_retention_days
delegated_subnet_id = var.database_subnet_id
private_dns_zone_id = var.database_private_dns_zone_id
sku_name = var.database_machine_type
storage_mb = var.database_size_mb
tags = var.tags
version = var.database_version
zone = var.database_availability_zone
administrator_login = var.database_user
administrator_password = random_string.tfe_pg_password.result
public_network_access_enabled = false
backup_retention_days = var.database_backup_retention_days
delegated_subnet_id = var.database_subnet_id
private_dns_zone_id = var.database_private_dns_zone_id
sku_name = var.database_machine_type
storage_mb = var.database_size_mb
tags = var.tags
version = var.database_version
zone = var.database_availability_zone
}

resource "azurerm_postgresql_flexible_server_configuration" "tfe" {
Expand Down

0 comments on commit 7689ff9

Please sign in to comment.