Pull request #336: Migration pull request for: CD_open-destination-composite-service

Merge in OPAPM/coco_apm_terraform_onboarding from CD_open-destination-composite-service to master

* commit '666392acc0fd19140608bbc0f972ff4e60981a38':
  "Migrating from Monaco to Terraform for management zone: CD_open-destination-composite-service"
CD_TS-CMS
PATRYK GUDALEWICZ (ext.) 2023-03-01 20:33:27 +00:00
commit a1237fb506
1 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,96 @@
# DEFINE dynatrace_management_zone.CD_open-destination-composite-service.id = 319365288692735379
resource "dynatrace_management_zone" "CD_open-destination-composite-service" {
name = "CD_open-destination-composite-service"
description = "open destination composite service management zone"
rules {
type = "CLOUD_APPLICATION"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "open-destination-composite-service"
}
}
}
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 = "open-destination-composite-service"
}
}
}
rules {
type = "HOST"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "HOST_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "open-destination-composite-service"
}
}
}
}
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 = "open-destination-composite-service"
}
}
}
}
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 = "open-destination-composite-service"
}
}
}
}
}