From 4816897ba8362f579c26a725e279bd630d806f01 Mon Sep 17 00:00:00 2001 From: Rishi Kumar Date: Sat, 3 Aug 2024 17:08:43 +0530 Subject: [PATCH] typo: local.database instead of local.migration_database --- modules/postgresql/gcp/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/postgresql/gcp/main.tf b/modules/postgresql/gcp/main.tf index 6aae6453..59c8a503 100644 --- a/modules/postgresql/gcp/main.tf +++ b/modules/postgresql/gcp/main.tf @@ -194,7 +194,7 @@ resource "postgresql_grant" "grant_usage_pglogical_schema_public_user" { # GRANT SELECT on ALL TABLES in SCHEMA pglogical to USER on all databases to get replication information from source databases. resource "postgresql_grant" "grant_select_table_pglogical_schema_migration_user" { - for_each = local.upgradable ? toset(local.databases) : [] + for_each = local.upgradable ? toset(local.migration_databases) : [] database = each.value role = postgresql_role.migration[0].name schema = "pglogical" @@ -210,7 +210,7 @@ resource "postgresql_grant" "grant_select_table_pglogical_schema_migration_user" # GRANT SELECT on ALL TABLES in SCHEMA SCHEMA to USER on all schemas (aside from the information schema and schemas starting with "pg_") on each database to migrate. resource "postgresql_grant" "grant_select_table_public_schema_migration_user" { - for_each = local.upgradable ? toset(local.databases) : [] + for_each = local.upgradable ? toset(local.migration_databases) : [] database = each.value role = postgresql_role.migration[0].name schema = "public"