You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/oke/locals.tf
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,12 @@ locals {
17
17
# policy to allow dynamic group of all clusters to use kms
18
18
policy_statement=(var.use_encryption==true) ?"Allow dynamic-group ${oci_identity_dynamic_group.oke_kms_cluster[0].name} to use keys in compartment id ${var.compartment_id} where target.key.id = '${var.kms_key_id}'":""
19
19
20
+
# policy to allow block volumes inside oke to use kms
21
+
oke_volume_kms_policy_statements=[
22
+
"Allow service oke to use key-delegates in compartment id ${var.compartment_id} where target.key.id = '${var.node_pool_volume_kms_key_id}'",
23
+
"Allow service blockstorage to use keys in compartment id ${var.compartment_id} where target.key.id = '${var.node_pool_volume_kms_key_id}'"
24
+
]
25
+
20
26
# 1. get a list of available images for this cluster
21
27
# 2. filter by version
22
28
# 3. if more than 1 image found for this version, pick the latest
0 commit comments