From 211550f6cc9848f1adcebc1c8438f0baa1905e44 Mon Sep 17 00:00:00 2001 From: Patryk Gudalewicz Date: Wed, 1 Mar 2023 19:12:59 +0100 Subject: [PATCH] "Migrating from Monaco to Terraform for management zone: CD_SMS-Gateway" --- NA_PROD/management_zone/cd_sms-gateway.tf | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 NA_PROD/management_zone/cd_sms-gateway.tf diff --git a/NA_PROD/management_zone/cd_sms-gateway.tf b/NA_PROD/management_zone/cd_sms-gateway.tf new file mode 100644 index 00000000..a8d7c6c9 --- /dev/null +++ b/NA_PROD/management_zone/cd_sms-gateway.tf @@ -0,0 +1,40 @@ +# DEFINE dynatrace_management_zone.CD_SMS-Gateway.id = 1412312951147139652 +resource "dynatrace_management_zone" "CD_SMS-Gateway" { + name = "CD_SMS-Gateway" + rules { + type = "HTTP_MONITOR" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "HTTP_MONITOR_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "BEGINS_WITH" + value = "SMS GW" + } + } + } + rules { + type = "PROCESS_GROUP" + enabled = true + propagation_types = [ "PROCESS_GROUP_TO_HOST", "PROCESS_GROUP_TO_SERVICE" ] + conditions { + key { + type = "STATIC" + attribute = "PROCESS_GROUP_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "SMS-Gateway" + } + } + } + } +}