Skip to content

Commit

Permalink
fix: add missing uppercase logic (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgniewek authored Feb 18, 2025
1 parent 3efcf6f commit 261deca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ data "context_label" "this" {


resource "snowflake_shared_database" "this" {
name = data.context_label.this.rendered
name = var.name_scheme.uppercase ? upper(data.context_label.this.rendered) : data.context_label.this.rendered
from_share = var.from_share
comment = var.comment

Expand Down Expand Up @@ -48,7 +48,7 @@ module "snowflake_default_role" {
name = each.key
name_scheme = merge(
local.default_role_naming_scheme,
lookup(each.value, "name_scheme", {})
{ for k, v in lookup(each.value, "name_scheme", {}) : k => v if v != null }
)
comment = lookup(each.value, "comment", null)

Expand All @@ -74,7 +74,7 @@ module "snowflake_custom_role" {
name = each.key
name_scheme = merge(
local.default_role_naming_scheme,
lookup(each.value, "name_scheme", {})
{ for k, v in lookup(each.value, "name_scheme", {}) : k => v if v != null }
)
comment = lookup(each.value, "comment", null)

Expand Down

0 comments on commit 261deca

Please sign in to comment.