"Migrating from Monaco to Terraform for management zone: CD_Messaging-Services"
parent
be3bd4b685
commit
3d96dd4b8e
|
|
@ -0,0 +1,186 @@
|
||||||
|
# DEFINE dynatrace_management_zone.CD_Messaging-Services.id = 2559773378380524559
|
||||||
|
resource "dynatrace_management_zone" "CD_Messaging-Services" {
|
||||||
|
name = "CD_Messaging-Services"
|
||||||
|
rules {
|
||||||
|
type = "CLOUD_APPLICATION"
|
||||||
|
enabled = true
|
||||||
|
conditions {
|
||||||
|
key {
|
||||||
|
type = "STATIC"
|
||||||
|
attribute = "CLOUD_APPLICATION_NAME"
|
||||||
|
}
|
||||||
|
string {
|
||||||
|
case_sensitive = true
|
||||||
|
# negate = false
|
||||||
|
operator = "CONTAINS"
|
||||||
|
value = "MSGSVC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 = "MSGSVC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rules {
|
||||||
|
type = "CLOUD_APPLICATION"
|
||||||
|
enabled = true
|
||||||
|
conditions {
|
||||||
|
key {
|
||||||
|
type = "STATIC"
|
||||||
|
attribute = "CLOUD_APPLICATION_NAME"
|
||||||
|
}
|
||||||
|
string {
|
||||||
|
case_sensitive = true
|
||||||
|
# negate = false
|
||||||
|
operator = "CONTAINS"
|
||||||
|
value = "XCC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 = "XCC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rules {
|
||||||
|
type = "HOST"
|
||||||
|
enabled = true
|
||||||
|
conditions {
|
||||||
|
key {
|
||||||
|
type = "STATIC"
|
||||||
|
attribute = "HOST_TAGS"
|
||||||
|
}
|
||||||
|
tag {
|
||||||
|
# negate = false
|
||||||
|
operator = "EQUALS"
|
||||||
|
value {
|
||||||
|
context = "CONTEXTLESS"
|
||||||
|
key = "Component"
|
||||||
|
value = "MSGSVC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 = "MSGSVC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 = "MSGSVC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
rules {
|
||||||
|
type = "HOST"
|
||||||
|
enabled = true
|
||||||
|
conditions {
|
||||||
|
key {
|
||||||
|
type = "STATIC"
|
||||||
|
attribute = "HOST_TAGS"
|
||||||
|
}
|
||||||
|
tag {
|
||||||
|
# negate = false
|
||||||
|
operator = "EQUALS"
|
||||||
|
value {
|
||||||
|
context = "CONTEXTLESS"
|
||||||
|
key = "Component"
|
||||||
|
value = "XCC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 = "XCC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
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 = "XCC"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue