From 267969fb2e6e207acea141dae98ec61412c7c92b Mon Sep 17 00:00:00 2001 From: "SLW\\YELGIM" Date: Tue, 31 Jan 2023 12:38:59 +0100 Subject: [PATCH] added PD_management_zone folder to CN_PROD and CN_PREPROD --- .../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_MyBMWMINIAppAsAProduct.tf | 7 +++++ .../PD_NavigationServices.tf | 15 +++++++++++ .../PD_RemoteMessagingServices.tf | 11 ++++++++ ...PD_RemoteVehicleConfigurationManagement.tf | 23 ++++++++++++++++ .../PD_management_zone/PD_Teleservices.tf | 15 +++++++++++ .../PD_VehicleDataCollection.tf | 19 +++++++++++++ .../PD_VehicleDataConnectivity.tf | 15 +++++++++++ .../PD_eSIMandStaticVehicleDataServices.tf | 11 ++++++++ CN_PREPROD/PD_management_zone/__main.tf | 26 ++++++++++++++++++ .../PD_AccountManagementConnectedCar.tf | 11 ++++++++ .../PD_AutomotiveSecurity.tf | 27 +++++++++++++++++++ CN_PROD/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_MyBMWMINIAppAsAProduct.tf | 7 +++++ .../PD_NavigationServices.tf | 15 +++++++++++ .../PD_RemoteMessagingServices.tf | 11 ++++++++ ...PD_RemoteVehicleConfigurationManagement.tf | 23 ++++++++++++++++ CN_PROD/PD_management_zone/PD_Teleservices.tf | 15 +++++++++++ .../PD_VehicleDataCollection.tf | 19 +++++++++++++ .../PD_VehicleDataConnectivity.tf | 15 +++++++++++ .../PD_eSIMandStaticVehicleDataServices.tf | 11 ++++++++ CN_PROD/PD_management_zone/__main.tf | 26 ++++++++++++++++++ 34 files changed, 572 insertions(+) create mode 100644 CN_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_CallServices.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_LocationServices.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_MyBMWMINIAppAsAProduct.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_NavigationServices.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_Teleservices.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf create mode 100644 CN_PREPROD/PD_management_zone/PD_eSIMandStaticVehicleDataServices.tf create mode 100644 CN_PREPROD/PD_management_zone/__main.tf create mode 100644 CN_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf create mode 100644 CN_PROD/PD_management_zone/PD_AutomotiveSecurity.tf create mode 100644 CN_PROD/PD_management_zone/PD_CallServices.tf create mode 100644 CN_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf create mode 100644 CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf create mode 100644 CN_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf create mode 100644 CN_PROD/PD_management_zone/PD_LocationServices.tf create mode 100644 CN_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf create mode 100644 CN_PROD/PD_management_zone/PD_MyBMWMINIAppAsAProduct.tf create mode 100644 CN_PROD/PD_management_zone/PD_NavigationServices.tf create mode 100644 CN_PROD/PD_management_zone/PD_RemoteMessagingServices.tf create mode 100644 CN_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf create mode 100644 CN_PROD/PD_management_zone/PD_Teleservices.tf create mode 100644 CN_PROD/PD_management_zone/PD_VehicleDataCollection.tf create mode 100644 CN_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf create mode 100644 CN_PROD/PD_management_zone/PD_eSIMandStaticVehicleDataServices.tf create mode 100644 CN_PROD/PD_management_zone/__main.tf diff --git a/CN_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf b/CN_PREPROD/PD_management_zone/PD_AccountManagementConnectedCar.tf new file mode 100644 index 0000000..60663eb --- /dev/null +++ b/CN_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-CASA\",\"compass-id:am-cloud\",\"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-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-LPS\", \"compass-id:AM-TACS\", \"compass-id:AM-UI\", \"compass-id:rsu-adapter\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf b/CN_PREPROD/PD_management_zone/PD_AutomotiveSecurity.tf new file mode 100644 index 0000000..ef5433c --- /dev/null +++ b/CN_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\",\"compass-id:ASBC-SBB\",\"compass-id:ASBCSWLSEC2\",\"compass-id:PSdZ-Checker\",\"compass-id:SCB\",\"compass-id:SCC\",\"compass-id:SWAG\",\"compass-id:SWLSEC2-Checker\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-AFW-POC\",\"compass-id:ASBC-AFWSFA-POC\",\"compass-id:ASBC-AFWSTM-POC\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-SMACC\",\"compass-id:CAC\",\"compass-id:CAC-AGENT\",\"compass-id:SMC2-BL\",\"compass-id:SMC2-KEY-TRK\",\"compass-id:SMC2-RT\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DFP\",\"compass-id:DFPH\",\"compass-id:OCLISc2v\",\"compass-id:OCLISocsp\",\"compass-id:P2X\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-MFSCS\",\"compass-id:STM\",\"compass-id:ts-wlupdater\",\"compass-id:TVP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-HAL\",\"compass-id:ASBC-NGTP\",\"compass-id:ASBS\",\"compass-id:HPAuth\",\"compass-id:STS\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_CallServices.tf b/CN_PREPROD/PD_management_zone/PD_CallServices.tf new file mode 100644 index 0000000..3f6832e --- /dev/null +++ b/CN_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\",\"compass-id:PISA-EVENT-HANDLER\",\"compass-id:PISA-RUNTIME\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-Voice\",\"compass-id:CRS\",\"compass-id:CRSA\",\"compass-id:EPL\",\"compass-id:EPM\",\"compass-id:VOICEGW\",\"compass-id:VOICEGW-ADMIN\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BASE\",\"compass-id:CCC\",\"compass-id:RSA\",\"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\",\"compass-id:HVD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ACDS\",\"compass-id:APPCALL\",\"compass-id:B2V-NGTP\",\"compass-id:ECALLGW\",\"compass-id:ECS\",\"compass-id:EVNS2\",\"compass-id:EVNS2T\",\"compass-id:NGTP-CS\",\"compass-id:XCS\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf b/CN_PREPROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf new file mode 100644 index 0000000..53caed8 --- /dev/null +++ b/CN_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-if56\",\"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(\"Component:am-store\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Concat\",\"compass-id:Connected-Catalog\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/CN_PREPROD/PD_management_zone/PD_ConnectedUserProfileServices.tf new file mode 100644 index 0000000..36725a7 --- /dev/null +++ b/CN_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\",\"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\",\"compass-id:DPP\",\"compass-id:PERSEUS\",\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf b/CN_PREPROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf new file mode 100644 index 0000000..82cf6aa --- /dev/null +++ b/CN_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\",\"compass-id:festive-mode\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCIS-Download\",\"compass-id:Geolocator\",\"compass-id:intelligent-reminder\",\"compass-id:news-next\",\"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\",\"compass-id:ID5\",\"compass-id:ID5-APP\",\"compass-id:ID5-EXT\",\"compass-id:ISE-BEV\",\"compass-id:ISE-CDR\",\"compass-id:ISE-EML\",\"compass-id:ISE-GEN2\",\"compass-id:ISE-ID7\",\"compass-id:ISE-INP\",\"compass-id:ISE-IPA\",\"compass-id:ISE-LIS\",\"compass-id:ISE-LOC\",\"compass-id:ISE-MCL\",\"compass-id:ISE-NEWS\",\"compass-id:ISE-PAR\",\"compass-id:ISE-RSL\",\"compass-id:ISE-VPS\",\"compass-id:ISE-VSD\",\"compass-id:tmpp-admin-ui\",\"compass-id:tmpp-manifest\",\"compass-id:tmpp-web-proxy\",\"compass-id:UPS\",\"compass-id:WEA\",\"compass-id:WEA-ID5\",\"compass-id:WEA-IN-MAP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:cm-config\",\"compass-id:cm-gracenote\",\"compass-id:cm-spotify\",\"compass-id:cm-ximalaya\",\"compass-id:OED\",\"compass-id:OED-CN\",\"compass-id:OEG\",\"compass-id:OEG-CN\",\"compass-id:OEO\",\"compass-id:OEO-CN\",\"compass-id:OEP\",\"compass-id:OEP-CN\",\"compass-id:OES\",\"compass-id:OES-CN\",\"compass-id:OET\",\"compass-id:OET-CN\",\"compass-id:shortvideo\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_LocationServices.tf b/CN_PREPROD/PD_management_zone/PD_LocationServices.tf new file mode 100644 index 0000000..1d90274 --- /dev/null +++ b/CN_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\",\"compass-id:ERCR\",\"compass-id:ERTP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:LOS-FTS\",\"compass-id:potholes-reader\",\"compass-id:potholes-service\",\"compass-id:sc-reader\",\"compass-id:sc-service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:C2B-BS\",\"compass-id:GCS\",\"compass-id:LOS-CHA\",\"compass-id:LOS-CHA-CNV\",\"compass-id:LOS-JOY\",\"compass-id:LOS-MOD\",\"compass-id:LOS-MSC\",\"compass-id:LOS-OPS\",\"compass-id:LOS-PAR\",\"compass-id:LOS-PER\",\"compass-id:LOS-REF\",\"compass-id:RES-PAR\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf b/CN_PREPROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf new file mode 100644 index 0000000..728c428 --- /dev/null +++ b/CN_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\",\"compass-id:ms-hdmap-map-viewer\",\"compass-id:ms-hdmap-mci-adapter\",\"compass-id:ms-hdmap-mci-downloader\",\"compass-id:ms-hdmap-nds-downloader\",\"compass-id:ms-hdmap-qc-bl\",\"compass-id:ms-hdmap-qc-checks\",\"compass-id:ms-hdmap-tile-delivery\",\"compass-id:ms-hdmap-tile-generator\",\"compass-id:ms-hdmap-vehicle-mock\",\"compass-id:mupi-backend\",\"compass-id:MUPI-BE\",\"compass-id:mupi-cloud-discovery-service\",\"compass-id:mupi-cloud-dumm-adapter-service\",\"compass-id:mupi-cloud-hd-adapter-service\",\"compass-id:mupi-cloud-import-service\",\"compass-id:mupi-cloud-integration-service\",\"compass-id:mupi-cloud-joynr-adapter-class-service\",\"compass-id:mupi-cloud-joynr-adapter-service\",\"compass-id:mupi-cloud-stats-service\",\"compass-id:mupi-cockpit\",\"compass-id:mupi-gateway\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GNSS API Gateway\",\"compass-id:gnss-reader\",\"compass-id:gnss-service\",\"compass-id:ms-3dp-rc\",\"compass-id:tc-app\",\"compass-id:tc-service\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_MyBMWMINIAppAsAProduct.tf b/CN_PREPROD/PD_management_zone/PD_MyBMWMINIAppAsAProduct.tf new file mode 100644 index 0000000..8211e0c --- /dev/null +++ b/CN_PREPROD/PD_management_zone/PD_MyBMWMINIAppAsAProduct.tf @@ -0,0 +1,7 @@ +resource "dynatrace_management_zone" "PD_MyBMWMINIAppAsAProduct" { + name = "PD_MyBMWMINIAppAsAProduct" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:destination-composite-service\")" + } +} \ No newline at end of file diff --git a/CN_PREPROD/PD_management_zone/PD_NavigationServices.tf b/CN_PREPROD/PD_management_zone/PD_NavigationServices.tf new file mode 100644 index 0000000..3388d86 --- /dev/null +++ b/CN_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\",\"compass-id:RTTI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DM\",\"compass-id:eRoute\",\"compass-id:NaaS\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf b/CN_PREPROD/PD_management_zone/PD_RemoteMessagingServices.tf new file mode 100644 index 0000000..22cc04a --- /dev/null +++ b/CN_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\",\"compass-id:FMC\",\"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\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf b/CN_PREPROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf new file mode 100644 index 0000000..190dff6 --- /dev/null +++ b/CN_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\",\"compass-id:SFA-OH\",\"compass-id:SFA-OTA\",\"compass-id:SFA-S\",\"compass-id:SFA-TS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:comfy-agent-registry\",\"compass-id:comfy-cockpit\",\"compass-id:comfy-management\",\"compass-id:comfy-orchestration\",\"compass-id:NOP-Admin\",\"compass-id:NOP-Archive\",\"compass-id:NOP-Provisioning\",\"compass-id:NOP-Trigger\",\"compass-id:SCM\",\"compass-id:SCMA\",\"compass-id:VPS-Admin\",\"compass-id:VPS-Archive\",\"compass-id:VPS-Monitor\",\"compass-id:VPS-Prov\",\"compass-id:VPS-Trigger\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APR\",\"compass-id:APR-NPM\",\"compass-id:APR-Portal\",\"compass-id:APR-Registry\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ZAS\",\"compass-id:ZDI\",\"compass-id:ZFUS-MP-GENERATOR\",\"compass-id:ZIP\",\"compass-id:zis\",\"compass-id:ZMP\",\"compass-id:ZOS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:FRE\",\"compass-id:FRS\",\"compass-id:MPG\",\"compass-id:QMC\",\"compass-id:RCM\",\"compass-id:RCP\",\"compass-id:RCS\",\"compass-id:RDC\",\"compass-id:RDH\",\"compass-id:RES\",\"compass-id:RLM\",\"compass-id:RMO\",\"compass-id:RNB App\",\"compass-id:RNP\",\"compass-id:RPP\",\"compass-id:RSA Admin GUI\",\"compass-id:RSA Testbench GUI\",\"compass-id:RTE\",\"compass-id:RTS\",\"compass-id:RVC\",\"compass-id:RVE\",\"compass-id:RVI\",\"compass-id:RVS\",\"compass-id:RVT\",\"compass-id:rwd\",\"compass-id:tdp\",\"compass-id:uvm\",\"compass-id:vjm\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_Teleservices.tf b/CN_PREPROD/PD_management_zone/PD_Teleservices.tf new file mode 100644 index 0000000..0cda2c4 --- /dev/null +++ b/CN_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\",\"compass-id:PDMUpdater\",\"compass-id:ts-ena-ui\",\"compass-id:WLManager\",\"compass-id:WLUpdater\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BCallService\",\"compass-id:CAS-SPM\",\"compass-id:CAS-STM\",\"compass-id:DiagService\",\"compass-id:ESHAD\",\"compass-id:patchcampaign\",\"compass-id:RTCAD\",\"compass-id:RTCHandler\",\"compass-id:RTCService\",\"compass-id:ts-bcallhandler\",\"compass-id:ts-cts-ui\",\"compass-id:ts-pat-ui\",\"compass-id:TSRD\",\"compass-id:ts-rtc-ui\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:RSURService\",\"compass-id:SCallService\",\"compass-id:SEAM\",\"compass-id:ts-asc\",\"compass-id:TSBGService\",\"compass-id:TSBM\",\"compass-id:TS-CCM-DI\",\"compass-id:TSCS\",\"compass-id:TSDD\",\"compass-id:TSMR\",\"compass-id:TS-PFFS\",\"compass-id:TSSB-BT\",\"compass-id:TSSB-BTI\",\"compass-id:TSSB-TSP\",\"compass-id:TS-SDI\",\"compass-id:ts-tyredi\",\"compass-id:ts-tyrewf\",\"compass-id:TTBS\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf b/CN_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf new file mode 100644 index 0000000..126c3e4 --- /dev/null +++ b/CN_PREPROD/PD_management_zone/PD_VehicleDataCollection.tf @@ -0,0 +1,19 @@ +resource "dynatrace_management_zone" "PD_VehicleDataCollection" { + name = "PD_VehicleDataCollection" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SRManager\",\"compass-id:TSMB\",\"compass-id:TSR-CH\",\"compass-id:TSR-CMA\",\"compass-id:TSR-DD\",\"compass-id:TSR-ICC\",\"compass-id:TSR-VU\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:TOL\",\"compass-id:TOL MGU\",\"compass-id:TOL-TSSB\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CMCS\",\"compass-id:ERDCDC2FCD\",\"compass-id:ERDDISP\",\"compass-id:ERDFCDUDS\",\"compass-id:ERDMGR\",\"compass-id:ERDPROC\",\"compass-id:ERDXFCDFCD\",\"compass-id:XFCD Cockpit\",\"compass-id:XFCD Configuration\",\"compass-id:XFCDAnonymizer\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCG\",\"compass-id:CSI\",\"compass-id:CSU\",\"compass-id:LSCFSU\",\"compass-id:LSCHR\",\"compass-id:LSCJHWO\",\"compass-id:LSCJR\",\"compass-id:LSCKC\",\"compass-id:LSCMM\",\"compass-id:LSCOC\",\"compass-id:LSCOG\",\"compass-id:LSCWO\",\"compass-id:tripCollection\",\"compass-id:vdc-vcs\",\"compass-id:VHCJR\",\"compass-id:VHS\",\"compass-id:VJDS\",\"compass-id:VNS\",\"compass-id:VS-API\",\"compass-id:VSFO\",\"compass-id:VSST\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf b/CN_PREPROD/PD_management_zone/PD_VehicleDataConnectivity.tf new file mode 100644 index 0000000..7e2d8ed --- /dev/null +++ b/CN_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\",\"compass-id:B2V-ADC-CLOUD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:JoynrDS\",\"compass-id:UDS\",\"compass-id:UDS Storage Service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-COM-BE\",\"compass-id:B2V-COM-ECHO\",\"compass-id:B2V-COM-FE\",\"compass-id:B2VCOMGCDMCLIENT\",\"compass-id:B2V-NOTS\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/PD_eSIMandStaticVehicleDataServices.tf b/CN_PREPROD/PD_management_zone/PD_eSIMandStaticVehicleDataServices.tf new file mode 100644 index 0000000..49c4992 --- /dev/null +++ b/CN_PREPROD/PD_management_zone/PD_eSIMandStaticVehicleDataServices.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_eSIMandStaticVehicleDataServices" { + name = "PD_eSIMandStaticVehicleDataServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:IDS Admin\",\"compass-id:IDS-SVDS\",\"compass-id:IDS-Sync\",\"compass-id:IDS-WS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:AM-Device\",\"compass-id:CESIM\",\"compass-id:AM-CESIM\",\"compass-id:CESIM Proxy\",\"compass-id:CESIM-TP\",\"compass-id:CESIM-UI\",\"compass-id:EGIM\",\"compass-id:AM-EGIM\",\"compass-id:ESIM-UI\",\"compass-id:MNO-Manager\",\"compass-id:AM-MNO-MANAGER\",\"compass-id:MNOMGR-CU-Jasper\",\"compass-id:MNOMGR-CU-SHA\",\"compass-id:MNOMGR-GD\",\"compass-id:MNOMGR-TMSP\")" + } +} diff --git a/CN_PREPROD/PD_management_zone/__main.tf b/CN_PREPROD/PD_management_zone/__main.tf new file mode 100644 index 0000000..5394f85 --- /dev/null +++ b/CN_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/CN_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf b/CN_PROD/PD_management_zone/PD_AccountManagementConnectedCar.tf new file mode 100644 index 0000000..60663eb --- /dev/null +++ b/CN_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\",\"compass-id:AM-CASA\",\"compass-id:am-cloud\",\"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-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-LPS\", \"compass-id:AM-TACS\", \"compass-id:AM-UI\", \"compass-id:rsu-adapter\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_AutomotiveSecurity.tf b/CN_PROD/PD_management_zone/PD_AutomotiveSecurity.tf new file mode 100644 index 0000000..ef5433c --- /dev/null +++ b/CN_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\",\"compass-id:ASBC-SBB\",\"compass-id:ASBCSWLSEC2\",\"compass-id:PSdZ-Checker\",\"compass-id:SCB\",\"compass-id:SCC\",\"compass-id:SWAG\",\"compass-id:SWLSEC2-Checker\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-AFW-POC\",\"compass-id:ASBC-AFWSFA-POC\",\"compass-id:ASBC-AFWSTM-POC\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-SMACC\",\"compass-id:CAC\",\"compass-id:CAC-AGENT\",\"compass-id:SMC2-BL\",\"compass-id:SMC2-KEY-TRK\",\"compass-id:SMC2-RT\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DFP\",\"compass-id:DFPH\",\"compass-id:OCLISc2v\",\"compass-id:OCLISocsp\",\"compass-id:P2X\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-MFSCS\",\"compass-id:STM\",\"compass-id:ts-wlupdater\",\"compass-id:TVP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ASBC-HAL\",\"compass-id:ASBC-NGTP\",\"compass-id:ASBS\",\"compass-id:HPAuth\",\"compass-id:STS\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_CallServices.tf b/CN_PROD/PD_management_zone/PD_CallServices.tf new file mode 100644 index 0000000..3f6832e --- /dev/null +++ b/CN_PROD/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\",\"compass-id:PISA-EVENT-HANDLER\",\"compass-id:PISA-RUNTIME\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-Voice\",\"compass-id:CRS\",\"compass-id:CRSA\",\"compass-id:EPL\",\"compass-id:EPM\",\"compass-id:VOICEGW\",\"compass-id:VOICEGW-ADMIN\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BASE\",\"compass-id:CCC\",\"compass-id:RSA\",\"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\",\"compass-id:HVD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ACDS\",\"compass-id:APPCALL\",\"compass-id:B2V-NGTP\",\"compass-id:ECALLGW\",\"compass-id:ECS\",\"compass-id:EVNS2\",\"compass-id:EVNS2T\",\"compass-id:NGTP-CS\",\"compass-id:XCS\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf b/CN_PROD/PD_management_zone/PD_ConnectedDriveStoreBackend.tf new file mode 100644 index 0000000..53caed8 --- /dev/null +++ b/CN_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:buffet-if56\",\"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(\"Component:am-store\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:Concat\",\"compass-id:Connected-Catalog\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf b/CN_PROD/PD_management_zone/PD_ConnectedUserProfileServices.tf new file mode 100644 index 0000000..36725a7 --- /dev/null +++ b/CN_PROD/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\",\"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\",\"compass-id:DPP\",\"compass-id:PERSEUS\",\"compass-id:PIABO\",\"compass-id:PIAEP\",\"compass-id:PIAOP\",\"compass-id:PIAPE\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf b/CN_PROD/PD_management_zone/PD_InfotainmentInteractivityServices.tf new file mode 100644 index 0000000..82cf6aa --- /dev/null +++ b/CN_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\",\"compass-id:festive-mode\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCIS-Download\",\"compass-id:Geolocator\",\"compass-id:intelligent-reminder\",\"compass-id:news-next\",\"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\",\"compass-id:ID5\",\"compass-id:ID5-APP\",\"compass-id:ID5-EXT\",\"compass-id:ISE-BEV\",\"compass-id:ISE-CDR\",\"compass-id:ISE-EML\",\"compass-id:ISE-GEN2\",\"compass-id:ISE-ID7\",\"compass-id:ISE-INP\",\"compass-id:ISE-IPA\",\"compass-id:ISE-LIS\",\"compass-id:ISE-LOC\",\"compass-id:ISE-MCL\",\"compass-id:ISE-NEWS\",\"compass-id:ISE-PAR\",\"compass-id:ISE-RSL\",\"compass-id:ISE-VPS\",\"compass-id:ISE-VSD\",\"compass-id:tmpp-admin-ui\",\"compass-id:tmpp-manifest\",\"compass-id:tmpp-web-proxy\",\"compass-id:UPS\",\"compass-id:WEA\",\"compass-id:WEA-ID5\",\"compass-id:WEA-IN-MAP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:cm-config\",\"compass-id:cm-gracenote\",\"compass-id:cm-spotify\",\"compass-id:cm-ximalaya\",\"compass-id:OED\",\"compass-id:OED-CN\",\"compass-id:OEG\",\"compass-id:OEG-CN\",\"compass-id:OEO\",\"compass-id:OEO-CN\",\"compass-id:OEP\",\"compass-id:OEP-CN\",\"compass-id:OES\",\"compass-id:OES-CN\",\"compass-id:OET\",\"compass-id:OET-CN\",\"compass-id:shortvideo\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_LocationServices.tf b/CN_PROD/PD_management_zone/PD_LocationServices.tf new file mode 100644 index 0000000..1d90274 --- /dev/null +++ b/CN_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\",\"compass-id:ERCR\",\"compass-id:ERTP\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:LOS-FTS\",\"compass-id:potholes-reader\",\"compass-id:potholes-service\",\"compass-id:sc-reader\",\"compass-id:sc-service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:C2B-BS\",\"compass-id:GCS\",\"compass-id:LOS-CHA\",\"compass-id:LOS-CHA-CNV\",\"compass-id:LOS-JOY\",\"compass-id:LOS-MOD\",\"compass-id:LOS-MSC\",\"compass-id:LOS-OPS\",\"compass-id:LOS-PAR\",\"compass-id:LOS-PER\",\"compass-id:LOS-REF\",\"compass-id:RES-PAR\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf b/CN_PROD/PD_management_zone/PD_MapServicesAutomatedDriving.tf new file mode 100644 index 0000000..728c428 --- /dev/null +++ b/CN_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\",\"compass-id:ms-hdmap-map-viewer\",\"compass-id:ms-hdmap-mci-adapter\",\"compass-id:ms-hdmap-mci-downloader\",\"compass-id:ms-hdmap-nds-downloader\",\"compass-id:ms-hdmap-qc-bl\",\"compass-id:ms-hdmap-qc-checks\",\"compass-id:ms-hdmap-tile-delivery\",\"compass-id:ms-hdmap-tile-generator\",\"compass-id:ms-hdmap-vehicle-mock\",\"compass-id:mupi-backend\",\"compass-id:MUPI-BE\",\"compass-id:mupi-cloud-discovery-service\",\"compass-id:mupi-cloud-dumm-adapter-service\",\"compass-id:mupi-cloud-hd-adapter-service\",\"compass-id:mupi-cloud-import-service\",\"compass-id:mupi-cloud-integration-service\",\"compass-id:mupi-cloud-joynr-adapter-class-service\",\"compass-id:mupi-cloud-joynr-adapter-service\",\"compass-id:mupi-cloud-stats-service\",\"compass-id:mupi-cockpit\",\"compass-id:mupi-gateway\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:GNSS API Gateway\",\"compass-id:gnss-reader\",\"compass-id:gnss-service\",\"compass-id:ms-3dp-rc\",\"compass-id:tc-app\",\"compass-id:tc-service\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_MyBMWMINIAppAsAProduct.tf b/CN_PROD/PD_management_zone/PD_MyBMWMINIAppAsAProduct.tf new file mode 100644 index 0000000..8211e0c --- /dev/null +++ b/CN_PROD/PD_management_zone/PD_MyBMWMINIAppAsAProduct.tf @@ -0,0 +1,7 @@ +resource "dynatrace_management_zone" "PD_MyBMWMINIAppAsAProduct" { + name = "PD_MyBMWMINIAppAsAProduct" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:destination-composite-service\")" + } +} \ No newline at end of file diff --git a/CN_PROD/PD_management_zone/PD_NavigationServices.tf b/CN_PROD/PD_management_zone/PD_NavigationServices.tf new file mode 100644 index 0000000..3388d86 --- /dev/null +++ b/CN_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\",\"compass-id:RTTI\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:DM\",\"compass-id:eRoute\",\"compass-id:NaaS\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_RemoteMessagingServices.tf b/CN_PROD/PD_management_zone/PD_RemoteMessagingServices.tf new file mode 100644 index 0000000..22cc04a --- /dev/null +++ b/CN_PROD/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\",\"compass-id:FMC\",\"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\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf b/CN_PROD/PD_management_zone/PD_RemoteVehicleConfigurationManagement.tf new file mode 100644 index 0000000..190dff6 --- /dev/null +++ b/CN_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\",\"compass-id:SFA-OH\",\"compass-id:SFA-OTA\",\"compass-id:SFA-S\",\"compass-id:SFA-TS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:comfy-agent-registry\",\"compass-id:comfy-cockpit\",\"compass-id:comfy-management\",\"compass-id:comfy-orchestration\",\"compass-id:NOP-Admin\",\"compass-id:NOP-Archive\",\"compass-id:NOP-Provisioning\",\"compass-id:NOP-Trigger\",\"compass-id:SCM\",\"compass-id:SCMA\",\"compass-id:VPS-Admin\",\"compass-id:VPS-Archive\",\"compass-id:VPS-Monitor\",\"compass-id:VPS-Prov\",\"compass-id:VPS-Trigger\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:APR\",\"compass-id:APR-NPM\",\"compass-id:APR-Portal\",\"compass-id:APR-Registry\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:ZAS\",\"compass-id:ZDI\",\"compass-id:ZFUS-MP-GENERATOR\",\"compass-id:ZIP\",\"compass-id:zis\",\"compass-id:ZMP\",\"compass-id:ZOS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:FRE\",\"compass-id:FRS\",\"compass-id:MPG\",\"compass-id:QMC\",\"compass-id:RCM\",\"compass-id:RCP\",\"compass-id:RCS\",\"compass-id:RDC\",\"compass-id:RDH\",\"compass-id:RES\",\"compass-id:RLM\",\"compass-id:RMO\",\"compass-id:RNB App\",\"compass-id:RNP\",\"compass-id:RPP\",\"compass-id:RSA Admin GUI\",\"compass-id:RSA Testbench GUI\",\"compass-id:RTE\",\"compass-id:RTS\",\"compass-id:RVC\",\"compass-id:RVE\",\"compass-id:RVI\",\"compass-id:RVS\",\"compass-id:RVT\",\"compass-id:rwd\",\"compass-id:tdp\",\"compass-id:uvm\",\"compass-id:vjm\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_Teleservices.tf b/CN_PROD/PD_management_zone/PD_Teleservices.tf new file mode 100644 index 0000000..0cda2c4 --- /dev/null +++ b/CN_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\",\"compass-id:PDMUpdater\",\"compass-id:ts-ena-ui\",\"compass-id:WLManager\",\"compass-id:WLUpdater\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:BCallService\",\"compass-id:CAS-SPM\",\"compass-id:CAS-STM\",\"compass-id:DiagService\",\"compass-id:ESHAD\",\"compass-id:patchcampaign\",\"compass-id:RTCAD\",\"compass-id:RTCHandler\",\"compass-id:RTCService\",\"compass-id:ts-bcallhandler\",\"compass-id:ts-cts-ui\",\"compass-id:ts-pat-ui\",\"compass-id:TSRD\",\"compass-id:ts-rtc-ui\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:RSURService\",\"compass-id:SCallService\",\"compass-id:SEAM\",\"compass-id:ts-asc\",\"compass-id:TSBGService\",\"compass-id:TSBM\",\"compass-id:TS-CCM-DI\",\"compass-id:TSCS\",\"compass-id:TSDD\",\"compass-id:TSMR\",\"compass-id:TS-PFFS\",\"compass-id:TSSB-BT\",\"compass-id:TSSB-BTI\",\"compass-id:TSSB-TSP\",\"compass-id:TS-SDI\",\"compass-id:ts-tyredi\",\"compass-id:ts-tyrewf\",\"compass-id:TTBS\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_VehicleDataCollection.tf b/CN_PROD/PD_management_zone/PD_VehicleDataCollection.tf new file mode 100644 index 0000000..126c3e4 --- /dev/null +++ b/CN_PROD/PD_management_zone/PD_VehicleDataCollection.tf @@ -0,0 +1,19 @@ +resource "dynatrace_management_zone" "PD_VehicleDataCollection" { + name = "PD_VehicleDataCollection" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:SRManager\",\"compass-id:TSMB\",\"compass-id:TSR-CH\",\"compass-id:TSR-CMA\",\"compass-id:TSR-DD\",\"compass-id:TSR-ICC\",\"compass-id:TSR-VU\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:TOL\",\"compass-id:TOL MGU\",\"compass-id:TOL-TSSB\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CMCS\",\"compass-id:ERDCDC2FCD\",\"compass-id:ERDDISP\",\"compass-id:ERDFCDUDS\",\"compass-id:ERDMGR\",\"compass-id:ERDPROC\",\"compass-id:ERDXFCDFCD\",\"compass-id:XFCD Cockpit\",\"compass-id:XFCD Configuration\",\"compass-id:XFCDAnonymizer\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:CCG\",\"compass-id:CSI\",\"compass-id:CSU\",\"compass-id:LSCFSU\",\"compass-id:LSCHR\",\"compass-id:LSCJHWO\",\"compass-id:LSCJR\",\"compass-id:LSCKC\",\"compass-id:LSCMM\",\"compass-id:LSCOC\",\"compass-id:LSCOG\",\"compass-id:LSCWO\",\"compass-id:tripCollection\",\"compass-id:vdc-vcs\",\"compass-id:VHCJR\",\"compass-id:VHS\",\"compass-id:VJDS\",\"compass-id:VNS\",\"compass-id:VS-API\",\"compass-id:VSFO\",\"compass-id:VSST\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf b/CN_PROD/PD_management_zone/PD_VehicleDataConnectivity.tf new file mode 100644 index 0000000..7e2d8ed --- /dev/null +++ b/CN_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\",\"compass-id:B2V-ADC-CLOUD\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:JoynrDS\",\"compass-id:UDS\",\"compass-id:UDS Storage Service\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:B2V-COM-BE\",\"compass-id:B2V-COM-ECHO\",\"compass-id:B2V-COM-FE\",\"compass-id:B2VCOMGCDMCLIENT\",\"compass-id:B2V-NOTS\")" + } +} diff --git a/CN_PROD/PD_management_zone/PD_eSIMandStaticVehicleDataServices.tf b/CN_PROD/PD_management_zone/PD_eSIMandStaticVehicleDataServices.tf new file mode 100644 index 0000000..49c4992 --- /dev/null +++ b/CN_PROD/PD_management_zone/PD_eSIMandStaticVehicleDataServices.tf @@ -0,0 +1,11 @@ +resource "dynatrace_management_zone" "PD_eSIMandStaticVehicleDataServices" { + name = "PD_eSIMandStaticVehicleDataServices" + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:IDS Admin\",\"compass-id:IDS-SVDS\",\"compass-id:IDS-Sync\",\"compass-id:IDS-WS\")" + } + entity_selector_based_rule { + enabled = true + selector = "type(Service),tag(\"compass-id:AM-Device\",\"compass-id:CESIM\",\"compass-id:AM-CESIM\",\"compass-id:CESIM Proxy\",\"compass-id:CESIM-TP\",\"compass-id:CESIM-UI\",\"compass-id:EGIM\",\"compass-id:AM-EGIM\",\"compass-id:ESIM-UI\",\"compass-id:MNO-Manager\",\"compass-id:AM-MNO-MANAGER\",\"compass-id:MNOMGR-CU-Jasper\",\"compass-id:MNOMGR-CU-SHA\",\"compass-id:MNOMGR-GD\",\"compass-id:MNOMGR-TMSP\")" + } +} diff --git a/CN_PROD/PD_management_zone/__main.tf b/CN_PROD/PD_management_zone/__main.tf new file mode 100644 index 0000000..5394f85 --- /dev/null +++ b/CN_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 = "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