File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ resource "google_sql_database_instance" "tamr" {
1010 project = var. project_id
1111 region = var. region
1212 # NOTE: this is pinned as its the version that tamr needs
13- database_version = " POSTGRES_12 "
13+ database_version = var . postgres_version
1414
1515 deletion_protection = var. deletion_protection
1616
Original file line number Diff line number Diff line change @@ -118,3 +118,9 @@ variable "ssl_mode" {
118118 description = " Set up the SSL mode. If SSL is required, this value is TRUSTED_CLIENT_CERTIFICATE_REQUIRED."
119119 default = " ALLOW_UNENCRYPTED_AND_ENCRYPTED"
120120}
121+
122+ variable "postgres_version" {
123+ type = string
124+ description = " Version of Postgres to install on the CloudSQL instance"
125+ default = " POSTGRES_12"
126+ }
You can’t perform that action at this time.
0 commit comments