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" + } + } + } + } +}