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
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ locals {
6
6
7
7
# tflint-ignore: terraform_unused_declarations
8
8
validate_log_analysis_provision=var.enable_at_event_routing_to_log_analysis&& var.log_analysis_provision==false?tobool("log_analysis_provision can't be false if enable_at_event_routing_to_log_analysis is true") :true
9
+
# tflint-ignore: terraform_unused_declarations
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
description="Set it to true to provision an IBM cloud monitoring instance"
121
+
description="Whether to create an IBM cloud monitoring instance. Set to `false` if a CRN is specified in `existing_cloud_monitoring_crn`."
122
122
type=bool
123
123
default=true
124
124
}
125
125
126
+
variable"existing_cloud_monitoring_crn" {
127
+
description="The CRN of an IBM Cloud Monitoring instance. If specified, set the `cloud_monitoring_provision` variable to `false`."
128
+
type=string
129
+
default=null
130
+
}
131
+
126
132
variable"cloud_monitoring_instance_name" {
127
133
type=string
128
134
description="The name of the IBM Cloud Monitoring instance to create. If prefix input variable is passed then it will get prefixed infront of the value in the format of '<prefix>-value'"
0 commit comments