"Migrating from Monaco to Terraform for management zone: CD_Mobile2_and_BFFs"

CD_Mobile2_and_BFFs
Patryk Gudalewicz 2023-03-01 19:05:58 +01:00
parent 5ad7b30cd3
commit 33565673cb
1 changed files with 283 additions and 0 deletions

View File

@ -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"
}
}
}
}