cancel
Showing results for 
Search instead for 
Did you mean: 
Data Governance
Join discussions on data governance practices, compliance, and security within the Databricks Community. Exchange strategies and insights to ensure data integrity and regulatory compliance.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we deploy databricks notebooks using databricks asset bundles ( DABs )?

Akash30307
New Contributor II

I gone through resources supported by DABs but cannot find notebooks deployment via DABs. Is it any possible way we can deploy notebooks using DABs? What the alternative approach?

4 REPLIES 4

szymon_dybczak
Esteemed Contributor III

Hi @Akash30307 ,

Assets bundles are desinged for that purpose. They bundle your code like notebooks, python files and let you define various resource like clusters, jobs etc.
Here you will find example how to deploy DAB with notebook and use then in job via notebook task:

Develop a job with Databricks Asset Bundles | Databricks on AWS

Hi Szymon, Thanks for your info.


I understand, we can deploy job using DABs. Sorry, I might have understood it wrongly. I just want to deploy only the notebooks. I don't want to deploy along with job or any other but only pure notebooks. Is it possible via DABs? If so, could you please share insights on that? I seen below document "notebooks" resource is not mentioned and also did not see any examples saying only notebooks deployment. So, bit confused.

https://docs.databricks.com/aws/en/dev-tools/bundles/resources 

szymon_dybczak
Esteemed Contributor III

Hi @Akash30307 m

Yes. When you initialize DAB it creates certain structures of folders for you. Anything in src folders will be deployerd. So you can put your source code there, in your case notebook files and they will be deployed to workspace.

Sai_Ponugoti
Databricks Employee
Databricks Employee

Hi @Akash30307 ,
Thank you for your question!

You can also deploy notebooks via our Terraform provider.
You can find more information on our website.
You can also work with databricks_notebook and databricks_notebook_paths data sources.

Sai Ponugoti