"Migrating from Monaco to Terraform for management zone: CD_sfa-ts"

CD_sfa-ts
Patryk Gudalewicz 2023-03-01 18:53:05 +01:00
parent 7e95ef2c16
commit b0d38cf39d
1 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,95 @@
# DEFINE dynatrace_management_zone.CD_sfa-ts.id = -6915819416565368517
resource "dynatrace_management_zone" "CD_sfa-ts" {
name = "CD_sfa-ts"
rules {
type = "CLOUD_APPLICATION"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "sfa-ts"
}
}
}
rules {
type = "CLOUD_APPLICATION_NAMESPACE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "sfa-ts"
}
}
}
rules {
type = "HOST"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "HOST_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "sfa-ts"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = [ "PROCESS_GROUP_TO_HOST" ]
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "sfa-ts"
}
}
}
}
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 = "sfa-ts"
}
}
}
}
}