diff --git a/EMEA_PROD/management_zone/cd_sms-gateway.tf b/EMEA_PROD/management_zone/cd_sms-gateway.tf new file mode 100644 index 00000000..98e728f1 --- /dev/null +++ b/EMEA_PROD/management_zone/cd_sms-gateway.tf @@ -0,0 +1,40 @@ +# DEFINE dynatrace_management_zone.CD_SMS-Gateway.id = -2133422980246552080 +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 = "SERVICE" + enabled = true + propagation_types = [ "SERVICE_TO_HOST_LIKE", "SERVICE_TO_PROCESS_GROUP_LIKE" ] + conditions { + key { + type = "STATIC" + attribute = "SERVICE_TAGS" + } + tag { + # negate = false + operator = "EQUALS" + value { + context = "CONTEXTLESS" + key = "Component" + value = "SMS-Gateway" + } + } + } + } +}