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: solutions/instances/main.tf
+29-9Lines changed: 29 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
locals {
6
6
7
+
# tflint-ignore: terraform_unused_declarations
8
+
validate_existing_kms_inputs=(var.existing_cos_kms_key_crn!=null&&!var.skip_cos_kms_auth_policy) ? (var.existing_kms_instance_crn==null?tobool("The existing_kms_instance_crn is not provided and is required to configure the COS - KMS authorization policy") :true) :true
7
9
# tflint-ignore: terraform_unused_declarations
8
10
validate_existing_cloud_monitoring=var.cloud_monitoring_provision&& var.existing_cloud_monitoring_crn!=null?tobool("if cloud_monitoring_provision is set to true, then existing_cloud_monitoring_crn should be null and vice versa") :true
existing_kms_guid=((var.existing_cloud_logs_metrics_bucket_crn!=null&& var.existing_cloud_logs_data_bucket_crn!=null&& var.existing_at_cos_target_bucket_name!=null) || (!var.manage_log_archive_cos_bucket&&!var.enable_at_event_routing_to_cos_bucket&&!var.cloud_logs_provision)) ?null: 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.")
var.existing_kms_instance_crn!=null? module.kms_instance_crn_parser[0].service_instance:tobool("The CRN of the existing KMS instance is not provided."))
29
+
30
+
# get KMS service type : Key Protect (kms) or Hyper Protect Crypto Services(hs-crypto)
description="To skip creating an IAM authorization policy that allows the created Cloud Object Storage instance to read the encryption key from the key management service (KMS) instance, set this variable to `true`. Before you can create an encrypted Cloud Object Storage bucket, an authorization policy must exist."
387
+
description="To skip creating an IAM authorization policy that allows the Cloud Object Storage instance to read the encryption key from the key management service (KMS) instance, set this variable to `true`. Before you can create an encrypted Cloud Object Storage bucket, an authorization policy must exist."
description="The CRN of the key management service (KMS) that is used for the Cloud Object Storage bucketroot key. If you are not using an existing KMS root key, you must specify this CRN. If the existing Cloud Object Storage bucket details are passed as an input, this value is not required."
420
+
description="The CRN of the key management service (KMS) that is used to create keys for encrypting the Cloud Object Storage bucket. If you are not using an existing KMS root key, you must specify this CRN. If you are using an existing KMS root key, an existing COS instance and auth policy is not set for COS to KMS, you must specify this CRN. If the existing Cloud Object Storage bucket details are passed as an input, this value is not required."
0 commit comments