Pull request #536: CD ASBC FZGSSLCA

Merge in OPAPM/coco_apm_terraform_onboarding from CD_ASBC-FZGSSLCA to master

* commit 'b2e22ce542b541e51591e37c0f5a53aab9f3f4dc':
  OPMAAS-4349 - changed the compass-id ASBC-FzgSecCA to ASBC-FzgSSLCA in management zone config files
  cd_connected-oauth-service.tf edited online with Bitbucket
  cd_connected-oauth-service.tf edited online with Bitbucket
pull-requests/540/from
Serkan Oezkan (ext.) 2023-06-09 11:07:13 +00:00 committed by Murat Yelgin (ext.)
commit ec475793c4
7 changed files with 39 additions and 114 deletions

View File

@ -2,18 +2,18 @@ resource "dynatrace_management_zone" "CD_ASBC-FZGSSLCA" {
name = "CD_ASBC-FZGSSLCA" name = "CD_ASBC-FZGSSLCA"
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(HOST),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(HOST),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(Service),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSecCA\"))" selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSSLCA\"))"
} }
} }

View File

@ -2,18 +2,18 @@ resource "dynatrace_management_zone" "CD_ASBC-FZGSSLCA" {
name = "CD_ASBC-FZGSSLCA" name = "CD_ASBC-FZGSSLCA"
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(HOST),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(HOST),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(Service),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSecCA\"))" selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSSLCA\"))"
} }
} }

View File

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

View File

@ -2,18 +2,18 @@ resource "dynatrace_management_zone" "CD_ASBC-FZGSSLCA" {
name = "CD_ASBC-FZGSSLCA" name = "CD_ASBC-FZGSSLCA"
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(HOST),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(HOST),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(Service),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSecCA\"))" selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSSLCA\"))"
} }
} }

View File

@ -2,18 +2,18 @@ resource "dynatrace_management_zone" "CD_ASBC-FZGSSLCA" {
name = "CD_ASBC-FZGSSLCA" name = "CD_ASBC-FZGSSLCA"
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(HOST),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(HOST),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(Service),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSecCA\"))" selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSSLCA\"))"
} }
} }

View File

@ -2,18 +2,18 @@ resource "dynatrace_management_zone" "CD_ASBC-FZGSSLCA" {
name = "CD_ASBC-FZGSSLCA" name = "CD_ASBC-FZGSSLCA"
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(HOST),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(HOST),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(Service),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSecCA\"))" selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSSLCA\"))"
} }
} }

View File

@ -2,18 +2,18 @@ resource "dynatrace_management_zone" "CD_ASBC-FZGSSLCA" {
name = "CD_ASBC-FZGSSLCA" name = "CD_ASBC-FZGSSLCA"
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(PROCESS_GROUP_INSTANCE),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(HOST),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(HOST),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(Service),tag(\"compass-id:ASBC-FzgSecCA\")" selector = "type(Service),tag(\"compass-id:ASBC-FzgSSLCA\")"
} }
entity_selector_based_rule { entity_selector_based_rule {
enabled = true enabled = true
selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSecCA\"))" selector = "type(SERVICE),databaseName.exists(),toRelationship.calls(type(SERVICE),tag(\"compass-id:ASBC-FzgSSLCA\"))"
} }
} }