Skip to content

Commit 4f695db

Browse files
authored
fix: remove legacy validation (#164)
1 parent 6916ce8 commit 4f695db

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

main.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ locals {
2424
can(regex(".*hs-crypto.*", var.kms_key_crn)) ? "hs-crypto" : "unrecognized key type"
2525
)
2626
) : "no key crn"
27-
28-
# tflint-ignore: terraform_unused_declarations
29-
validate_skip_iam_authorization_policy = var.skip_iam_authorization_policy == false && (var.kms_key_crn == null || var.existing_kms_instance_guid == null) ? tobool("When var.skip_iam_authorization_policy is set to false, a value must be passed for var.existing_kms_instance_guid and var.kms_key_crn. Alternatively, if opting to use default encryption, set var.skip_iam_authorization_policy to true to skip creating any KMS auth policy creation.") : true
3027
}
3128

3229
# Create IAM Authorization Policies to allow MongoDB to access KMS for the encryption key

module-metadata.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@
373373
},
374374
"pos": {
375375
"filename": "main.tf",
376-
"line": 42
376+
"line": 39
377377
}
378378
},
379379
"ibm_iam_authorization_policy.kms_policy": {
@@ -390,7 +390,7 @@
390390
},
391391
"pos": {
392392
"filename": "main.tf",
393-
"line": 33
393+
"line": 30
394394
}
395395
},
396396
"ibm_resource_key.service_credentials": {
@@ -406,7 +406,7 @@
406406
},
407407
"pos": {
408408
"filename": "main.tf",
409-
"line": 158
409+
"line": 155
410410
}
411411
}
412412
},
@@ -485,7 +485,7 @@
485485
},
486486
"pos": {
487487
"filename": "main.tf",
488-
"line": 119
488+
"line": 116
489489
}
490490
}
491491
}

0 commit comments

Comments
 (0)