Skip to content

Commit 154a7d4

Browse files
authored
Merge pull request #20 from getindata/fix/custom_role_logic
fix: Create custom role logic
2 parents b12633e + 3c70b20 commit 154a7d4

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
args: ["."]
1616

1717
- repo: https://github.com/bridgecrewio/checkov.git
18-
rev: "3.2.213" # Get the latest from: https://github.com/bridgecrewio/checkov/releases
18+
rev: "3.2.216" # Get the latest from: https://github.com/bridgecrewio/checkov/releases
1919
hooks:
2020
- id: checkov
2121
args: [--skip-check, "CKV_TF_1"] # Terraform module sources do not use a git url with a commit hash revision

.tflint.hcl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
config {
2-
ignore_module = {
3-
"Invicton-Labs/deepmerge/null" = true
4-
}
5-
}
6-
7-
plugin "terraform" {
8-
enabled = true
9-
version = "0.5.0"
10-
source = "github.com/terraform-linters/tflint-ruleset-terraform"
11-
preset = "all"
12-
}
13-
141
rule "terraform_standard_module_structure" {
152
enabled = false # Fails on context.tf
163
}

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module "snowflake_custom_role" {
7878

7979
name = each.key
8080
attributes = ["WHS", one(snowflake_warehouse.this[*].name)]
81-
enabled = local.create_default_roles && lookup(each.value, "enabled", true)
81+
enabled = lookup(each.value, "enabled", true)
8282
descriptor_name = lookup(each.value, "descriptor_name", "snowflake-role")
8383

8484
role_ownership_grant = lookup(each.value, "role_ownership_grant", "SYSADMIN")

0 commit comments

Comments
 (0)