Skip to content

Commit

Permalink
feat(postgresql): add root password parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
the-veloper committed Oct 5, 2023
1 parent b193e1c commit 043985f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/postgresql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ resource "google_sql_database_instance" "default" {
region = var.region
encryption_key_name = var.encryption_key_name
deletion_protection = var.deletion_protection
root_password = var.root_password

settings {
tier = var.tier
Expand Down
5 changes: 5 additions & 0 deletions modules/postgresql/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,8 @@ variable "connector_enforcement" {
type = bool
default = false
}

variable "root_password" {
description = "Initial root password during creation"
default = null
}

0 comments on commit 043985f

Please sign in to comment.