From b1bd282ba49531c557332e45d1cff3e6014c172d Mon Sep 17 00:00:00 2001 From: reneforstnerconsulting Date: Wed, 2 Nov 2022 13:12:14 +0100 Subject: [PATCH] adding PD_management zone --- .../PD_AccountManagementConnectedCar.tf | 11 ++++ .../PD_AutomotiveSecurity.tf | 27 ++++++++ .../PD_management_zone/PD_CallServices.tf | 27 ++++++++ .../PD_ConnectedDriveStoreBackend.tf | 15 +++++ .../PD_ConnectedUserProfileServices.tf | 15 +++++ .../PD_InfotainmentInteractivityServices.tf | 23 +++++++ .../PD_management_zone/PD_LocationServices.tf | 15 +++++ .../PD_MapServicesAutomatedDriving.tf | 11 ++++ .../PD_NavigationServices.tf | 15 +++++ .../PD_RemoteMessagingServices.tf | 11 ++++ ...PD_RemoteVehicleConfigurationManagement.tf | 23 +++++++ .../PD_management_zone/PD_Teleservices.tf | 15 +++++ .../PD_VehicleDataCollection.tf | 23 +++++++ .../PD_VehicleDataConnectivity.tf | 15 +++++ EMEA_PREPROD/PD_management_zone/__main.tf | 26 ++++++++ .../PD_AccountManagementConnectedCar.tf | 11 ++++ .../PD_AutomotiveSecurity.tf | 27 ++++++++ .../PD_management_zone/PD_CallServices.tf | 63 +++++++++++++++++++ .../PD_ConnectedDriveStoreBackend.tf | 15 +++++ .../PD_ConnectedUserProfileServices.tf | 31 +++++++++ .../PD_InfotainmentInteractivityServices.tf | 23 +++++++ .../PD_management_zone/PD_LocationServices.tf | 15 +++++ .../PD_MapServicesAutomatedDriving.tf | 11 ++++ .../PD_NavigationServices.tf | 15 +++++ .../PD_RemoteMessagingServices.tf | 47 ++++++++++++++ ...PD_RemoteVehicleConfigurationManagement.tf | 23 +++++++ .../PD_management_zone/PD_Teleservices.tf | 15 +++++ .../PD_VehicleDataCollection.tf | 23 +++++++ .../PD_VehicleDataConnectivity.tf | 15 +++++ EMEA_PROD/PD_management_zone/__main.tf | 27 ++++++++ .../PD_AccountManagementConnectedCar.tf | 11 ++++ .../PD_AutomotiveSecurity.tf | 27 ++++++++ .../PD_management_zone/PD_CallServices.tf | 23 +++++++ .../PD_ConnectedDriveStoreBackend.tf | 15 +++++ .../PD_ConnectedUserProfileServices.tf | 15 +++++ .../PD_InfotainmentInteractivityServices.tf | 23 +++++++ .../PD_management_zone/PD_LocationServices.tf | 15 +++++ .../PD_MapServicesAutomatedDriving.tf | 11 ++++ .../PD_NavigationServices.tf | 15 +++++ .../PD_RemoteMessagingServices.tf | 11 ++++ ...PD_RemoteVehicleConfigurationManagement.tf | 23 +++++++ .../PD_management_zone/PD_Teleservices.tf | 15 +++++ .../PD_VehicleDataCollection.tf | 23 +++++++ .../PD_VehicleDataConnectivity.tf | 15 +++++ NA_PREPROD/PD_management_zone/_main.tf | 26 ++++++++ .../PD_AccountManagementConnectedCar.tf | 11 ++++ .../PD_AutomotiveSecurity.tf | 27 ++++++++ NA_PROD/PD_management_zone/PD_CallServices.tf | 23 +++++++ .../PD_ConnectedDriveStoreBackend.tf | 15 +++++ .../PD_ConnectedUserProfileServices.tf | 31 +++++++++ .../PD_InfotainmentInteractivityServices.tf | 23 +++++++ .../PD_management_zone/PD_LocationServices.tf | 15 +++++ .../PD_MapServicesAutomatedDriving.tf | 11 ++++ .../PD_NavigationServices.tf | 15 +++++ .../PD_RemoteMessagingServices.tf | 27 ++++++++ ...PD_RemoteVehicleConfigurationManagement.tf | 23 +++++++ NA_PROD/PD_management_zone/PD_Teleservices.tf | 15 +++++ .../PD_VehicleDataCollection.tf | 23 +++++++ .../PD_VehicleDataConnectivity.tf | 15 +++++ NA_PROD/PD_management_zone/__main.tf | 26 ++++++++ 60 files changed, 1201 insertions(+) create mode 100644 EMEA_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_CallServices.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_LocationServices.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_NavigationServices.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_Teleservices.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf create mode 100644 EMEA_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf create mode 100644 EMEA_PREPROD/PD_management_zone/__main.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_AutomotiveSecurity.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_CallServices.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_LocationServices.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_NavigationServices.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_RemoteMessagingServices.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_Teleservices.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_VehicleDataCollection.tf create mode 100644 EMEA_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf create mode 100644 EMEA_PROD/PD_management_zone/__main.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_CallServices.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_LocationServices.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_NavigationServices.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_Teleservices.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf create mode 100644 NA_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf create mode 100644 NA_PREPROD/PD_management_zone/_main.tf create mode 100644 NA_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf create mode 100644 NA_PROD/PD_management_zone/PD_AutomotiveSecurity.tf create mode 100644 NA_PROD/PD_management_zone/PD_CallServices.tf create mode 100644 NA_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf create mode 100644 NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf create mode 100644 NA_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf create mode 100644 NA_PROD/PD_management_zone/PD_LocationServices.tf create mode 100644 NA_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf create mode 100644 NA_PROD/PD_management_zone/PD_NavigationServices.tf create mode 100644 NA_PROD/PD_management_zone/PD_RemoteMessagingServices.tf create mode 100644 NA_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf create mode 100644 NA_PROD/PD_management_zone/PD_Teleservices.tf create mode 100644 NA_PROD/PD_management_zone/PD_VehicleDataCollection.tf create mode 100644 NA_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf create mode 100644 NA_PROD/PD_management_zone/__main.tf diff --git a/EMEA_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf b/EMEA_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf new file mode 100644 index 0000000..bdd34b5 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_AccountManagementConnectedCar" { + name = "PD_AccountManagementConnectedCar" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:am-bpm\",\"compass-id:AM-BPM\",\"compass-id:AM-CASA\",\"compass-id:am-cloud\",\"compass-id:AM-CNR\",\"compass-id:AM-CNS\",\"compass-id:AM-ECS\",\"compass-id:AM-LMCS\",\"compass-id:AM-Proxy\",\"compass-id:AM-Store\",\"compass-id:AM-SVMS\",\"compass-id:AM-SVMS-EventService\",\"compass-id:AM-USAGE\",\"compass-id:AM-VAS\",\"compass-id:AM-Vehicle\",\"compass-id:AM-VMS\",\"compass-id:Countly\",\"compass-id:TAMSArchive\",\"compass-id:TestdataTool\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:AM-CESIM\",\"compass-id:AM-Device\",\"compass-id:AM-EGIM\",\"compass-id:AM-MNO-Manager\",\"compass-id:CESIM Proxy\",\"compass-id:MNOMGR-CU-Jasper\",\"compass-id:MNOMGR-CU-SHA\",\"compass-id:MNOMGR-GD\",\"compass-id:MNOMGR-TMSP\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf b/EMEA_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf new file mode 100644 index 0000000..c6bdced --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf @@ -0,0 +1,27 @@ +resource "dynatrace_management_zone" "PD_AutomotiveSecurity" { + name = "PD_AutomotiveSecurity" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-RSU\"),tag(\"compass-id:ASBC-SBB\"),tag(\"compass-id:ASBCSWLSEC2\"),tag(\"compass-id:PSdZ-Checker\"),tag(\"compass-id:SCB\"),tag(\"compass-id:SCC\"),tag(\"compass-id:SWAG\"),tag(\"compass-id:SWLSEC2-Checker\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-AFW-POC\"),tag(\"compass-id:ASBC-AFWSFA-POC\"),tag(\"compass-id:ASBC-AFWSTM-POC\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-SMACC\"),tag(\"compass-id:CAC\"),tag(\"compass-id:CAC-AGENT\"),tag(\"compass-id:SMC2-BL\"),tag(\"compass-id:SMC2-KEY-TRK\"),tag(\"compass-id:SMC2-RT\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DFP\"),tag(\"compass-id:DFPH\"),tag(\"compass-id:OCLISc2v\"),tag(\"compass-id:OCLISocsp\"),tag(\"compass-id:P2X\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-MFSCS\"),tag(\"compass-id:STM\"),tag(\"compass-id:ts-wlupdater\"),tag(\"compass-id:TVP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-HAL\"),tag(\"compass-id:ASBC-NGTP\"),tag(\"compass-id:ASBS\"),tag(\"compass-id:HPAuth\"),tag(\"compass-id:STS\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_CallServices.tf b/EMEA_PREPROD/PD_management_zone/PD_CallServices.tf new file mode 100644 index 0000000..8265cea --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_CallServices.tf @@ -0,0 +1,27 @@ +resource "dynatrace_management_zone" "PD_CallServices" { + name = "PD_CallServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:PiSA-CORE\"),tag(\"compass-id:PISA-EVENT-HANDLER\"),tag(\"compass-id:PISA-RUNTIME\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-Voice\"),tag(\"compass-id:CRS\"),tag(\"compass-id:CRSA\"),tag(\"compass-id:EPL\"),tag(\"compass-id:EPM\"),tag(\"compass-id:VOICEGW\"),tag(\"compass-id:VOICEGW-ADMIN\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BASE\"),tag(\"compass-id:CCC\"),tag(\"compass-id:RSA\"),tag(\"compass-id:RSA-ASD-Search\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(\"PROCESS_GROUP\"),tag(\"compass-id:ecs\",\"compass-id:appcall\",\"compass-id:xcs\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:HTTS\"),tag(\"compass-id:HVD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ACDS\"),tag(\"compass-id:APPCALL\"),tag(\"compass-id:B2V-NGTP\"),tag(\"compass-id:ECALLGW\"),tag(\"compass-id:ECS\"),tag(\"compass-id:EVNS2\"),tag(\"compass-id:EVNS2T\"),tag(\"compass-id:NGTP-CS\"),tag(\"compass-id:XCS\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf b/EMEA_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf new file mode 100644 index 0000000..8735460 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_ConnectedDriveStoreBackend" { + name = "PD_ConnectedDriveStoreBackend" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Buffet-Birt\"),tag(\"compass-id:Buffet-CIC-Backend\"),tag(\"compass-id:Buffet-Core\"),tag(\"compass-id:Buffet-External-CDM\"),tag(\"compass-id:Buffet-External-Offer\"),tag(\"compass-id:Buffet-External-Payment\"),tag(\"compass-id:Buffet-External-Tax\"),tag(\"compass-id:Buffet-GAM\"),tag(\"compass-id:Buffet-IF33\"),tag(\"compass-id:Buffet-IF38\"),tag(\"compass-id:Buffet-IF41\"),tag(\"compass-id:Buffet-IF50\"),tag(\"compass-id:Buffet-IF51\"),tag(\"compass-id:Buffet-IF52\"),tag(\"compass-id:Buffet-IF53\"),tag(\"compass-id:Buffet-IF54\"),tag(\"compass-id:Buffet-IF58\"),tag(\"compass-id:Buffet-IF60\"),tag(\"compass-id:Buffet-IF90\"),tag(\"compass-id:Buffet-Promo-API\"),tag(\"compass-id:IME-CDS\"),tag(\"compass-id:IME-CS\"),tag(\"compass-id:IME-RDC\"),tag(\"compass-id:IME-SS\"),tag(\"compass-id:IME-WS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"Component:am-store\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Concat\"),tag(\"compass-id:Connected-Catalog\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf new file mode 100644 index 0000000..4b5ed02 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { + name = "PD_ConnectedUserProfileServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:OMC Table Storage Expiration Service\"),tag(\"compass-id:omc-client-analytics-hub-consumer-ms\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:dpm\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DPM\"),tag(\"compass-id:DPP\"),tag(\"compass-id:PERSEUS\"),tag(\"compass-id:PIABO\"),tag(\"compass-id:PIAEP\"),tag(\"compass-id:PIAOP\"),tag(\"compass-id:PIAPE\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf b/EMEA_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf new file mode 100644 index 0000000..d948e70 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_InfotainmentInteractivityServices" { + name = "PD_InfotainmentInteractivityServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ambient-music\"),tag(\"compass-id:festive-mode\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCIS-Download\"),tag(\"compass-id:Geolocator\"),tag(\"compass-id:intelligent-reminder\"),tag(\"compass-id:news-next\"),tag(\"compass-id:restaurant-reservation\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CDIP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GEN3\"),tag(\"compass-id:ID5\"),tag(\"compass-id:ID5-APP\"),tag(\"compass-id:ID5-EXT\"),tag(\"compass-id:ISE-BEV\"),tag(\"compass-id:ISE-CDR\"),tag(\"compass-id:ISE-EML\"),tag(\"compass-id:ISE-GEN2\"),tag(\"compass-id:ISE-ID7\"),tag(\"compass-id:ISE-INP\"),tag(\"compass-id:ISE-IPA\"),tag(\"compass-id:ISE-LIS\"),tag(\"compass-id:ISE-LOC\"),tag(\"compass-id:ISE-MCL\"),tag(\"compass-id:ISE-NEWS\"),tag(\"compass-id:ISE-PAR\"),tag(\"compass-id:ISE-RSL\"),tag(\"compass-id:ISE-VPS\"),tag(\"compass-id:ISE-VSD\"),tag(\"compass-id:tmpp-admin-ui\"),tag(\"compass-id:tmpp-manifest\"),tag(\"compass-id:tmpp-web-proxy\"),tag(\"compass-id:UPS\"),tag(\"compass-id:WEA\"),tag(\"compass-id:WEA-ID5\"),tag(\"compass-id:WEA-IN-MAP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:cm-config\"),tag(\"compass-id:cm-gracenote\"),tag(\"compass-id:cm-spotify\"),tag(\"compass-id:cm-ximalaya\"),tag(\"compass-id:OED\"),tag(\"compass-id:OED-CN\"),tag(\"compass-id:OEG\"),tag(\"compass-id:OEG-CN\"),tag(\"compass-id:OEO\"),tag(\"compass-id:OEO-CN\"),tag(\"compass-id:OEP\"),tag(\"compass-id:OEP-CN\"),tag(\"compass-id:OES\"),tag(\"compass-id:OES-CN\"),tag(\"compass-id:OET\"),tag(\"compass-id:OET-CN\"),tag(\"compass-id:shortvideo\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_LocationServices.tf b/EMEA_PREPROD/PD_management_zone/PD_LocationServices.tf new file mode 100644 index 0000000..0027a4a --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_LocationServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_LocationServices" { + name = "PD_LocationServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ercaf\"),tag(\"compass-id:ERCR\"),tag(\"compass-id:ERTP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:LOS-FTS\"),tag(\"compass-id:potholes-reader\"),tag(\"compass-id:potholes-service\"),tag(\"compass-id:sc-reader\"),tag(\"compass-id:sc-service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:C2B-BS\"),tag(\"compass-id:GCS\"),tag(\"compass-id:LOS-CHA\"),tag(\"compass-id:LOS-CHA-CNV\"),tag(\"compass-id:LOS-JOY\"),tag(\"compass-id:LOS-MOD\"),tag(\"compass-id:LOS-MSC\"),tag(\"compass-id:LOS-OPS\"),tag(\"compass-id:LOS-PAR\"),tag(\"compass-id:LOS-PER\"),tag(\"compass-id:LOS-REF\"),tag(\"compass-id:RES-PAR\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf b/EMEA_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf new file mode 100644 index 0000000..10cf285 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_MapServicesAutomatedDriving" { + name = "PD_MapServicesAutomatedDriving" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ms-hdmap-lcv\"),tag(\"compass-id:ms-hdmap-map-viewer\"),tag(\"compass-id:ms-hdmap-mci-adapter\"),tag(\"compass-id:ms-hdmap-mci-downloader\"),tag(\"compass-id:ms-hdmap-nds-downloader\"),tag(\"compass-id:ms-hdmap-qc-bl\"),tag(\"compass-id:ms-hdmap-qc-checks\"),tag(\"compass-id:ms-hdmap-tile-delivery\"),tag(\"compass-id:ms-hdmap-tile-generator\"),tag(\"compass-id:ms-hdmap-vehicle-mock\"),tag(\"compass-id:mupi-backend\"),tag(\"compass-id:MUPI-BE\"),tag(\"compass-id:mupi-cloud-discovery-service\"),tag(\"compass-id:mupi-cloud-dumm-adapter-service\"),tag(\"compass-id:mupi-cloud-hd-adapter-service\"),tag(\"compass-id:mupi-cloud-import-service\"),tag(\"compass-id:mupi-cloud-integration-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-class-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-service\"),tag(\"compass-id:mupi-cloud-stats-service\"),tag(\"compass-id:mupi-cockpit\"),tag(\"compass-id:mupi-gateway\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GNSS API Gateway\"),tag(\"compass-id:gnss-reader\"),tag(\"compass-id:gnss-service\"),tag(\"compass-id:ms-3dp-rc\"),tag(\"compass-id:tc-app\"),tag(\"compass-id:tc-service\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_NavigationServices.tf b/EMEA_PREPROD/PD_management_zone/PD_NavigationServices.tf new file mode 100644 index 0000000..a820f67 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_NavigationServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_NavigationServices" { + name = "PD_NavigationServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:OSPI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CNGW\"),tag(\"compass-id:RTTI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DM\"),tag(\"compass-id:eRoute\"),tag(\"compass-id:NaaS\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf b/EMEA_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf new file mode 100644 index 0000000..a5d176b --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_RemoteMessagingServices" { + name = "PD_RemoteMessagingServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APIGW\"),tag(\"compass-id:FMC\"),tag(\"compass-id:RS\"),tag(\"compass-id:RS360\"),tag(\"compass-id:RSCockpit\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:EADB\"),tag(\"compass-id:ICNB\"),tag(\"compass-id:MSGSVC\"),tag(\"compass-id:OMGW\"),tag(\"compass-id:TCN\"),tag(\"compass-id:XCC-CAMPAIGNS\"),tag(\"compass-id:XCC-CMGR\"),tag(\"compass-id:XCC-SETTINGS\"),tag(\"compass-id:XCC-STATISTICS\"),tag(\"compass-id:XCC-USERS\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf b/EMEA_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf new file mode 100644 index 0000000..bcf59a9 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_RemoteVehicleConfigurationManagement" { + name = "PD_RemoteVehicleConfigurationManagement" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SFA-FRE\"),tag(\"compass-id:SFA-OH\"),tag(\"compass-id:SFA-OTA\"),tag(\"compass-id:SFA-S\"),tag(\"compass-id:SFA-TS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:comfy-agent-registry\"),tag(\"compass-id:comfy-cockpit\"),tag(\"compass-id:comfy-management\"),tag(\"compass-id:comfy-orchestration\"),tag(\"compass-id:NOP-Admin\"),tag(\"compass-id:NOP-Archive\"),tag(\"compass-id:NOP-Provisioning\"),tag(\"compass-id:NOP-Trigger\"),tag(\"compass-id:SCM\"),tag(\"compass-id:SCMA\"),tag(\"compass-id:VPS-Admin\"),tag(\"compass-id:VPS-Archive\"),tag(\"compass-id:VPS-Monitor\"),tag(\"compass-id:VPS-Prov\"),tag(\"compass-id:VPS-Trigger\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APR\"),tag(\"compass-id:APR-NPM\"),tag(\"compass-id:APR-Portal\"),tag(\"compass-id:APR-Registry\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ZAS\"),tag(\"compass-id:ZDI\"),tag(\"compass-id:ZFUS-MP-GENERATOR\"),tag(\"compass-id:ZIP\"),tag(\"compass-id:zis\"),tag(\"compass-id:ZMP\"),tag(\"compass-id:ZOS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:FRE\"),tag(\"compass-id:FRS\"),tag(\"compass-id:MPG\"),tag(\"compass-id:QMC\"),tag(\"compass-id:RCM\"),tag(\"compass-id:RCP\"),tag(\"compass-id:RCS\"),tag(\"compass-id:RDC\"),tag(\"compass-id:RDH\"),tag(\"compass-id:RES\"),tag(\"compass-id:RLM\"),tag(\"compass-id:RMO\"),tag(\"compass-id:RNB App\"),tag(\"compass-id:RNP\"),tag(\"compass-id:RPP\"),tag(\"compass-id:RSA Admin GUI\"),tag(\"compass-id:RSA Testbench GUI\"),tag(\"compass-id:RTE\"),tag(\"compass-id:RTS\"),tag(\"compass-id:RVC\"),tag(\"compass-id:RVE\"),tag(\"compass-id:RVI\"),tag(\"compass-id:RVS\"),tag(\"compass-id:RVT\"),tag(\"compass-id:rwd\"),tag(\"compass-id:tdp\"),tag(\"compass-id:uvm\"),tag(\"compass-id:vjm\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_Teleservices.tf b/EMEA_PREPROD/PD_management_zone/PD_Teleservices.tf new file mode 100644 index 0000000..6fedd6c --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_Teleservices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_Teleservices" { + name = "PD_Teleservices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:PDMManager\"),tag(\"compass-id:PDMUpdater\"),tag(\"compass-id:ts-ena-ui\"),tag(\"compass-id:WLManager\"),tag(\"compass-id:WLUpdater\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BCallService\"),tag(\"compass-id:CAS-SPM\"),tag(\"compass-id:CAS-STM\"),tag(\"compass-id:DiagService\"),tag(\"compass-id:ESHAD\"),tag(\"compass-id:patchcampaign\"),tag(\"compass-id:RTCAD\"),tag(\"compass-id:RTCHandler\"),tag(\"compass-id:RTCService\"),tag(\"compass-id:ts-bcallhandler\"),tag(\"compass-id:ts-cts-ui\"),tag(\"compass-id:ts-pat-ui\"),tag(\"compass-id:TSRD\"),tag(\"compass-id:ts-rtc-ui\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:RSURService\"),tag(\"compass-id:SCallService\"),tag(\"compass-id:SEAM\"),tag(\"compass-id:ts-asc\"),tag(\"compass-id:TSBGService\"),tag(\"compass-id:TSBM\"),tag(\"compass-id:TS-CCM-DI\"),tag(\"compass-id:TSCS\"),tag(\"compass-id:TSDD\"),tag(\"compass-id:TSMR\"),tag(\"compass-id:TS-PFFS\"),tag(\"compass-id:TSSB-BT\"),tag(\"compass-id:TSSB-BTI\"),tag(\"compass-id:TSSB-TSP\"),tag(\"compass-id:TS-SDI\"),tag(\"compass-id:ts-tyredi\"),tag(\"compass-id:ts-tyrewf\"),tag(\"compass-id:TTBS\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf b/EMEA_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf new file mode 100644 index 0000000..ca9a645 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_VehicleDataCollection" { + name = "PD_VehicleDataCollection" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SRManager\"),tag(\"compass-id:TSMB\"),tag(\"compass-id:TSR-CH\"),tag(\"compass-id:TSR-CMA\"),tag(\"compass-id:TSR-DD\"),tag(\"compass-id:TSR-ICC\"),tag(\"compass-id:TSR-VU\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:TOL\"),tag(\"compass-id:TOL MGU\"),tag(\"compass-id:TOL-TSSB\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CMCS\"),tag(\"compass-id:ERDCDC2FCD\"),tag(\"compass-id:ERDDISP\"),tag(\"compass-id:ERDFCDUDS\"),tag(\"compass-id:ERDMGR\"),tag(\"compass-id:ERDPROC\"),tag(\"compass-id:ERDXFCDFCD\"),tag(\"compass-id:XFCD Cockpit\"),tag(\"compass-id:XFCD Configuration\"),tag(\"compass-id:XFCDAnonymizer\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:IDS-SVDS\"),tag(\"compass-id:IDS-Sync\"),tag(\"compass-id:IDS-WS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCG\"),tag(\"compass-id:CSI\"),tag(\"compass-id:CSU\"),tag(\"compass-id:LSCFSU\"),tag(\"compass-id:LSCHR\"),tag(\"compass-id:LSCJHWO\"),tag(\"compass-id:LSCJR\"),tag(\"compass-id:LSCKC\"),tag(\"compass-id:LSCMM\"),tag(\"compass-id:LSCOC\"),tag(\"compass-id:LSCOG\"),tag(\"compass-id:LSCWO\"),tag(\"compass-id:tripCollection\"),tag(\"compass-id:vdc-vcs\"),tag(\"compass-id:VHCJR\"),tag(\"compass-id:VHS\"),tag(\"compass-id:VJDS\"),tag(\"compass-id:VNS\"),tag(\"compass-id:VS-API\"),tag(\"compass-id:VSFO\"),tag(\"compass-id:VSST\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf b/EMEA_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf new file mode 100644 index 0000000..67ad968 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_VehicleDataConnectivity" { + name = "PD_VehicleDataConnectivity" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-ADC\"),tag(\"compass-id:B2V-ADC-CLOUD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:JoynrDS\"),tag(\"compass-id:UDS\"),tag(\"compass-id:UDS Storage Service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-COM-BE\"),tag(\"compass-id:B2V-COM-ECHO\"),tag(\"compass-id:B2V-COM-FE\"),tag(\"compass-id:B2VCOMGCDMCLIENT\"),tag(\"compass-id:B2V-NOTS\")" + } +} diff --git a/EMEA_PREPROD/PD_management_zone/__main.tf b/EMEA_PREPROD/PD_management_zone/__main.tf new file mode 100644 index 0000000..5394f85 --- /dev/null +++ b/EMEA_PREPROD/PD_management_zone/__main.tf @@ -0,0 +1,26 @@ +terraform { + required_providers { + dynatrace = { + version = ">=1.11.0" + source = "dynatrace-oss/dynatrace" + } + } + + backend "s3" { + bucket = "coco-dynatrace-tfstate" + key = "EMEA_PREPROD/pd_management_zone/terraform.tfstate" + region = "eu-central-1" + dynamodb_table = "coco-dynatrace-tfstate" + encrypt = true + } + +} + +variable EMEA_PREPROD_ENV_URL {} +variable EMEA_PREPROD_API_TOKEN {} + + +provider "dynatrace" { + dt_env_url = "${var.EMEA_PREPROD_ENV_URL}" + dt_api_token = "${var.EMEA_PREPROD_API_TOKEN}" +} \ No newline at end of file diff --git a/EMEA_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf b/EMEA_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf new file mode 100644 index 0000000..b386d93 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_AccountManagementConnectedCar" { + name = "PD_AccountManagementConnectedCar" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:AM-BPM\"),tag(\"compass-id:AM-CASA\"),tag(\"compass-id:am-cloud\"),tag(\"compass-id:AM-CNR\"),tag(\"compass-id:AM-CNS\"),tag(\"compass-id:AM-ECS\"),tag(\"compass-id:AM-LMCS\"),tag(\"compass-id:AM-Proxy\"),tag(\"compass-id:AM-Store\"),tag(\"compass-id:AM-SVMS\"),tag(\"compass-id:AM-SVMS-EventService\"),tag(\"compass-id:AM-USAGE\"),tag(\"compass-id:AM-VAS\"),tag(\"compass-id:AM-Vehicle\"),tag(\"compass-id:AM-VMS\"),tag(\"compass-id:Countly\"),tag(\"compass-id:TAMSArchive\"),tag(\"compass-id:TestdataTool\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:AM-CESIM\"),tag(\"compass-id:AM-Device\"),tag(\"compass-id:AM-EGIM\"),tag(\"compass-id:AM-MNO-Manager\"),tag(\"compass-id:CESIM Proxy\"),tag(\"compass-id:MNOMGR-CU-Jasper\"),tag(\"compass-id:MNOMGR-CU-SHA\"),tag(\"compass-id:MNOMGR-GD\"),tag(\"compass-id:MNOMGR-TMSP\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_AutomotiveSecurity.tf b/EMEA_PROD/PD_management_zone/PD_AutomotiveSecurity.tf new file mode 100644 index 0000000..c6bdced --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_AutomotiveSecurity.tf @@ -0,0 +1,27 @@ +resource "dynatrace_management_zone" "PD_AutomotiveSecurity" { + name = "PD_AutomotiveSecurity" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-RSU\"),tag(\"compass-id:ASBC-SBB\"),tag(\"compass-id:ASBCSWLSEC2\"),tag(\"compass-id:PSdZ-Checker\"),tag(\"compass-id:SCB\"),tag(\"compass-id:SCC\"),tag(\"compass-id:SWAG\"),tag(\"compass-id:SWLSEC2-Checker\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-AFW-POC\"),tag(\"compass-id:ASBC-AFWSFA-POC\"),tag(\"compass-id:ASBC-AFWSTM-POC\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-SMACC\"),tag(\"compass-id:CAC\"),tag(\"compass-id:CAC-AGENT\"),tag(\"compass-id:SMC2-BL\"),tag(\"compass-id:SMC2-KEY-TRK\"),tag(\"compass-id:SMC2-RT\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DFP\"),tag(\"compass-id:DFPH\"),tag(\"compass-id:OCLISc2v\"),tag(\"compass-id:OCLISocsp\"),tag(\"compass-id:P2X\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-MFSCS\"),tag(\"compass-id:STM\"),tag(\"compass-id:ts-wlupdater\"),tag(\"compass-id:TVP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-HAL\"),tag(\"compass-id:ASBC-NGTP\"),tag(\"compass-id:ASBS\"),tag(\"compass-id:HPAuth\"),tag(\"compass-id:STS\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_CallServices.tf b/EMEA_PROD/PD_management_zone/PD_CallServices.tf new file mode 100644 index 0000000..5d422ad --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_CallServices.tf @@ -0,0 +1,63 @@ +resource "dynatrace_management_zone" "PD_CallServices" { + name = "PD_CallServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:PiSA-CORE\"),tag(\"compass-id:PISA-EVENT-HANDLER\"),tag(\"compass-id:PISA-RUNTIME\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-Voice\"),tag(\"compass-id:CRS\"),tag(\"compass-id:CRSA\"),tag(\"compass-id:EPL\"),tag(\"compass-id:EPM\"),tag(\"compass-id:VOICEGW\"),tag(\"compass-id:VOICEGW-ADMIN\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:B2V-Voice\"),tag(\"compass-id:CRS\"),tag(\"compass-id:CRSA\"),tag(\"compass-id:EPL\"),tag(\"compass-id:EPM\"),tag(\"compass-id:VOICEGW\"),tag(\"compass-id:VOICEGW-ADMIN\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:BASE\"),tag(\"compass-id:CCC\"),tag(\"compass-id:RSA\"),tag(\"compass-id:RSA-ASD-Search\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:HTTS\"),tag(\"compass-id:HVD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ACDS\"),tag(\"compass-id:APPCALL\"),tag(\"compass-id:B2V-NGTP\"),tag(\"compass-id:ECALLGW\"),tag(\"compass-id:ECS\"),tag(\"compass-id:EVNS2\"),tag(\"compass-id:EVNS2T\"),tag(\"compass-id:NGTP-CS\"),tag(\"compass-id:XCS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:HTTS\"),tag(\"compass-id:HVD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(PROCESS_GROUP),tag(\"compass-id:PiSA-CORE\"),tag(\"compass-id:PISA-EVENT-HANDLER\"),tag(\"compass-id:PISA-RUNTIME\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BASE\"),tag(\"compass-id:CCC\"),tag(\"compass-id:RSA\"),tag(\"compass-id:RSA-ASD-Search\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(\"PROCESS_GROUP\"),tag(\"compass-id:ecs\",\"compass-id:appcall\",\"compass-id:xcs\")" + } + rules { + type = "PROCESS_GROUP" + enabled = true + propagation_types = ["PROCESS_GROUP_TO_SERVICE"] + conditions { + custom_process_metadata { + attribute = "PROCESS_GROUP_CUSTOM_METADATA" + dynamic_key { + key = "compass-id" + source = "KUBERNETES" + } + } + string { + # case_sensitive = false + # negate = false + operator = "BEGINS_WITH" + value = "ecs" + } + } + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf b/EMEA_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf new file mode 100644 index 0000000..42e9c16 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_ConnectedDriveStoreBackend" { + name = "PD_ConnectedDriveStoreBackend" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"Component:am-store\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Buffet-Birt\",\"compass-id:Buffet-CIC-Backend\",\"compass-id:Buffet-Core\",\"compass-id:Buffet-External-CDM\",\"compass-id:Buffet-External-Offer\",\"compass-id:Buffet-External-Payment\",\"compass-id:Buffet-External-Tax\",\"compass-id:Buffet-GAM\",\"compass-id:Buffet-IF33\",\"compass-id:Buffet-IF38\",\"compass-id:Buffet-IF41\",\"compass-id:Buffet-IF50\",\"compass-id:Buffet-IF51\",\"compass-id:Buffet-IF52\",\"compass-id:Buffet-IF53\",\"compass-id:Buffet-IF54\",\"compass-id:Buffet-IF58\",\"compass-id:Buffet-IF60\",\"compass-id:Buffet-IF90\",\"compass-id:Buffet-Promo-API\",\"compass-id:IME-CDS\",\"compass-id:IME-CS\",\"compass-id:IME-RDC\",\"compass-id:IME-SS\",\"compass-id:IME-WS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Concat\"),tag(\"compass-id:Connected-Catalog\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf new file mode 100644 index 0000000..6a49965 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -0,0 +1,31 @@ +resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { + name = "PD_ConnectedUserProfileServices" + entity_selector_based_rule { + # enabled = false + selector = "type(Service),tag(\"compass-id:OMC Table Storage Expiration Service\"),tag(\"compass-id:omc-client-analytics-hub-consumer-ms\")" + } + entity_selector_based_rule { + # enabled = false + selector = "type(Service),tag(\"compass-id:DPM\"),tag(\"compass-id:DPP\"),tag(\"compass-id:PERSEUS\"),tag(\"compass-id:PIABO\"),tag(\"compass-id:PIAEP\"),tag(\"compass-id:PIAOP\"),tag(\"compass-id:PIAPE\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:dpm\",\"compass-id:DPP\")" + } + rules { + type = "SERVICE" + # enabled = false + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "EQUALS" + value = "ProtectedDppV1RestApi - dpp - prod" + } + } + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf b/EMEA_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf new file mode 100644 index 0000000..d948e70 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_InfotainmentInteractivityServices" { + name = "PD_InfotainmentInteractivityServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ambient-music\"),tag(\"compass-id:festive-mode\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCIS-Download\"),tag(\"compass-id:Geolocator\"),tag(\"compass-id:intelligent-reminder\"),tag(\"compass-id:news-next\"),tag(\"compass-id:restaurant-reservation\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CDIP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GEN3\"),tag(\"compass-id:ID5\"),tag(\"compass-id:ID5-APP\"),tag(\"compass-id:ID5-EXT\"),tag(\"compass-id:ISE-BEV\"),tag(\"compass-id:ISE-CDR\"),tag(\"compass-id:ISE-EML\"),tag(\"compass-id:ISE-GEN2\"),tag(\"compass-id:ISE-ID7\"),tag(\"compass-id:ISE-INP\"),tag(\"compass-id:ISE-IPA\"),tag(\"compass-id:ISE-LIS\"),tag(\"compass-id:ISE-LOC\"),tag(\"compass-id:ISE-MCL\"),tag(\"compass-id:ISE-NEWS\"),tag(\"compass-id:ISE-PAR\"),tag(\"compass-id:ISE-RSL\"),tag(\"compass-id:ISE-VPS\"),tag(\"compass-id:ISE-VSD\"),tag(\"compass-id:tmpp-admin-ui\"),tag(\"compass-id:tmpp-manifest\"),tag(\"compass-id:tmpp-web-proxy\"),tag(\"compass-id:UPS\"),tag(\"compass-id:WEA\"),tag(\"compass-id:WEA-ID5\"),tag(\"compass-id:WEA-IN-MAP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:cm-config\"),tag(\"compass-id:cm-gracenote\"),tag(\"compass-id:cm-spotify\"),tag(\"compass-id:cm-ximalaya\"),tag(\"compass-id:OED\"),tag(\"compass-id:OED-CN\"),tag(\"compass-id:OEG\"),tag(\"compass-id:OEG-CN\"),tag(\"compass-id:OEO\"),tag(\"compass-id:OEO-CN\"),tag(\"compass-id:OEP\"),tag(\"compass-id:OEP-CN\"),tag(\"compass-id:OES\"),tag(\"compass-id:OES-CN\"),tag(\"compass-id:OET\"),tag(\"compass-id:OET-CN\"),tag(\"compass-id:shortvideo\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_LocationServices.tf b/EMEA_PROD/PD_management_zone/PD_LocationServices.tf new file mode 100644 index 0000000..0027a4a --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_LocationServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_LocationServices" { + name = "PD_LocationServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ercaf\"),tag(\"compass-id:ERCR\"),tag(\"compass-id:ERTP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:LOS-FTS\"),tag(\"compass-id:potholes-reader\"),tag(\"compass-id:potholes-service\"),tag(\"compass-id:sc-reader\"),tag(\"compass-id:sc-service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:C2B-BS\"),tag(\"compass-id:GCS\"),tag(\"compass-id:LOS-CHA\"),tag(\"compass-id:LOS-CHA-CNV\"),tag(\"compass-id:LOS-JOY\"),tag(\"compass-id:LOS-MOD\"),tag(\"compass-id:LOS-MSC\"),tag(\"compass-id:LOS-OPS\"),tag(\"compass-id:LOS-PAR\"),tag(\"compass-id:LOS-PER\"),tag(\"compass-id:LOS-REF\"),tag(\"compass-id:RES-PAR\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf b/EMEA_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf new file mode 100644 index 0000000..10cf285 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_MapServicesAutomatedDriving" { + name = "PD_MapServicesAutomatedDriving" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ms-hdmap-lcv\"),tag(\"compass-id:ms-hdmap-map-viewer\"),tag(\"compass-id:ms-hdmap-mci-adapter\"),tag(\"compass-id:ms-hdmap-mci-downloader\"),tag(\"compass-id:ms-hdmap-nds-downloader\"),tag(\"compass-id:ms-hdmap-qc-bl\"),tag(\"compass-id:ms-hdmap-qc-checks\"),tag(\"compass-id:ms-hdmap-tile-delivery\"),tag(\"compass-id:ms-hdmap-tile-generator\"),tag(\"compass-id:ms-hdmap-vehicle-mock\"),tag(\"compass-id:mupi-backend\"),tag(\"compass-id:MUPI-BE\"),tag(\"compass-id:mupi-cloud-discovery-service\"),tag(\"compass-id:mupi-cloud-dumm-adapter-service\"),tag(\"compass-id:mupi-cloud-hd-adapter-service\"),tag(\"compass-id:mupi-cloud-import-service\"),tag(\"compass-id:mupi-cloud-integration-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-class-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-service\"),tag(\"compass-id:mupi-cloud-stats-service\"),tag(\"compass-id:mupi-cockpit\"),tag(\"compass-id:mupi-gateway\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GNSS API Gateway\"),tag(\"compass-id:gnss-reader\"),tag(\"compass-id:gnss-service\"),tag(\"compass-id:ms-3dp-rc\"),tag(\"compass-id:tc-app\"),tag(\"compass-id:tc-service\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_NavigationServices.tf b/EMEA_PROD/PD_management_zone/PD_NavigationServices.tf new file mode 100644 index 0000000..a820f67 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_NavigationServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_NavigationServices" { + name = "PD_NavigationServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:OSPI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CNGW\"),tag(\"compass-id:RTTI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DM\"),tag(\"compass-id:eRoute\"),tag(\"compass-id:NaaS\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_RemoteMessagingServices.tf b/EMEA_PROD/PD_management_zone/PD_RemoteMessagingServices.tf new file mode 100644 index 0000000..5e55d11 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_RemoteMessagingServices.tf @@ -0,0 +1,47 @@ +resource "dynatrace_management_zone" "PD_RemoteMessagingServices" { + name = "PD_RemoteMessagingServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APIGW\",\"compass-id:RS\",\"compass-id:RS360\",\"compass-id:RSCockpit\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(service),tag(\"compass-id:eadb\",\"compass-id:icnb\",\"compass-id:msgsvc\",\"compass-id:omgw\",\"compass-id:tcn\",\"compass-id:xcc-campaigns\",\"compass-id:xcc-cmgr\",\"compass-id:xcc-settings\",\"compass-id:xcc-statistics\",\"compass-id:xcc-users\")" + } + rules { + type = "MOBILE_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "MOBILE_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "2.0" + } + } + } + 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 = "compass-id" + value = "rs" + } + } + } + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf b/EMEA_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf new file mode 100644 index 0000000..bcf59a9 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_RemoteVehicleConfigurationManagement" { + name = "PD_RemoteVehicleConfigurationManagement" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SFA-FRE\"),tag(\"compass-id:SFA-OH\"),tag(\"compass-id:SFA-OTA\"),tag(\"compass-id:SFA-S\"),tag(\"compass-id:SFA-TS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:comfy-agent-registry\"),tag(\"compass-id:comfy-cockpit\"),tag(\"compass-id:comfy-management\"),tag(\"compass-id:comfy-orchestration\"),tag(\"compass-id:NOP-Admin\"),tag(\"compass-id:NOP-Archive\"),tag(\"compass-id:NOP-Provisioning\"),tag(\"compass-id:NOP-Trigger\"),tag(\"compass-id:SCM\"),tag(\"compass-id:SCMA\"),tag(\"compass-id:VPS-Admin\"),tag(\"compass-id:VPS-Archive\"),tag(\"compass-id:VPS-Monitor\"),tag(\"compass-id:VPS-Prov\"),tag(\"compass-id:VPS-Trigger\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APR\"),tag(\"compass-id:APR-NPM\"),tag(\"compass-id:APR-Portal\"),tag(\"compass-id:APR-Registry\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ZAS\"),tag(\"compass-id:ZDI\"),tag(\"compass-id:ZFUS-MP-GENERATOR\"),tag(\"compass-id:ZIP\"),tag(\"compass-id:zis\"),tag(\"compass-id:ZMP\"),tag(\"compass-id:ZOS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:FRE\"),tag(\"compass-id:FRS\"),tag(\"compass-id:MPG\"),tag(\"compass-id:QMC\"),tag(\"compass-id:RCM\"),tag(\"compass-id:RCP\"),tag(\"compass-id:RCS\"),tag(\"compass-id:RDC\"),tag(\"compass-id:RDH\"),tag(\"compass-id:RES\"),tag(\"compass-id:RLM\"),tag(\"compass-id:RMO\"),tag(\"compass-id:RNB App\"),tag(\"compass-id:RNP\"),tag(\"compass-id:RPP\"),tag(\"compass-id:RSA Admin GUI\"),tag(\"compass-id:RSA Testbench GUI\"),tag(\"compass-id:RTE\"),tag(\"compass-id:RTS\"),tag(\"compass-id:RVC\"),tag(\"compass-id:RVE\"),tag(\"compass-id:RVI\"),tag(\"compass-id:RVS\"),tag(\"compass-id:RVT\"),tag(\"compass-id:rwd\"),tag(\"compass-id:tdp\"),tag(\"compass-id:uvm\"),tag(\"compass-id:vjm\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_Teleservices.tf b/EMEA_PROD/PD_management_zone/PD_Teleservices.tf new file mode 100644 index 0000000..6fedd6c --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_Teleservices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_Teleservices" { + name = "PD_Teleservices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:PDMManager\"),tag(\"compass-id:PDMUpdater\"),tag(\"compass-id:ts-ena-ui\"),tag(\"compass-id:WLManager\"),tag(\"compass-id:WLUpdater\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BCallService\"),tag(\"compass-id:CAS-SPM\"),tag(\"compass-id:CAS-STM\"),tag(\"compass-id:DiagService\"),tag(\"compass-id:ESHAD\"),tag(\"compass-id:patchcampaign\"),tag(\"compass-id:RTCAD\"),tag(\"compass-id:RTCHandler\"),tag(\"compass-id:RTCService\"),tag(\"compass-id:ts-bcallhandler\"),tag(\"compass-id:ts-cts-ui\"),tag(\"compass-id:ts-pat-ui\"),tag(\"compass-id:TSRD\"),tag(\"compass-id:ts-rtc-ui\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:RSURService\"),tag(\"compass-id:SCallService\"),tag(\"compass-id:SEAM\"),tag(\"compass-id:ts-asc\"),tag(\"compass-id:TSBGService\"),tag(\"compass-id:TSBM\"),tag(\"compass-id:TS-CCM-DI\"),tag(\"compass-id:TSCS\"),tag(\"compass-id:TSDD\"),tag(\"compass-id:TSMR\"),tag(\"compass-id:TS-PFFS\"),tag(\"compass-id:TSSB-BT\"),tag(\"compass-id:TSSB-BTI\"),tag(\"compass-id:TSSB-TSP\"),tag(\"compass-id:TS-SDI\"),tag(\"compass-id:ts-tyredi\"),tag(\"compass-id:ts-tyrewf\"),tag(\"compass-id:TTBS\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_VehicleDataCollection.tf b/EMEA_PROD/PD_management_zone/PD_VehicleDataCollection.tf new file mode 100644 index 0000000..ca9a645 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_VehicleDataCollection.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_VehicleDataCollection" { + name = "PD_VehicleDataCollection" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SRManager\"),tag(\"compass-id:TSMB\"),tag(\"compass-id:TSR-CH\"),tag(\"compass-id:TSR-CMA\"),tag(\"compass-id:TSR-DD\"),tag(\"compass-id:TSR-ICC\"),tag(\"compass-id:TSR-VU\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:TOL\"),tag(\"compass-id:TOL MGU\"),tag(\"compass-id:TOL-TSSB\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CMCS\"),tag(\"compass-id:ERDCDC2FCD\"),tag(\"compass-id:ERDDISP\"),tag(\"compass-id:ERDFCDUDS\"),tag(\"compass-id:ERDMGR\"),tag(\"compass-id:ERDPROC\"),tag(\"compass-id:ERDXFCDFCD\"),tag(\"compass-id:XFCD Cockpit\"),tag(\"compass-id:XFCD Configuration\"),tag(\"compass-id:XFCDAnonymizer\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:IDS-SVDS\"),tag(\"compass-id:IDS-Sync\"),tag(\"compass-id:IDS-WS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCG\"),tag(\"compass-id:CSI\"),tag(\"compass-id:CSU\"),tag(\"compass-id:LSCFSU\"),tag(\"compass-id:LSCHR\"),tag(\"compass-id:LSCJHWO\"),tag(\"compass-id:LSCJR\"),tag(\"compass-id:LSCKC\"),tag(\"compass-id:LSCMM\"),tag(\"compass-id:LSCOC\"),tag(\"compass-id:LSCOG\"),tag(\"compass-id:LSCWO\"),tag(\"compass-id:tripCollection\"),tag(\"compass-id:vdc-vcs\"),tag(\"compass-id:VHCJR\"),tag(\"compass-id:VHS\"),tag(\"compass-id:VJDS\"),tag(\"compass-id:VNS\"),tag(\"compass-id:VS-API\"),tag(\"compass-id:VSFO\"),tag(\"compass-id:VSST\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf b/EMEA_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf new file mode 100644 index 0000000..67ad968 --- /dev/null +++ b/EMEA_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_VehicleDataConnectivity" { + name = "PD_VehicleDataConnectivity" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-ADC\"),tag(\"compass-id:B2V-ADC-CLOUD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:JoynrDS\"),tag(\"compass-id:UDS\"),tag(\"compass-id:UDS Storage Service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-COM-BE\"),tag(\"compass-id:B2V-COM-ECHO\"),tag(\"compass-id:B2V-COM-FE\"),tag(\"compass-id:B2VCOMGCDMCLIENT\"),tag(\"compass-id:B2V-NOTS\")" + } +} diff --git a/EMEA_PROD/PD_management_zone/__main.tf b/EMEA_PROD/PD_management_zone/__main.tf new file mode 100644 index 0000000..58cc91d --- /dev/null +++ b/EMEA_PROD/PD_management_zone/__main.tf @@ -0,0 +1,27 @@ +terraform { + required_providers { + dynatrace = { + version = ">=1.11.0" + source = "dynatrace-oss/dynatrace" + } + } + + backend "s3" { + bucket = "coco-dynatrace-tfstate" + key = "EMEA_PROD/pd_management_zone/terraform.tfstate" + region = "eu-central-1" + dynamodb_table = "coco-dynatrace-tfstate" + encrypt = true + } + +} + +variable EMEA_PROD_ENV_URL {} +variable EMEA_PROD_API_TOKEN {} + + +provider "dynatrace" { + dt_env_url = "${var.EMEA_PROD_ENV_URL}" + dt_api_token = "${var.EMEA_PROD_API_TOKEN}" + +} \ No newline at end of file diff --git a/NA_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf b/NA_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf new file mode 100644 index 0000000..b386d93 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_AccountManagementConnectedCar" { + name = "PD_AccountManagementConnectedCar" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:AM-BPM\"),tag(\"compass-id:AM-CASA\"),tag(\"compass-id:am-cloud\"),tag(\"compass-id:AM-CNR\"),tag(\"compass-id:AM-CNS\"),tag(\"compass-id:AM-ECS\"),tag(\"compass-id:AM-LMCS\"),tag(\"compass-id:AM-Proxy\"),tag(\"compass-id:AM-Store\"),tag(\"compass-id:AM-SVMS\"),tag(\"compass-id:AM-SVMS-EventService\"),tag(\"compass-id:AM-USAGE\"),tag(\"compass-id:AM-VAS\"),tag(\"compass-id:AM-Vehicle\"),tag(\"compass-id:AM-VMS\"),tag(\"compass-id:Countly\"),tag(\"compass-id:TAMSArchive\"),tag(\"compass-id:TestdataTool\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:AM-CESIM\"),tag(\"compass-id:AM-Device\"),tag(\"compass-id:AM-EGIM\"),tag(\"compass-id:AM-MNO-Manager\"),tag(\"compass-id:CESIM Proxy\"),tag(\"compass-id:MNOMGR-CU-Jasper\"),tag(\"compass-id:MNOMGR-CU-SHA\"),tag(\"compass-id:MNOMGR-GD\"),tag(\"compass-id:MNOMGR-TMSP\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf b/NA_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf new file mode 100644 index 0000000..c6bdced --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf @@ -0,0 +1,27 @@ +resource "dynatrace_management_zone" "PD_AutomotiveSecurity" { + name = "PD_AutomotiveSecurity" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-RSU\"),tag(\"compass-id:ASBC-SBB\"),tag(\"compass-id:ASBCSWLSEC2\"),tag(\"compass-id:PSdZ-Checker\"),tag(\"compass-id:SCB\"),tag(\"compass-id:SCC\"),tag(\"compass-id:SWAG\"),tag(\"compass-id:SWLSEC2-Checker\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-AFW-POC\"),tag(\"compass-id:ASBC-AFWSFA-POC\"),tag(\"compass-id:ASBC-AFWSTM-POC\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-SMACC\"),tag(\"compass-id:CAC\"),tag(\"compass-id:CAC-AGENT\"),tag(\"compass-id:SMC2-BL\"),tag(\"compass-id:SMC2-KEY-TRK\"),tag(\"compass-id:SMC2-RT\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DFP\"),tag(\"compass-id:DFPH\"),tag(\"compass-id:OCLISc2v\"),tag(\"compass-id:OCLISocsp\"),tag(\"compass-id:P2X\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-MFSCS\"),tag(\"compass-id:STM\"),tag(\"compass-id:ts-wlupdater\"),tag(\"compass-id:TVP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-HAL\"),tag(\"compass-id:ASBC-NGTP\"),tag(\"compass-id:ASBS\"),tag(\"compass-id:HPAuth\"),tag(\"compass-id:STS\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_CallServices.tf b/NA_PREPROD/PD_management_zone/PD_CallServices.tf new file mode 100644 index 0000000..83507ac --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_CallServices.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_CallServices" { + name = "PD_CallServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-Voice\"),tag(\"compass-id:CRS\"),tag(\"compass-id:CRSA\"),tag(\"compass-id:EPL\"),tag(\"compass-id:EPM\"),tag(\"compass-id:VOICEGW\"),tag(\"compass-id:VOICEGW-ADMIN\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:PiSA-CORE\"),tag(\"compass-id:PISA-EVENT-HANDLER\"),tag(\"compass-id:PISA-RUNTIME\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BASE\"),tag(\"compass-id:CCC\"),tag(\"compass-id:RSA\"),tag(\"compass-id:RSA-ASD-Search\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ACDS\"),tag(\"compass-id:APPCALL\"),tag(\"compass-id:B2V-NGTP\"),tag(\"compass-id:ECALLGW\"),tag(\"compass-id:ECS\"),tag(\"compass-id:EVNS2\"),tag(\"compass-id:EVNS2T\"),tag(\"compass-id:NGTP-CS\"),tag(\"compass-id:XCS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:HTTS\"),tag(\"compass-id:HVD\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf b/NA_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf new file mode 100644 index 0000000..8735460 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_ConnectedDriveStoreBackend" { + name = "PD_ConnectedDriveStoreBackend" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Buffet-Birt\"),tag(\"compass-id:Buffet-CIC-Backend\"),tag(\"compass-id:Buffet-Core\"),tag(\"compass-id:Buffet-External-CDM\"),tag(\"compass-id:Buffet-External-Offer\"),tag(\"compass-id:Buffet-External-Payment\"),tag(\"compass-id:Buffet-External-Tax\"),tag(\"compass-id:Buffet-GAM\"),tag(\"compass-id:Buffet-IF33\"),tag(\"compass-id:Buffet-IF38\"),tag(\"compass-id:Buffet-IF41\"),tag(\"compass-id:Buffet-IF50\"),tag(\"compass-id:Buffet-IF51\"),tag(\"compass-id:Buffet-IF52\"),tag(\"compass-id:Buffet-IF53\"),tag(\"compass-id:Buffet-IF54\"),tag(\"compass-id:Buffet-IF58\"),tag(\"compass-id:Buffet-IF60\"),tag(\"compass-id:Buffet-IF90\"),tag(\"compass-id:Buffet-Promo-API\"),tag(\"compass-id:IME-CDS\"),tag(\"compass-id:IME-CS\"),tag(\"compass-id:IME-RDC\"),tag(\"compass-id:IME-SS\"),tag(\"compass-id:IME-WS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"Component:am-store\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Concat\"),tag(\"compass-id:Connected-Catalog\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf new file mode 100644 index 0000000..4b5ed02 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { + name = "PD_ConnectedUserProfileServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:OMC Table Storage Expiration Service\"),tag(\"compass-id:omc-client-analytics-hub-consumer-ms\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:dpm\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DPM\"),tag(\"compass-id:DPP\"),tag(\"compass-id:PERSEUS\"),tag(\"compass-id:PIABO\"),tag(\"compass-id:PIAEP\"),tag(\"compass-id:PIAOP\"),tag(\"compass-id:PIAPE\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf b/NA_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf new file mode 100644 index 0000000..d948e70 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_InfotainmentInteractivityServices" { + name = "PD_InfotainmentInteractivityServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ambient-music\"),tag(\"compass-id:festive-mode\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCIS-Download\"),tag(\"compass-id:Geolocator\"),tag(\"compass-id:intelligent-reminder\"),tag(\"compass-id:news-next\"),tag(\"compass-id:restaurant-reservation\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CDIP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GEN3\"),tag(\"compass-id:ID5\"),tag(\"compass-id:ID5-APP\"),tag(\"compass-id:ID5-EXT\"),tag(\"compass-id:ISE-BEV\"),tag(\"compass-id:ISE-CDR\"),tag(\"compass-id:ISE-EML\"),tag(\"compass-id:ISE-GEN2\"),tag(\"compass-id:ISE-ID7\"),tag(\"compass-id:ISE-INP\"),tag(\"compass-id:ISE-IPA\"),tag(\"compass-id:ISE-LIS\"),tag(\"compass-id:ISE-LOC\"),tag(\"compass-id:ISE-MCL\"),tag(\"compass-id:ISE-NEWS\"),tag(\"compass-id:ISE-PAR\"),tag(\"compass-id:ISE-RSL\"),tag(\"compass-id:ISE-VPS\"),tag(\"compass-id:ISE-VSD\"),tag(\"compass-id:tmpp-admin-ui\"),tag(\"compass-id:tmpp-manifest\"),tag(\"compass-id:tmpp-web-proxy\"),tag(\"compass-id:UPS\"),tag(\"compass-id:WEA\"),tag(\"compass-id:WEA-ID5\"),tag(\"compass-id:WEA-IN-MAP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:cm-config\"),tag(\"compass-id:cm-gracenote\"),tag(\"compass-id:cm-spotify\"),tag(\"compass-id:cm-ximalaya\"),tag(\"compass-id:OED\"),tag(\"compass-id:OED-CN\"),tag(\"compass-id:OEG\"),tag(\"compass-id:OEG-CN\"),tag(\"compass-id:OEO\"),tag(\"compass-id:OEO-CN\"),tag(\"compass-id:OEP\"),tag(\"compass-id:OEP-CN\"),tag(\"compass-id:OES\"),tag(\"compass-id:OES-CN\"),tag(\"compass-id:OET\"),tag(\"compass-id:OET-CN\"),tag(\"compass-id:shortvideo\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_LocationServices.tf b/NA_PREPROD/PD_management_zone/PD_LocationServices.tf new file mode 100644 index 0000000..0027a4a --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_LocationServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_LocationServices" { + name = "PD_LocationServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ercaf\"),tag(\"compass-id:ERCR\"),tag(\"compass-id:ERTP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:LOS-FTS\"),tag(\"compass-id:potholes-reader\"),tag(\"compass-id:potholes-service\"),tag(\"compass-id:sc-reader\"),tag(\"compass-id:sc-service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:C2B-BS\"),tag(\"compass-id:GCS\"),tag(\"compass-id:LOS-CHA\"),tag(\"compass-id:LOS-CHA-CNV\"),tag(\"compass-id:LOS-JOY\"),tag(\"compass-id:LOS-MOD\"),tag(\"compass-id:LOS-MSC\"),tag(\"compass-id:LOS-OPS\"),tag(\"compass-id:LOS-PAR\"),tag(\"compass-id:LOS-PER\"),tag(\"compass-id:LOS-REF\"),tag(\"compass-id:RES-PAR\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf b/NA_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf new file mode 100644 index 0000000..10cf285 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_MapServicesAutomatedDriving" { + name = "PD_MapServicesAutomatedDriving" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ms-hdmap-lcv\"),tag(\"compass-id:ms-hdmap-map-viewer\"),tag(\"compass-id:ms-hdmap-mci-adapter\"),tag(\"compass-id:ms-hdmap-mci-downloader\"),tag(\"compass-id:ms-hdmap-nds-downloader\"),tag(\"compass-id:ms-hdmap-qc-bl\"),tag(\"compass-id:ms-hdmap-qc-checks\"),tag(\"compass-id:ms-hdmap-tile-delivery\"),tag(\"compass-id:ms-hdmap-tile-generator\"),tag(\"compass-id:ms-hdmap-vehicle-mock\"),tag(\"compass-id:mupi-backend\"),tag(\"compass-id:MUPI-BE\"),tag(\"compass-id:mupi-cloud-discovery-service\"),tag(\"compass-id:mupi-cloud-dumm-adapter-service\"),tag(\"compass-id:mupi-cloud-hd-adapter-service\"),tag(\"compass-id:mupi-cloud-import-service\"),tag(\"compass-id:mupi-cloud-integration-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-class-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-service\"),tag(\"compass-id:mupi-cloud-stats-service\"),tag(\"compass-id:mupi-cockpit\"),tag(\"compass-id:mupi-gateway\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GNSS API Gateway\"),tag(\"compass-id:gnss-reader\"),tag(\"compass-id:gnss-service\"),tag(\"compass-id:ms-3dp-rc\"),tag(\"compass-id:tc-app\"),tag(\"compass-id:tc-service\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_NavigationServices.tf b/NA_PREPROD/PD_management_zone/PD_NavigationServices.tf new file mode 100644 index 0000000..a820f67 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_NavigationServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_NavigationServices" { + name = "PD_NavigationServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:OSPI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CNGW\"),tag(\"compass-id:RTTI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DM\"),tag(\"compass-id:eRoute\"),tag(\"compass-id:NaaS\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf b/NA_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf new file mode 100644 index 0000000..a5d176b --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_RemoteMessagingServices" { + name = "PD_RemoteMessagingServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APIGW\"),tag(\"compass-id:FMC\"),tag(\"compass-id:RS\"),tag(\"compass-id:RS360\"),tag(\"compass-id:RSCockpit\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:EADB\"),tag(\"compass-id:ICNB\"),tag(\"compass-id:MSGSVC\"),tag(\"compass-id:OMGW\"),tag(\"compass-id:TCN\"),tag(\"compass-id:XCC-CAMPAIGNS\"),tag(\"compass-id:XCC-CMGR\"),tag(\"compass-id:XCC-SETTINGS\"),tag(\"compass-id:XCC-STATISTICS\"),tag(\"compass-id:XCC-USERS\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf b/NA_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf new file mode 100644 index 0000000..bcf59a9 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_RemoteVehicleConfigurationManagement" { + name = "PD_RemoteVehicleConfigurationManagement" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SFA-FRE\"),tag(\"compass-id:SFA-OH\"),tag(\"compass-id:SFA-OTA\"),tag(\"compass-id:SFA-S\"),tag(\"compass-id:SFA-TS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:comfy-agent-registry\"),tag(\"compass-id:comfy-cockpit\"),tag(\"compass-id:comfy-management\"),tag(\"compass-id:comfy-orchestration\"),tag(\"compass-id:NOP-Admin\"),tag(\"compass-id:NOP-Archive\"),tag(\"compass-id:NOP-Provisioning\"),tag(\"compass-id:NOP-Trigger\"),tag(\"compass-id:SCM\"),tag(\"compass-id:SCMA\"),tag(\"compass-id:VPS-Admin\"),tag(\"compass-id:VPS-Archive\"),tag(\"compass-id:VPS-Monitor\"),tag(\"compass-id:VPS-Prov\"),tag(\"compass-id:VPS-Trigger\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APR\"),tag(\"compass-id:APR-NPM\"),tag(\"compass-id:APR-Portal\"),tag(\"compass-id:APR-Registry\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ZAS\"),tag(\"compass-id:ZDI\"),tag(\"compass-id:ZFUS-MP-GENERATOR\"),tag(\"compass-id:ZIP\"),tag(\"compass-id:zis\"),tag(\"compass-id:ZMP\"),tag(\"compass-id:ZOS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:FRE\"),tag(\"compass-id:FRS\"),tag(\"compass-id:MPG\"),tag(\"compass-id:QMC\"),tag(\"compass-id:RCM\"),tag(\"compass-id:RCP\"),tag(\"compass-id:RCS\"),tag(\"compass-id:RDC\"),tag(\"compass-id:RDH\"),tag(\"compass-id:RES\"),tag(\"compass-id:RLM\"),tag(\"compass-id:RMO\"),tag(\"compass-id:RNB App\"),tag(\"compass-id:RNP\"),tag(\"compass-id:RPP\"),tag(\"compass-id:RSA Admin GUI\"),tag(\"compass-id:RSA Testbench GUI\"),tag(\"compass-id:RTE\"),tag(\"compass-id:RTS\"),tag(\"compass-id:RVC\"),tag(\"compass-id:RVE\"),tag(\"compass-id:RVI\"),tag(\"compass-id:RVS\"),tag(\"compass-id:RVT\"),tag(\"compass-id:rwd\"),tag(\"compass-id:tdp\"),tag(\"compass-id:uvm\"),tag(\"compass-id:vjm\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_Teleservices.tf b/NA_PREPROD/PD_management_zone/PD_Teleservices.tf new file mode 100644 index 0000000..6fedd6c --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_Teleservices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_Teleservices" { + name = "PD_Teleservices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:PDMManager\"),tag(\"compass-id:PDMUpdater\"),tag(\"compass-id:ts-ena-ui\"),tag(\"compass-id:WLManager\"),tag(\"compass-id:WLUpdater\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BCallService\"),tag(\"compass-id:CAS-SPM\"),tag(\"compass-id:CAS-STM\"),tag(\"compass-id:DiagService\"),tag(\"compass-id:ESHAD\"),tag(\"compass-id:patchcampaign\"),tag(\"compass-id:RTCAD\"),tag(\"compass-id:RTCHandler\"),tag(\"compass-id:RTCService\"),tag(\"compass-id:ts-bcallhandler\"),tag(\"compass-id:ts-cts-ui\"),tag(\"compass-id:ts-pat-ui\"),tag(\"compass-id:TSRD\"),tag(\"compass-id:ts-rtc-ui\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:RSURService\"),tag(\"compass-id:SCallService\"),tag(\"compass-id:SEAM\"),tag(\"compass-id:ts-asc\"),tag(\"compass-id:TSBGService\"),tag(\"compass-id:TSBM\"),tag(\"compass-id:TS-CCM-DI\"),tag(\"compass-id:TSCS\"),tag(\"compass-id:TSDD\"),tag(\"compass-id:TSMR\"),tag(\"compass-id:TS-PFFS\"),tag(\"compass-id:TSSB-BT\"),tag(\"compass-id:TSSB-BTI\"),tag(\"compass-id:TSSB-TSP\"),tag(\"compass-id:TS-SDI\"),tag(\"compass-id:ts-tyredi\"),tag(\"compass-id:ts-tyrewf\"),tag(\"compass-id:TTBS\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf b/NA_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf new file mode 100644 index 0000000..ca9a645 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_VehicleDataCollection" { + name = "PD_VehicleDataCollection" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SRManager\"),tag(\"compass-id:TSMB\"),tag(\"compass-id:TSR-CH\"),tag(\"compass-id:TSR-CMA\"),tag(\"compass-id:TSR-DD\"),tag(\"compass-id:TSR-ICC\"),tag(\"compass-id:TSR-VU\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:TOL\"),tag(\"compass-id:TOL MGU\"),tag(\"compass-id:TOL-TSSB\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CMCS\"),tag(\"compass-id:ERDCDC2FCD\"),tag(\"compass-id:ERDDISP\"),tag(\"compass-id:ERDFCDUDS\"),tag(\"compass-id:ERDMGR\"),tag(\"compass-id:ERDPROC\"),tag(\"compass-id:ERDXFCDFCD\"),tag(\"compass-id:XFCD Cockpit\"),tag(\"compass-id:XFCD Configuration\"),tag(\"compass-id:XFCDAnonymizer\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:IDS-SVDS\"),tag(\"compass-id:IDS-Sync\"),tag(\"compass-id:IDS-WS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCG\"),tag(\"compass-id:CSI\"),tag(\"compass-id:CSU\"),tag(\"compass-id:LSCFSU\"),tag(\"compass-id:LSCHR\"),tag(\"compass-id:LSCJHWO\"),tag(\"compass-id:LSCJR\"),tag(\"compass-id:LSCKC\"),tag(\"compass-id:LSCMM\"),tag(\"compass-id:LSCOC\"),tag(\"compass-id:LSCOG\"),tag(\"compass-id:LSCWO\"),tag(\"compass-id:tripCollection\"),tag(\"compass-id:vdc-vcs\"),tag(\"compass-id:VHCJR\"),tag(\"compass-id:VHS\"),tag(\"compass-id:VJDS\"),tag(\"compass-id:VNS\"),tag(\"compass-id:VS-API\"),tag(\"compass-id:VSFO\"),tag(\"compass-id:VSST\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf b/NA_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf new file mode 100644 index 0000000..67ad968 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_VehicleDataConnectivity" { + name = "PD_VehicleDataConnectivity" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-ADC\"),tag(\"compass-id:B2V-ADC-CLOUD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:JoynrDS\"),tag(\"compass-id:UDS\"),tag(\"compass-id:UDS Storage Service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-COM-BE\"),tag(\"compass-id:B2V-COM-ECHO\"),tag(\"compass-id:B2V-COM-FE\"),tag(\"compass-id:B2VCOMGCDMCLIENT\"),tag(\"compass-id:B2V-NOTS\")" + } +} diff --git a/NA_PREPROD/PD_management_zone/_main.tf b/NA_PREPROD/PD_management_zone/_main.tf new file mode 100644 index 0000000..f97d329 --- /dev/null +++ b/NA_PREPROD/PD_management_zone/_main.tf @@ -0,0 +1,26 @@ +terraform { + required_providers { + dynatrace = { + version = ">=1.11.0" + source = "dynatrace-oss/dynatrace" + } + } + + backend "s3" { + bucket = "coco-dynatrace-tfstate" + key = "napreprod/pd_management_zone/terraform.tfstate" + region = "eu-central-1" + dynamodb_table = "coco-dynatrace-tfstate" + encrypt = true + } + +} + +variable NA_PREPROD_ENV_URL {} +variable NA_PREPROD_API_TOKEN {} + + +provider "dynatrace" { + dt_env_url = "${var.NA_PREPROD_ENV_URL}" + dt_api_token = "${var.NA_PREPROD_API_TOKEN}" +} \ No newline at end of file diff --git a/NA_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf b/NA_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf new file mode 100644 index 0000000..b386d93 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_AccountManagementConnectedCar" { + name = "PD_AccountManagementConnectedCar" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:AM-BPM\"),tag(\"compass-id:AM-CASA\"),tag(\"compass-id:am-cloud\"),tag(\"compass-id:AM-CNR\"),tag(\"compass-id:AM-CNS\"),tag(\"compass-id:AM-ECS\"),tag(\"compass-id:AM-LMCS\"),tag(\"compass-id:AM-Proxy\"),tag(\"compass-id:AM-Store\"),tag(\"compass-id:AM-SVMS\"),tag(\"compass-id:AM-SVMS-EventService\"),tag(\"compass-id:AM-USAGE\"),tag(\"compass-id:AM-VAS\"),tag(\"compass-id:AM-Vehicle\"),tag(\"compass-id:AM-VMS\"),tag(\"compass-id:Countly\"),tag(\"compass-id:TAMSArchive\"),tag(\"compass-id:TestdataTool\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:AM-CESIM\"),tag(\"compass-id:AM-Device\"),tag(\"compass-id:AM-EGIM\"),tag(\"compass-id:AM-MNO-Manager\"),tag(\"compass-id:CESIM Proxy\"),tag(\"compass-id:MNOMGR-CU-Jasper\"),tag(\"compass-id:MNOMGR-CU-SHA\"),tag(\"compass-id:MNOMGR-GD\"),tag(\"compass-id:MNOMGR-TMSP\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_AutomotiveSecurity.tf b/NA_PROD/PD_management_zone/PD_AutomotiveSecurity.tf new file mode 100644 index 0000000..c6bdced --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_AutomotiveSecurity.tf @@ -0,0 +1,27 @@ +resource "dynatrace_management_zone" "PD_AutomotiveSecurity" { + name = "PD_AutomotiveSecurity" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-RSU\"),tag(\"compass-id:ASBC-SBB\"),tag(\"compass-id:ASBCSWLSEC2\"),tag(\"compass-id:PSdZ-Checker\"),tag(\"compass-id:SCB\"),tag(\"compass-id:SCC\"),tag(\"compass-id:SWAG\"),tag(\"compass-id:SWLSEC2-Checker\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-AFW-POC\"),tag(\"compass-id:ASBC-AFWSFA-POC\"),tag(\"compass-id:ASBC-AFWSTM-POC\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-SMACC\"),tag(\"compass-id:CAC\"),tag(\"compass-id:CAC-AGENT\"),tag(\"compass-id:SMC2-BL\"),tag(\"compass-id:SMC2-KEY-TRK\"),tag(\"compass-id:SMC2-RT\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DFP\"),tag(\"compass-id:DFPH\"),tag(\"compass-id:OCLISc2v\"),tag(\"compass-id:OCLISocsp\"),tag(\"compass-id:P2X\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-MFSCS\"),tag(\"compass-id:STM\"),tag(\"compass-id:ts-wlupdater\"),tag(\"compass-id:TVP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-HAL\"),tag(\"compass-id:ASBC-NGTP\"),tag(\"compass-id:ASBS\"),tag(\"compass-id:HPAuth\"),tag(\"compass-id:STS\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_CallServices.tf b/NA_PROD/PD_management_zone/PD_CallServices.tf new file mode 100644 index 0000000..83507ac --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_CallServices.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_CallServices" { + name = "PD_CallServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-Voice\"),tag(\"compass-id:CRS\"),tag(\"compass-id:CRSA\"),tag(\"compass-id:EPL\"),tag(\"compass-id:EPM\"),tag(\"compass-id:VOICEGW\"),tag(\"compass-id:VOICEGW-ADMIN\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:PiSA-CORE\"),tag(\"compass-id:PISA-EVENT-HANDLER\"),tag(\"compass-id:PISA-RUNTIME\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BASE\"),tag(\"compass-id:CCC\"),tag(\"compass-id:RSA\"),tag(\"compass-id:RSA-ASD-Search\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ACDS\"),tag(\"compass-id:APPCALL\"),tag(\"compass-id:B2V-NGTP\"),tag(\"compass-id:ECALLGW\"),tag(\"compass-id:ECS\"),tag(\"compass-id:EVNS2\"),tag(\"compass-id:EVNS2T\"),tag(\"compass-id:NGTP-CS\"),tag(\"compass-id:XCS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:HTTS\"),tag(\"compass-id:HVD\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf b/NA_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf new file mode 100644 index 0000000..8c25c86 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_ConnectedDriveStoreBackend" { + name = "PD_ConnectedDriveStoreBackend" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Concat\",\"compass-id:Connected-Catalog\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"Component:am-store\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Buffet-Birt\",\"compass-id:Buffet-CIC-Backend\",\"compass-id:Buffet-Core\",\"compass-id:Buffet-External-CDM\",\"compass-id:Buffet-External-Offer\",\"compass-id:Buffet-External-Payment\",\"compass-id:Buffet-External-Tax\",\"compass-id:Buffet-GAM\",\"compass-id:Buffet-IF33\",\"compass-id:Buffet-IF38\",\"compass-id:Buffet-IF41\",\"compass-id:Buffet-IF50\",\"compass-id:Buffet-IF51\",\"compass-id:Buffet-IF52\",\"compass-id:Buffet-IF53\",\"compass-id:Buffet-IF54\",\"compass-id:Buffet-IF58\",\"compass-id:Buffet-IF60\",\"compass-id:Buffet-IF90\",\"compass-id:Buffet-Promo-API\",\"compass-id:IME-CDS\",\"compass-id:IME-CS\",\"compass-id:IME-RDC\",\"compass-id:IME-SS\",\"compass-id:IME-WS\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf new file mode 100644 index 0000000..5855ca8 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf @@ -0,0 +1,31 @@ +resource "dynatrace_management_zone" "PD_ConnectedUserProfileServices" { + name = "PD_ConnectedUserProfileServices" + entity_selector_based_rule { + # enabled = false + selector = "type(Service),tag(\"compass-id:OMC Table Storage Expiration Service\"),tag(\"compass-id:omc-client-analytics-hub-consumer-ms\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:dpm\",\"compass-id:DPP\")" + } + entity_selector_based_rule { + # enabled = false + selector = "type(Service),tag(\"compass-id:DPM\"),tag(\"compass-id:DPP\"),tag(\"compass-id:PERSEUS\"),tag(\"compass-id:PIABO\"),tag(\"compass-id:PIAEP\"),tag(\"compass-id:PIAOP\"),tag(\"compass-id:PIAPE\")" + } + rules { + type = "SERVICE" + # enabled = false + conditions { + key { + type = "STATIC" + attribute = "SERVICE_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "EQUALS" + value = "ProtectedDppV1RestApi - dpp - prod" + } + } + } +} diff --git a/NA_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf b/NA_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf new file mode 100644 index 0000000..d948e70 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_InfotainmentInteractivityServices" { + name = "PD_InfotainmentInteractivityServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ambient-music\"),tag(\"compass-id:festive-mode\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCIS-Download\"),tag(\"compass-id:Geolocator\"),tag(\"compass-id:intelligent-reminder\"),tag(\"compass-id:news-next\"),tag(\"compass-id:restaurant-reservation\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CDIP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GEN3\"),tag(\"compass-id:ID5\"),tag(\"compass-id:ID5-APP\"),tag(\"compass-id:ID5-EXT\"),tag(\"compass-id:ISE-BEV\"),tag(\"compass-id:ISE-CDR\"),tag(\"compass-id:ISE-EML\"),tag(\"compass-id:ISE-GEN2\"),tag(\"compass-id:ISE-ID7\"),tag(\"compass-id:ISE-INP\"),tag(\"compass-id:ISE-IPA\"),tag(\"compass-id:ISE-LIS\"),tag(\"compass-id:ISE-LOC\"),tag(\"compass-id:ISE-MCL\"),tag(\"compass-id:ISE-NEWS\"),tag(\"compass-id:ISE-PAR\"),tag(\"compass-id:ISE-RSL\"),tag(\"compass-id:ISE-VPS\"),tag(\"compass-id:ISE-VSD\"),tag(\"compass-id:tmpp-admin-ui\"),tag(\"compass-id:tmpp-manifest\"),tag(\"compass-id:tmpp-web-proxy\"),tag(\"compass-id:UPS\"),tag(\"compass-id:WEA\"),tag(\"compass-id:WEA-ID5\"),tag(\"compass-id:WEA-IN-MAP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:cm-config\"),tag(\"compass-id:cm-gracenote\"),tag(\"compass-id:cm-spotify\"),tag(\"compass-id:cm-ximalaya\"),tag(\"compass-id:OED\"),tag(\"compass-id:OED-CN\"),tag(\"compass-id:OEG\"),tag(\"compass-id:OEG-CN\"),tag(\"compass-id:OEO\"),tag(\"compass-id:OEO-CN\"),tag(\"compass-id:OEP\"),tag(\"compass-id:OEP-CN\"),tag(\"compass-id:OES\"),tag(\"compass-id:OES-CN\"),tag(\"compass-id:OET\"),tag(\"compass-id:OET-CN\"),tag(\"compass-id:shortvideo\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_LocationServices.tf b/NA_PROD/PD_management_zone/PD_LocationServices.tf new file mode 100644 index 0000000..0027a4a --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_LocationServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_LocationServices" { + name = "PD_LocationServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ercaf\"),tag(\"compass-id:ERCR\"),tag(\"compass-id:ERTP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:LOS-FTS\"),tag(\"compass-id:potholes-reader\"),tag(\"compass-id:potholes-service\"),tag(\"compass-id:sc-reader\"),tag(\"compass-id:sc-service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:C2B-BS\"),tag(\"compass-id:GCS\"),tag(\"compass-id:LOS-CHA\"),tag(\"compass-id:LOS-CHA-CNV\"),tag(\"compass-id:LOS-JOY\"),tag(\"compass-id:LOS-MOD\"),tag(\"compass-id:LOS-MSC\"),tag(\"compass-id:LOS-OPS\"),tag(\"compass-id:LOS-PAR\"),tag(\"compass-id:LOS-PER\"),tag(\"compass-id:LOS-REF\"),tag(\"compass-id:RES-PAR\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf b/NA_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf new file mode 100644 index 0000000..10cf285 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_MapServicesAutomatedDriving" { + name = "PD_MapServicesAutomatedDriving" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ms-hdmap-lcv\"),tag(\"compass-id:ms-hdmap-map-viewer\"),tag(\"compass-id:ms-hdmap-mci-adapter\"),tag(\"compass-id:ms-hdmap-mci-downloader\"),tag(\"compass-id:ms-hdmap-nds-downloader\"),tag(\"compass-id:ms-hdmap-qc-bl\"),tag(\"compass-id:ms-hdmap-qc-checks\"),tag(\"compass-id:ms-hdmap-tile-delivery\"),tag(\"compass-id:ms-hdmap-tile-generator\"),tag(\"compass-id:ms-hdmap-vehicle-mock\"),tag(\"compass-id:mupi-backend\"),tag(\"compass-id:MUPI-BE\"),tag(\"compass-id:mupi-cloud-discovery-service\"),tag(\"compass-id:mupi-cloud-dumm-adapter-service\"),tag(\"compass-id:mupi-cloud-hd-adapter-service\"),tag(\"compass-id:mupi-cloud-import-service\"),tag(\"compass-id:mupi-cloud-integration-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-class-service\"),tag(\"compass-id:mupi-cloud-joynr-adapter-service\"),tag(\"compass-id:mupi-cloud-stats-service\"),tag(\"compass-id:mupi-cockpit\"),tag(\"compass-id:mupi-gateway\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GNSS API Gateway\"),tag(\"compass-id:gnss-reader\"),tag(\"compass-id:gnss-service\"),tag(\"compass-id:ms-3dp-rc\"),tag(\"compass-id:tc-app\"),tag(\"compass-id:tc-service\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_NavigationServices.tf b/NA_PROD/PD_management_zone/PD_NavigationServices.tf new file mode 100644 index 0000000..a820f67 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_NavigationServices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_NavigationServices" { + name = "PD_NavigationServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:OSPI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CNGW\"),tag(\"compass-id:RTTI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DM\"),tag(\"compass-id:eRoute\"),tag(\"compass-id:NaaS\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_RemoteMessagingServices.tf b/NA_PROD/PD_management_zone/PD_RemoteMessagingServices.tf new file mode 100644 index 0000000..b1abfe4 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_RemoteMessagingServices.tf @@ -0,0 +1,27 @@ +resource "dynatrace_management_zone" "PD_RemoteMessagingServices" { + name = "PD_RemoteMessagingServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APIGW\"),tag(\"compass-id:FMC\"),tag(\"compass-id:RS\"),tag(\"compass-id:RS360\"),tag(\"compass-id:RSCockpit\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:EADB\"),tag(\"compass-id:ICNB\"),tag(\"compass-id:MSGSVC\"),tag(\"compass-id:OMGW\"),tag(\"compass-id:TCN\"),tag(\"compass-id:XCC-CAMPAIGNS\"),tag(\"compass-id:XCC-CMGR\"),tag(\"compass-id:XCC-SETTINGS\"),tag(\"compass-id:XCC-STATISTICS\"),tag(\"compass-id:XCC-USERS\")" + } + rules { + type = "MOBILE_APPLICATION" + enabled = true + conditions { + key { + type = "STATIC" + attribute = "MOBILE_APPLICATION_NAME" + } + string { + case_sensitive = true + # negate = false + operator = "CONTAINS" + value = "2.0" + } + } + } +} diff --git a/NA_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf b/NA_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf new file mode 100644 index 0000000..bcf59a9 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_RemoteVehicleConfigurationManagement" { + name = "PD_RemoteVehicleConfigurationManagement" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SFA-FRE\"),tag(\"compass-id:SFA-OH\"),tag(\"compass-id:SFA-OTA\"),tag(\"compass-id:SFA-S\"),tag(\"compass-id:SFA-TS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:comfy-agent-registry\"),tag(\"compass-id:comfy-cockpit\"),tag(\"compass-id:comfy-management\"),tag(\"compass-id:comfy-orchestration\"),tag(\"compass-id:NOP-Admin\"),tag(\"compass-id:NOP-Archive\"),tag(\"compass-id:NOP-Provisioning\"),tag(\"compass-id:NOP-Trigger\"),tag(\"compass-id:SCM\"),tag(\"compass-id:SCMA\"),tag(\"compass-id:VPS-Admin\"),tag(\"compass-id:VPS-Archive\"),tag(\"compass-id:VPS-Monitor\"),tag(\"compass-id:VPS-Prov\"),tag(\"compass-id:VPS-Trigger\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APR\"),tag(\"compass-id:APR-NPM\"),tag(\"compass-id:APR-Portal\"),tag(\"compass-id:APR-Registry\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ZAS\"),tag(\"compass-id:ZDI\"),tag(\"compass-id:ZFUS-MP-GENERATOR\"),tag(\"compass-id:ZIP\"),tag(\"compass-id:zis\"),tag(\"compass-id:ZMP\"),tag(\"compass-id:ZOS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:FRE\"),tag(\"compass-id:FRS\"),tag(\"compass-id:MPG\"),tag(\"compass-id:QMC\"),tag(\"compass-id:RCM\"),tag(\"compass-id:RCP\"),tag(\"compass-id:RCS\"),tag(\"compass-id:RDC\"),tag(\"compass-id:RDH\"),tag(\"compass-id:RES\"),tag(\"compass-id:RLM\"),tag(\"compass-id:RMO\"),tag(\"compass-id:RNB App\"),tag(\"compass-id:RNP\"),tag(\"compass-id:RPP\"),tag(\"compass-id:RSA Admin GUI\"),tag(\"compass-id:RSA Testbench GUI\"),tag(\"compass-id:RTE\"),tag(\"compass-id:RTS\"),tag(\"compass-id:RVC\"),tag(\"compass-id:RVE\"),tag(\"compass-id:RVI\"),tag(\"compass-id:RVS\"),tag(\"compass-id:RVT\"),tag(\"compass-id:rwd\"),tag(\"compass-id:tdp\"),tag(\"compass-id:uvm\"),tag(\"compass-id:vjm\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_Teleservices.tf b/NA_PROD/PD_management_zone/PD_Teleservices.tf new file mode 100644 index 0000000..6fedd6c --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_Teleservices.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_Teleservices" { + name = "PD_Teleservices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:PDMManager\"),tag(\"compass-id:PDMUpdater\"),tag(\"compass-id:ts-ena-ui\"),tag(\"compass-id:WLManager\"),tag(\"compass-id:WLUpdater\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BCallService\"),tag(\"compass-id:CAS-SPM\"),tag(\"compass-id:CAS-STM\"),tag(\"compass-id:DiagService\"),tag(\"compass-id:ESHAD\"),tag(\"compass-id:patchcampaign\"),tag(\"compass-id:RTCAD\"),tag(\"compass-id:RTCHandler\"),tag(\"compass-id:RTCService\"),tag(\"compass-id:ts-bcallhandler\"),tag(\"compass-id:ts-cts-ui\"),tag(\"compass-id:ts-pat-ui\"),tag(\"compass-id:TSRD\"),tag(\"compass-id:ts-rtc-ui\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:RSURService\"),tag(\"compass-id:SCallService\"),tag(\"compass-id:SEAM\"),tag(\"compass-id:ts-asc\"),tag(\"compass-id:TSBGService\"),tag(\"compass-id:TSBM\"),tag(\"compass-id:TS-CCM-DI\"),tag(\"compass-id:TSCS\"),tag(\"compass-id:TSDD\"),tag(\"compass-id:TSMR\"),tag(\"compass-id:TS-PFFS\"),tag(\"compass-id:TSSB-BT\"),tag(\"compass-id:TSSB-BTI\"),tag(\"compass-id:TSSB-TSP\"),tag(\"compass-id:TS-SDI\"),tag(\"compass-id:ts-tyredi\"),tag(\"compass-id:ts-tyrewf\"),tag(\"compass-id:TTBS\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_VehicleDataCollection.tf b/NA_PROD/PD_management_zone/PD_VehicleDataCollection.tf new file mode 100644 index 0000000..ca9a645 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_VehicleDataCollection.tf @@ -0,0 +1,23 @@ +resource "dynatrace_management_zone" "PD_VehicleDataCollection" { + name = "PD_VehicleDataCollection" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SRManager\"),tag(\"compass-id:TSMB\"),tag(\"compass-id:TSR-CH\"),tag(\"compass-id:TSR-CMA\"),tag(\"compass-id:TSR-DD\"),tag(\"compass-id:TSR-ICC\"),tag(\"compass-id:TSR-VU\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:TOL\"),tag(\"compass-id:TOL MGU\"),tag(\"compass-id:TOL-TSSB\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CMCS\"),tag(\"compass-id:ERDCDC2FCD\"),tag(\"compass-id:ERDDISP\"),tag(\"compass-id:ERDFCDUDS\"),tag(\"compass-id:ERDMGR\"),tag(\"compass-id:ERDPROC\"),tag(\"compass-id:ERDXFCDFCD\"),tag(\"compass-id:XFCD Cockpit\"),tag(\"compass-id:XFCD Configuration\"),tag(\"compass-id:XFCDAnonymizer\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:IDS-SVDS\"),tag(\"compass-id:IDS-Sync\"),tag(\"compass-id:IDS-WS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCG\"),tag(\"compass-id:CSI\"),tag(\"compass-id:CSU\"),tag(\"compass-id:LSCFSU\"),tag(\"compass-id:LSCHR\"),tag(\"compass-id:LSCJHWO\"),tag(\"compass-id:LSCJR\"),tag(\"compass-id:LSCKC\"),tag(\"compass-id:LSCMM\"),tag(\"compass-id:LSCOC\"),tag(\"compass-id:LSCOG\"),tag(\"compass-id:LSCWO\"),tag(\"compass-id:tripCollection\"),tag(\"compass-id:vdc-vcs\"),tag(\"compass-id:VHCJR\"),tag(\"compass-id:VHS\"),tag(\"compass-id:VJDS\"),tag(\"compass-id:VNS\"),tag(\"compass-id:VS-API\"),tag(\"compass-id:VSFO\"),tag(\"compass-id:VSST\")" + } +} diff --git a/NA_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf b/NA_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf new file mode 100644 index 0000000..67ad968 --- /dev/null +++ b/NA_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf @@ -0,0 +1,15 @@ +resource "dynatrace_management_zone" "PD_VehicleDataConnectivity" { + name = "PD_VehicleDataConnectivity" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-ADC\"),tag(\"compass-id:B2V-ADC-CLOUD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:JoynrDS\"),tag(\"compass-id:UDS\"),tag(\"compass-id:UDS Storage Service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-COM-BE\"),tag(\"compass-id:B2V-COM-ECHO\"),tag(\"compass-id:B2V-COM-FE\"),tag(\"compass-id:B2VCOMGCDMCLIENT\"),tag(\"compass-id:B2V-NOTS\")" + } +} diff --git a/NA_PROD/PD_management_zone/__main.tf b/NA_PROD/PD_management_zone/__main.tf new file mode 100644 index 0000000..1f0f867 --- /dev/null +++ b/NA_PROD/PD_management_zone/__main.tf @@ -0,0 +1,26 @@ +terraform { + required_providers { + dynatrace = { + version = ">=1.11.0" + source = "dynatrace-oss/dynatrace" + } + } + + backend "s3" { + bucket = "coco-dynatrace-tfstate" + key = "naprod/pd_management_zone/terraform.tfstate" + region = "eu-central-1" + dynamodb_table = "coco-dynatrace-tfstate" + encrypt = true + } + +} + +variable NA_PROD_ENV_URL {} +variable NA_PROD_API_TOKEN {} + + +provider "dynatrace" { + dt_env_url = "${var.NA_PROD_ENV_URL}" + dt_api_token = "${var.NA_PROD_API_TOKEN}" +} \ No newline at end of file