From e003c7d6fb2e7f749794d7f051c0c08f9721a284 Mon Sep 17 00:00:00 2001 From: Doris Ruppert Date: Mon, 17 Apr 2023 15:28:02 +0200 Subject: [PATCH] OPMAAS-3790 fixed tagging for service instead of process group --- .../PD_management_zone/PD_ConnectedUserProfileServices.tf | 2 +- CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf | 2 +- .../PD_management_zone/PD_ConnectedUserProfileServices.tf | 2 +- EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf | 2 +- .../PD_management_zone/PD_ConnectedUserProfileServices.tf | 2 +- NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index 39d7d46..2bc554c 100644 --- a/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -25,7 +25,7 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { // for wrongly tagged services we still keep: entity_selector_based_rule { enabled = true - selector = "type(PROCESS_GROUP),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" + selector = "type(Service),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" } // others that don't exist in compass, should be removed entity_selector_based_rule { diff --git a/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index 39d7d46..2bc554c 100644 --- a/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -25,7 +25,7 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { // for wrongly tagged services we still keep: entity_selector_based_rule { enabled = true - selector = "type(PROCESS_GROUP),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" + selector = "type(Service),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" } // others that don't exist in compass, should be removed entity_selector_based_rule { diff --git a/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index 39d7d46..2bc554c 100644 --- a/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -25,7 +25,7 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { // for wrongly tagged services we still keep: entity_selector_based_rule { enabled = true - selector = "type(PROCESS_GROUP),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" + selector = "type(Service),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" } // others that don't exist in compass, should be removed entity_selector_based_rule { diff --git a/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index 39d7d46..2bc554c 100644 --- a/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -25,7 +25,7 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { // for wrongly tagged services we still keep: entity_selector_based_rule { enabled = true - selector = "type(PROCESS_GROUP),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" + selector = "type(Service),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" } // others that don't exist in compass, should be removed entity_selector_based_rule { diff --git a/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index 39d7d46..2bc554c 100644 --- a/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -25,7 +25,7 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { // for wrongly tagged services we still keep: entity_selector_based_rule { enabled = true - selector = "type(PROCESS_GROUP),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" + selector = "type(Service),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" } // others that don't exist in compass, should be removed entity_selector_based_rule { diff --git a/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf index 39d7d46..2bc554c 100644 --- a/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf +++ b/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -25,7 +25,7 @@ resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { // for wrongly tagged services we still keep: entity_selector_based_rule { enabled = true - selector = "type(PROCESS_GROUP),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" + selector = "type(Service),tag(\"compass-id:am-cns\", \"compass-id:am-proxy\", \"compass-id:AM-PROXY\", \"compass-id:am-svms\", \"compass-id:am-vms\", \"compass-id:ums-ui\", \"compass-id:eCSM\", \"compass-id:ECSM\")" } // others that don't exist in compass, should be removed entity_selector_based_rule {