diff --git a/EMEA_PROD/management_zone/cd_mobile2_and_bffs.tf b/EMEA_PROD/management_zone/cd_mobile2_and_bffs.tf new file mode 100644 index 00000000..cec6ff8d --- /dev/null +++ b/EMEA_PROD/management_zone/cd_mobile2_and_bffs.tf @@ -0,0 +1,283 @@ +# DEFINE dynatrace_management_zone.CD_Mobile2_and_BFFs.id = 1955885627748260414 +resource "dynatrace_management_zone" "CD_Mobile2_and_BFFs" { + name = "CD_Mobile2_and_BFFs" + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "PROD" + } + } + conditions { + process_metadata { + attribute = "PROCESS_GROUP_PREDEFINED_METADATA" + dynamic_key = "KUBERNETES_NAMESPACE" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "composite" + } + } + conditions { + key { + type = "STATIC" + attribute = "SERVICE_TYPE" + } + service_type { + # negate = false + operator = "EQUALS" + value = "WEB_REQUEST_SERVICE" + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "PROD" + } + } + conditions { + process_metadata { + attribute = "PROCESS_GROUP_PREDEFINED_METADATA" + dynamic_key = "KUBERNETES_NAMESPACE" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "managed-app-connected-oauth-service-apim" + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "PROD" + } + } + conditions { + process_metadata { + attribute = "PROCESS_GROUP_PREDEFINED_METADATA" + dynamic_key = "KUBERNETES_NAMESPACE" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "managed-app-destination-composite-service" + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "PROD" + } + } + conditions { + process_metadata { + attribute = "PROCESS_GROUP_PREDEFINED_METADATA" + dynamic_key = "KUBERNETES_NAMESPACE" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "managed-app-remote-360-composite-service" + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "PROD" + } + } + conditions { + process_metadata { + attribute = "PROCESS_GROUP_PREDEFINED_METADATA" + dynamic_key = "KUBERNETES_NAMESPACE" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "managed-app-user-composite-service" + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "PROD" + } + } + conditions { + process_metadata { + attribute = "PROCESS_GROUP_PREDEFINED_METADATA" + dynamic_key = "KUBERNETES_NAMESPACE" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "managed-app-vehicle-mapping-composite-service" + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "PROD" + } + } + conditions { + process_metadata { + attribute = "PROCESS_GROUP_PREDEFINED_METADATA" + dynamic_key = "KUBERNETES_NAMESPACE" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "managed-app-vehicle-remote-commands-composite-service" + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "PROD" + } + } + conditions { + process_metadata { + attribute = "PROCESS_GROUP_PREDEFINED_METADATA" + dynamic_key = "KUBERNETES_NAMESPACE" + } + string { + case_sensitive = true + # negate = false + operator = "EQUALS" + value = "managed-app-digital-key-composite-service" + } + } + } + rules { + type = "SERVICE" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "PROD" + } + } + conditions { + process_metadata { + attribute = "PROCESS_GROUP_PREDEFINED_METADATA" + dynamic_key = "KUBERNETES_NAMESPACE" + } + string { + case_sensitive = true + # negate = false + operator = "EQUALS" + value = "managed-app-remote-software-upgrade" + } + } + } + rules { + type = "MOBILE_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "MOBILE_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "Store" + } + } + } +}