diff --git a/iac/tf-multienv-cicd-anthos-autopilot/env-production.tf b/iac/tf-multienv-cicd-anthos-autopilot/env-production.tf index c14fe477a..da3f0adf8 100644 --- a/iac/tf-multienv-cicd-anthos-autopilot/env-production.tf +++ b/iac/tf-multienv-cicd-anthos-autopilot/env-production.tf @@ -73,9 +73,10 @@ resource "google_service_account_iam_member" "gke_workload_production_identity" ] } -# CloudSQL Postgres production instance +# CloudSQL Postgres production instance module "cloudsql_production" { - source = "GoogleCloudPlatform/sql-db/google//modules/postgresql" + source = "GoogleCloudPlatform/sql-db/google//modules/postgresql" + version = "~> 20.0.0" project_id = var.project_id region = var.region diff --git a/iac/tf-multienv-cicd-anthos-autopilot/env-staging.tf b/iac/tf-multienv-cicd-anthos-autopilot/env-staging.tf index a7993e2da..c1a5d6ed8 100644 --- a/iac/tf-multienv-cicd-anthos-autopilot/env-staging.tf +++ b/iac/tf-multienv-cicd-anthos-autopilot/env-staging.tf @@ -73,9 +73,10 @@ resource "google_service_account_iam_member" "gke_workload_staging_identity" { ] } -# CloudSQL Postgres staging instance +# CloudSQL Postgres staging instance module "cloudsql_staging" { - source = "GoogleCloudPlatform/sql-db/google//modules/postgresql" + source = "GoogleCloudPlatform/sql-db/google//modules/postgresql" + version = "~> 20.0.0" project_id = var.project_id region = var.region