From e7a51d1a51bc32b51032b016d568907fef69d6be Mon Sep 17 00:00:00 2001 From: HendrikSchrieber <88648588+HendrikSchrieber@users.noreply.github.com> Date: Thu, 31 Jul 2025 12:23:27 +0200 Subject: [PATCH 1/2] fix: update validation for cloud_monitoring_instance_crn variable (#290) --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 2ed735b..839ff92 100644 --- a/variables.tf +++ b/variables.tf @@ -74,7 +74,7 @@ variable "cloud_monitoring_instance_crn" { validation { condition = anytrue([ - can(regex("^crn:(.*:){3}sysdig-secure:${var.region}(.*:){1}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$", var.cloud_monitoring_instance_crn)), + can(regex("^crn:(.*:){3}sysdig-monitor:${var.region}(.*:){1}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$", var.cloud_monitoring_instance_crn)), var.cloud_monitoring_instance_crn == null, ]) error_message = "The provided Monitoring instance CRN in the input 'cloud_monitoring_instance_crn' in not valid. Please also ensure it is in the same region specified the 'region' input." From 353014340c726518d49802549f9e10322f19886b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Conall=20=C3=93=20Cofaigh?= Date: Thu, 31 Jul 2025 12:20:39 +0100 Subject: [PATCH 2/2] Update variables.tf --- solutions/fully-configurable/variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/fully-configurable/variables.tf b/solutions/fully-configurable/variables.tf index cbe186c..a933c20 100644 --- a/solutions/fully-configurable/variables.tf +++ b/solutions/fully-configurable/variables.tf @@ -22,7 +22,7 @@ variable "existing_monitoring_crn" { validation { condition = anytrue([ - can(regex("^crn:(.*:){3}sysdig-secure:${var.region}(.*:){1}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$", var.existing_monitoring_crn)), + can(regex("^crn:(.*:){3}sysdig-monitor:${var.region}(.*:){1}[0-9a-fA-F]{8}(?:-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}::$", var.existing_monitoring_crn)), var.existing_monitoring_crn == null, ]) error_message = "The provided Monitoring instance CRN in the input 'existing_monitoring_crn' in not valid. Please also ensure it is in the same region specified the 'region' input."