diff --git a/main.tf b/main.tf index dabe989..fbedbaf 100644 --- a/main.tf +++ b/main.tf @@ -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"] diff --git a/solutions/fully-configurable/variables.tf b/solutions/fully-configurable/variables.tf index 7337a55..8d1b6f5 100644 --- a/solutions/fully-configurable/variables.tf +++ b/solutions/fully-configurable/variables.tf @@ -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([