Pull request #525: CD mobile login
Merge in OPAPM/coco_apm_terraform_onboarding from CD_mobile-login to master * commit 'b4bb10ae975c00bc5a2e55b7607e5e8fff2ba2dd': cd_connected-oauth-service.tf edited online with Bitbucket cd_connected-oauth-service.tf edited online with BitbucketCD_ASBC-FZGSSLCA
commit
c8f9f00a7a
|
|
@ -1,95 +1,20 @@
|
|||
# DEFINE dynatrace_management_zone.CD_connected-oauth-service.id = -340771320666888764
|
||||
resource "dynatrace_management_zone" "CD_connected-oauth-service" {
|
||||
name = "CD_connected-oauth-service"
|
||||
rules {
|
||||
type = "CLOUD_APPLICATION"
|
||||
enabled = true
|
||||
conditions {
|
||||
key {
|
||||
type = "STATIC"
|
||||
attribute = "CLOUD_APPLICATION_NAME"
|
||||
}
|
||||
string {
|
||||
case_sensitive = true
|
||||
# negate = false
|
||||
operator = "CONTAINS"
|
||||
value = "connected-oauth-service"
|
||||
}
|
||||
}
|
||||
# DEFINE dynatrace_management_zone.CD_mobile_login = -340771320666888764
|
||||
resource "dynatrace_management_zone" "CD_mobile_login" {
|
||||
name = "CD_mobile_login"
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:cn-connected-oauth-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 = "connected-oauth-service"
|
||||
}
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(HOST),tag(\"compass-id:cn-connected-oauth-service\")"
|
||||
}
|
||||
rules {
|
||||
type = "HOST"
|
||||
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 {
|
||||
enabled = true
|
||||
selector = "type(Service),tag(\"compass-id:cn-connected-oauth-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 = "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"
|
||||
}
|
||||
}
|
||||
}
|
||||
entity_selector_based_rule {
|
||||
enabled = true
|
||||
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:cn-connected-oauth-service\"))"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue