Skip to content

Commit 8bae00b

Browse files
Jordan-Williams2Jordan-Williams2
authored andcommitted
fix: add policy
1 parent 1365c25 commit 8bae00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ locals {
4040

4141
# Create IAM Access Policy to allow Key protect to access Elasticsearch instance
4242
resource "ibm_iam_authorization_policy" "policy" {
43-
count = local.create_kp_auth_policy
43+
count = local.create_kp_auth_policy ? 1 : 0
4444
source_service_name = "databases-for-elasticsearch"
4545
source_resource_group_id = var.resource_group_id
4646
roles = ["Reader"]

0 commit comments

Comments
 (0)