cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

use include property specified for a particular workspace using DABs

jeremy98
New Contributor II

Hello, community,
Is there a field in the YAML file used with DABs to specify files based on the workspace in use? For example, if I want to deploy notebooks and workflows for staging, they need to be a set of resources that differ from those in production.

2 REPLIES 2

Walter_C
Databricks Employee
Databricks Employee

Yes, you can specify different sets of resources for different environments (such as staging and production) in the YAML file used with Databricks Asset Bundles (DABs). This is achieved using the targets mapping in the databricks.yml file.

https://docs.databricks.com/en/dev-tools/bundles/settings.html#targets 

jeremy98
New Contributor II

Thanks for your response,
I mean actually in databricks.yaml I have this declaration:

include:
#- resources/sync_delta_and_db.job.yml
- resources/sync_data_from_prod_to_staging.job.yml

I don't want to deploy also the first resource in staging environment because it is a workflow strictly needed in production and not in staging... so how can I exclude it without comment that line of code?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group