Merge pull request #131 in OPAPM/coco_apm_terraform_onboarding from CD_RemoteCamera to master

* commit 'a6faafedd926bdc5dbd264964497fe8d27b04dee':
  "Migrating from Monaco to Terraform for management zone: CD_RemoteCamera"
  "Migrating from Monaco to Terraform for management zone: CD_RemoteCamera"
  "Migrating from Monaco to Terraform for management zone: CD_RemoteCamera"
CD_TS-CMS
PATRYK GUDALEWICZ (ext.) 2023-03-01 19:46:24 +00:00
commit db634caf77
3 changed files with 285 additions and 0 deletions

View File

@ -0,0 +1,93 @@
# DEFINE dynatrace_management_zone.CD_RemoteCamera.id = -7728091090933913347
resource "dynatrace_management_zone" "CD_RemoteCamera" {
name = "CD_RemoteCamera"
rules {
type = "CLOUD_APPLICATION"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "KUBERNETES_CLUSTER_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "Remote 360"
}
}
}
rules {
type = "CLOUD_APPLICATION_NAMESPACE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "KUBERNETES_CLUSTER_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "Remote 360"
}
}
}
rules {
type = "SERVICE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "HOST_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Remote 360"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Remote 360"
}
}
}
}
rules {
type = "SERVICE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "SERVICE_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Remote 360"
}
}
}
}
}

View File

@ -0,0 +1,96 @@
# DEFINE dynatrace_management_zone.CD_RemoteCamera.id = -3104826150694516428
resource "dynatrace_management_zone" "CD_RemoteCamera" {
name = "CD_RemoteCamera"
rules {
type = "CLOUD_APPLICATION"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "Remote 360"
}
}
}
rules {
type = "CLOUD_APPLICATION_NAMESPACE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "KUBERNETES_CLUSTER_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "Remote 360"
}
}
}
rules {
type = "HOST"
enabled = true
propagation_types = [ "HOST_TO_PROCESS_GROUP_INSTANCE" ]
conditions {
key {
type = "STATIC"
attribute = "HOST_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Remote 360"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = [ "PROCESS_GROUP_TO_HOST", "PROCESS_GROUP_TO_SERVICE" ]
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Remote 360"
}
}
}
}
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 = "Remote 360"
}
}
}
}
}

View File

@ -0,0 +1,96 @@
# DEFINE dynatrace_management_zone.CD_RemoteCamera.id = -5222064113716031541
resource "dynatrace_management_zone" "CD_RemoteCamera" {
name = "CD_RemoteCamera"
rules {
type = "CLOUD_APPLICATION"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "CLOUD_APPLICATION_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "Remote 360"
}
}
}
rules {
type = "CLOUD_APPLICATION_NAMESPACE"
enabled = true
conditions {
key {
type = "STATIC"
attribute = "KUBERNETES_CLUSTER_NAME"
}
string {
case_sensitive = true
# negate = false
operator = "CONTAINS"
value = "Remote 360"
}
}
}
rules {
type = "HOST"
enabled = true
propagation_types = [ "HOST_TO_PROCESS_GROUP_INSTANCE" ]
conditions {
key {
type = "STATIC"
attribute = "HOST_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Remote 360"
}
}
}
}
rules {
type = "PROCESS_GROUP"
enabled = true
propagation_types = [ "PROCESS_GROUP_TO_HOST", "PROCESS_GROUP_TO_SERVICE" ]
conditions {
key {
type = "STATIC"
attribute = "PROCESS_GROUP_TAGS"
}
tag {
# negate = false
operator = "EQUALS"
value {
context = "CONTEXTLESS"
key = "Component"
value = "Remote 360"
}
}
}
}
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 = "Remote 360"
}
}
}
}
}