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
description="Set to true to enable KMS Encryption using customer managed keys. When set to true, a value must be passed for either 'existing_kms_instance_crn', 'existing_kms_key_crn' or 'existing_backup_kms_key_crn'."
170
170
default=false
171
171
172
-
# this validation ensures key info is provided when Kms encryption is enabled and no MongoDB instance is given
173
172
validation {
174
-
condition=(
175
-
var.existing_mongodb_instance_crn!=null||
176
-
(var.kms_encryption_enabled&& (
177
-
var.existing_kms_instance_crn!=null||
178
-
var.existing_kms_key_crn!=null||
179
-
var.existing_backup_kms_key_crn!=null
180
-
))
181
-
)
182
-
error_message="When setting values for 'existing_kms_instance_crn', 'existing_kms_key_crn' or 'existing_backup_kms_key_crn', the 'kms_encryption_enabled' input must be set to true."
error_message="You must provide at least one of 'existing_kms_instance_crn', 'existing_kms_root_key_crn' or 'existing_backup_kms_key_crn' inputs if 'kms_encryption_enabled' is set to true."
error_message="If 'kms_encryption_enabled' is set to false, you should not pass values for 'existing_kms_instance_crn', 'existing_kms_root_key_crn' or 'existing_backup_kms_key_crn'. inputs"
0 commit comments