Skip to content
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ resource "ibm_resource_instance" "scc_wp" {
parameters = {
cloud_monitoring_connected_instance = var.cloud_monitoring_instance_crn
}
# lifecycle ignores cloud_monitoring_conmected_instance as it can't change after scc-workload-protection instance connects.
lifecycle {
ignore_changes = [
parameters["cloud_monitoring_connected_instance"]
Expand Down
2 changes: 1 addition & 1 deletion solutions/fully-configurable/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ variable "existing_monitoring_crn" {
type = string
nullable = true
default = null
description = "To collect and analyze metrics and security data on hosts using both Monitoring and Workload Protection, pass the CRN of an existing IBM Cloud Monitoring instance to create the connection. Once the connection is created, the Monitoring instance CRN cannot be changed. Learn more](https://www.ibm.com/products/cloud-monitoring)"
description = "To collect and analyze metrics and security data on hosts using both Monitoring and Workload Protection, pass the CRN of an existing IBM Cloud Monitoring instance to create the connection. Once the connection is created, the Monitoring instance CRN cannot be changed."

validation {
condition = anytrue([
Expand Down