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
existing_kms_guid=var.existing_kms_instance_crn!=null?element(split(":", var.existing_kms_instance_crn), length(split(":", var.existing_kms_instance_crn)) -3) :tobool("The CRN of the existing KMS is not provided.")
description="Allow the COS instance with GUID ${local.cos_instance_guid} to read from the ${local.kms_service_name} instance GUID ${local.existing_kms_guid}"
55
+
}
56
+
57
+
# Create IAM Authorization Policy to allow EN to access KMS for the encryption key
description="Allow the EN instance with GUID ${module.event_notifications[0].guid} reader access to the ${local.kms_service_name} instance GUID ${local.existing_kms_guid}"
description="The CRN of the Hyper Protect Crypto Services or Key Protect instance."
101
+
description="The CRN of the KMS instance (Hyper Protect Crypto Services or Key Protect instance). If the KMS instance is in different account you must also provide a value for `ibmcloud_kms_api_key`."
102
102
}
103
103
104
104
variable"existing_kms_root_key_crn" {
@@ -148,10 +148,17 @@ variable "cos_key_name" {
148
148
149
149
variable"skip_en_kms_auth_policy" {
150
150
type=bool
151
-
description="Whether an IAM authorization policy is created that permits all Event Notifications instances in the resource group to read the encryption key from the KMS instance. Set to `true` to use an existing policy."
151
+
description="Set to true to skip the creation of an IAM authorization policy that permits the Event Notification instance to read the encryption key from the KMS instance. If set to false, pass in a value for the KMS instance in the `existing_kms_instance_crn` variable. If a value is specified for `ibmcloud_kms_api_key`, the policy is created in the KMS account."
152
152
default=false
153
153
}
154
154
155
+
variable"ibmcloud_kms_api_key" {
156
+
type=string
157
+
description="The IBM Cloud API key that can create a root key and key ring in the key management service (KMS) instance. If not specified, the 'ibmcloud_api_key' variable is used. Specify this key if the instance in `existing_kms_instance_crn` is in an account that's different from the Event Notifications instance. Leave this input empty if the same account owns both instances."
description="Whether an IAM authorization policy is created for your Cloud Object Storage instance to read the encryption key from the KMS instance. Set to `true` to use an existing policy."
194
+
description="Set to true to skip the creation of an IAM authorization policy that permits the COS instance to read the encryption key from the KMS instance. If set to false, pass in a value for the KMS instance in the `existing_kms_instance_crn` variable. If a value is specified for `ibmcloud_kms_api_key`, the policy is created in the KMS account."
0 commit comments