Skip to content

Commit 615e6c2

Browse files
committed
fixed issue #112
Signed-off-by: Ali Mukadam <[email protected]>
1 parent 6d97983 commit 615e6c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/policies/locals.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,5 @@ locals {
77

88
dynamic_group_rule_this_cluster = (var.oke_kms.use_encryption == true) ? "ALL {resource.type = 'cluster', resource.id = '${var.cluster_id}'}" : null
99

10-
policy_statement = (var.oke_kms.use_encryption == true) ? "Allow dynamic-group ${oci_identity_dynamic_group.oke-kms-cluster[0].name} to use keys in compartment ${var.oci_identity.compartment_name} where target.key.id = '${var.oke_kms.key_id}'" : ""
11-
10+
policy_statement = (var.oke_kms.use_encryption == true) ? "Allow dynamic-group ${oci_identity_dynamic_group.oke-kms-cluster[0].name} to use keys in compartment id ${data.oci_identity_compartments.compartments_id.compartments.0.id} where target.key.id = '${var.oke_kms.key_id}'" : ""
1211
}

0 commit comments

Comments
 (0)