From 2be8d974d5ac176c838d8ca6646111f5c9664d3d Mon Sep 17 00:00:00 2001 From: Piotr Sierkin Date: Tue, 11 Jul 2023 11:57:45 +0200 Subject: [PATCH] chore: demo without on_future --- locals.tf | 3 +-- variables.tf | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/locals.tf b/locals.tf index d06f859..0d9582a 100644 --- a/locals.tf +++ b/locals.tf @@ -45,11 +45,10 @@ locals { }]...) view_grants = merge([for view_grant in var.view_grants : { - for privilege in view_grant.privileges : "${view_grant.database_name}/${view_grant.schema_name}/${coalesce(view_grant.view_name, "on_future")}/${privilege}" => { + for privilege in view_grant.privileges : "${view_grant.database_name}/${view_grant.schema_name}/${view_grant.view_name}/${privilege}" => { database_name = view_grant.database_name schema_name = view_grant.schema_name view_name = view_grant.view_name - on_future = view_grant.on_future privilege = privilege } }]...) diff --git a/variables.tf b/variables.tf index e20724b..4354a5f 100644 --- a/variables.tf +++ b/variables.tf @@ -83,7 +83,6 @@ variable "view_grants" { database_name = string schema_name = string view_name = optional(string) - on_future = optional(bool) privileges = list(string) })) default = []