Skip to main content

How to automate transformation deployment using toolkit [Contributed by SLB]

  • September 18, 2025
  • 1 reply
  • 28 views

Akash Sood
MVP
Forum|alt.badge.img+3

This document describes how the script for the above-described use case is set up for use.

  1. We mention the output path where we want to store the transformation yaml files Two paths are mentioned as we want to classify them based on target - classic-transformation for timeseries, asset hierarchy, events etc. whereas custom-sdm-transformation for all data model related transformation
  1. There is also an option to exclude transformations related to a list of data models (exclude_dm_ext_ids)
  2. There is also exclude_trans_ext_id, which lists transformations that don't need to be dumped/moved
  1. Then there is a custom logic added to exclude transformations starting with 'core_', which was added for project specific requirements (Core data model related transformations were being maintained manually as they were written for SDM to CDM migration and were being maintained manually)
  1. We use the pull command to pull transformations, which is mentioned the below screenshot
  1. To parameterize the data model version in target, we replaced them with variable {{legacy-sdm-version}}, {{legacy-sdm-tol-version}} and {{legacy-sdm-net-version}}, which are parameters mentioned in the config files of toolkit to maintain latest data model versions being deployed. Below two functions are written for the same
  1. Similarly, in sql queries, we replace hard coded data model version being used in cdf_data_models() inbuilt function with the parameter {{legacy-sdm-version}}. Below two functions are written for the same
  1. For adding authentication part, the below code snippet is written

 

1 reply

Aditya Kotiyal
MVP
Forum|alt.badge.img+5

Great to see SLB CDF SMEs helping and sharing experiences with the community. Great work ​@Akash Sood .