cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

databricks Asset Bundle

tejaswi24
New Contributor


i have come accross a documentation on asset bundles long back whcih states that when you type
databricks bundle init
it gives us option to choose a project type. But i see the below error when i do that i see the below error

tejaswi24_0-1727696851777.png

is there a way, i can take inputs from from commandline from template. 

 

6 REPLIES 6

gchandra
Valued Contributor II

@gchandra Thankyou for the response, but the default-python is not asking any input parameters. It is directly creating a sample my_project folder. I asked for a ay to customize inputs from user for choosing. Do you see a way to do this.

gchandra
Valued Contributor II

Keeping Automation in mind, DAB helps you with custom Templates for customized Inputs. 

https://docs.databricks.com/en/dev-tools/bundles/templates.html#define-user-prompt-variables



~

tejaswi24
New Contributor

@gchandra so does that mean there is no way that bundle support custom project name and project type when we do init

gchandra
Valued Contributor II

you can use the --config-file parameter and pass all the values.

 



~

gchandra
Valued Contributor II

Create a conf.json with the values

{"project_name":"gc","include_notebook":"no","include_dlt":"no","include_python":"yes"}

 and call your DAB int this way

databricks bundle init default-python --config-file conf.json


~

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