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
# Complete example with topics and schema creation and BYOK encryption
1
+
# Complete example with topics and schema creation.
2
2
3
3
An end-to-end example that creates an event streams instance with key protect.
4
4
This example uses the IBM Cloud terraform provider to:
5
5
- Create a new resource group if one is not passed in.
6
6
- Create a Key Protect instance and root key in the provided region.
7
-
- Create a new event streams instance in the resource group and region provided, encrypted with the root key created above, and configured with topics and schemas.
7
+
- Create a new event streams instance in the resource group and region provided along with configured topics and schemas.
Copy file name to clipboardExpand all lines: main.tf
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
locals {
6
6
# Validation (approach based on https://github.com/hashicorp/terraform/issues/25609#issuecomment-1057614400)
7
7
# tflint-ignore: terraform_unused_declarations
8
-
validate_kms_plan=var.kms_encryption_enabled!=null&& var.plan!="enterprise-3nodes-2tb"?tobool("kms encryption is only supported for enterprise plan") :true
8
+
validate_kms_plan=var.kms_encryption_enabled&& var.plan!="enterprise-3nodes-2tb"?tobool("kms encryption is only supported for enterprise plan") :true
9
9
# tflint-ignore: terraform_unused_declarations
10
10
validate_kms_values=!var.kms_encryption_enabled&& var.kms_key_crn!=null?tobool("When passing values for var.kms_key_crn, you must set var.kms_encryption_enabled to true. Otherwise unset them to use default encryption") :true
0 commit comments