saurabh18cs
Honored Contributor III
UNDER resources folder you can add these 2 files :
file1.yml
variables:
  my_dynamic_variable:
    description: The name of the application.
    type: string
    default: app_name
  environment:
    description: The environment in which the application is running.
    type: string
    default: dev
file2.yml
 
<this is just an example extracted from entire bundle yml file>
tasks:
  - task_key: my_pipeline_task
    pipeline_task:
      pipeline_id: ${resources.pipelines.my_pipeline.id}
    parameters:
      environment: ${var.environment}
      app_name: ${var.my_dynamic_variable}
 
databricks.yml can include folder having those 2 files specified above:
include:
  - ./resources/*.yml


# In your DLT pipeline notebook/file
environment = spark.conf.get("environment")
dynamic_var = spark.conf.get("app_name")