Reverting wrong configuration. Please use dedicated branches and files for corresponding management zones. Also please follow our onboarding guide. DEV branches should be sourced from template branch, not master

CD_ASBC-FZGSSLCA
Patryk Gudalewicz 2023-06-12 14:18:43 +02:00
parent b2e22ce542
commit 7d88b1d454
1 changed files with 90 additions and 15 deletions

View File

@ -1,20 +1,95 @@
# DEFINE dynatrace_management_zone.CD_mobile_login = -340771320666888764 # DEFINE dynatrace_management_zone.CD_connected-oauth-service.id = -340771320666888764
resource "dynatrace_management_zone" "CD_mobile_login" { resource "dynatrace_management_zone" "CD_connected-oauth-service" {
name = "CD_mobile_login" name = "CD_connected-oauth-service"
entity_selector_based_rule { rules {
enabled = true type = "CLOUD_APPLICATION"
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:cn-connected-oauth-service\")" enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "connected-oauth-service"
}
}
} }
entity_selector_based_rule { rules {
enabled = true type = "CLOUD_APPLICATION_NAMESPACE"
selector = "type(HOST),tag(\"compass-id:cn-connected-oauth-service\")" enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAMESPACE_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "connected-oauth-service"
}
}
} }
entity_selector_based_rule { rules {
enabled = true type = "HOST"
selector = "type(Service),tag(\"compass-id:cn-connected-oauth-service\")" enabled = true
conditions {
key {
type = "STATIC"
attribute = "HOST_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "connected-oauth-service"
}
}
}
} }
entity_selector_based_rule { rules {
enabled = true type = "PROCESS_GROUP"
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:cn-connected-oauth-service\"))" 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 = "connected-oauth-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 = "connected-oauth-service"
}
}
}
} }
} }