Skip to content

Commit

Permalink
chore: demo without on_future
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrSierkin-Ki committed Jul 11, 2023
1 parent b226ed4 commit 2be8d97
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}]...)
Expand Down
1 change: 0 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 2be8d97

Please sign in to comment.