From 31ad7e05038e1aefcc16026d9a3aeaaf50f12388 Mon Sep 17 00:00:00 2001 From: Patryk Gudalewicz Date: Wed, 1 Mar 2023 18:53:07 +0100 Subject: [PATCH] "Migrating from Monaco to Terraform for management zone: CD_smart-parking" --- CN_PROD/management_zone/cd_smart-parking.tf | 79 +++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 CN_PROD/management_zone/cd_smart-parking.tf diff --git a/CN_PROD/management_zone/cd_smart-parking.tf b/CN_PROD/management_zone/cd_smart-parking.tf new file mode 100644 index 00000000..f611da41 --- /dev/null +++ b/CN_PROD/management_zone/cd_smart-parking.tf @@ -0,0 +1,79 @@ +# DEFINE dynatrace_management_zone.CD_smart-parking.id = -4552635592830543182 +resource "dynatrace_management_zone" "CD_smart-parking" { + name = "CD_smart-parking" + description = "created by Michael" + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "cn-smartparking-composite-service" + } + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "omcspepayce20q3__8f76" + } + } + } + } + rules { + type = "HOST" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "HOST_TAGS" + } + tag { + # negate = false + operator = "TAG_KEY_EQUALS" + value { + context = "CONTEXTLESS" + key = "omcspepayce20q3__8f76" + } + } + } + } + rules { + type = "PROCESS_GROUP" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "PROCESS_GROUP_TAGS" + } + tag { + # negate = false + operator = "TAG_KEY_EQUALS" + value { + context = "CONTEXTLESS" + key = "omcspepayce20q3__8f76" + } + } + } + } +}