From cd5f182513f20f3b0dbb453cab34569259386882 Mon Sep 17 00:00:00 2001 From: Rishi Kumar Date: Thu, 22 Aug 2024 14:46:10 +0530 Subject: [PATCH] feat: Exclude destination suffix name by a flag --- modules/postgresql/gcp/main.tf | 1 + 1 file changed, 1 insertion(+) 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 }