diff --git a/modules/postgresql/gcp/main.tf b/modules/postgresql/gcp/main.tf index 5d45778b..35b8bc60 100644 --- a/modules/postgresql/gcp/main.tf +++ b/modules/postgresql/gcp/main.tf @@ -8,6 +8,7 @@ resource "random_id" "db_name_suffix" { } resource "random_id" "db_name_suffix_destination" { + count = local.prep_upgrade_as_source_db ? 1 : 0 byte_length = 4 }