"Migrating from Monaco to Terraform for management zone: CD_SMS-Gateway"

CD_SMS-Gateway
Patryk Gudalewicz 2023-03-01 19:06:35 +01:00
parent e129c3bbc6
commit 78fb260279
1 changed files with 40 additions and 0 deletions

View File

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