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 error-terraform.exe": file does not exist

alluarjun
New Contributor

Hi,

I am getting below error while I am deploying databricks bundle using azure devops release

 

 
2024-07-07T03:55:51.1199594Z Error: terraform init: exec: "xxxx\\.databricks\\bundle\\dev\\terraform\\xxxx\\.databricks\\bundle\\dev\\bin\\terraform.exe": file does not exist
2024-07-07T03:55:51.1286802Z 
 
6 REPLIES 6

Rishabh_Tiwari
Databricks Employee
Databricks Employee

Hi @alluarjun ,

Thank you for reaching out to our community! We're here to help you. 

To ensure we provide you with the best support, could you please take a moment to review the response and choose the one that best answers your question? Your feedback not only helps us assist you better but also benefits other community members who may have similar questions in the future.

If you found the answer helpful, consider giving it a kudo. If the response fully addresses your question, please mark it as the accepted solution. This will help us close the thread and ensure your question is resolved.

We appreciate your participation and are here to assist you further if you need it!

Thanks,

Rishabh

BNG_FGA
New Contributor II

Hi Databricks team, any update on this issue? I'm experiencing the same issue. Our development VDI is isolated so databricks cli cannot download then necessary Terraform files. We are therefore forced to download them, have them installed manually. We've followed most of the steps but are stuck at this error. Any help, advise, guide is more then welcome. 
PS.  Feedback: PLEASE create 2 version of the installation Online and Offline, this will save us a lot of time.

Thanks.

Regards, Fabian

ankitkansal
New Contributor II

Is this ever solved, we are also facing the same issue.

BNG_FGA
New Contributor II

Hi @ankitkansal , we were able to solve this by going 'offline'. This means that we setup our Development environments to search for the Terraform binary (.exe) with help of system environment variables. https://learn.microsoft.com/en-us/azure/databricks/dev-tools/bundles/airgapped-environment
Not easy as many of the instructions were made for Linux OS and we use Windows OS.
Make sure you take the latest version of Terraform binary, Databricks Terraform provider and Databricks CLI.
Azure advise is to use their Container but as we dont have AKS we had to take a different approach.
Regards,
Fabian

ankitkansal
New Contributor II

We are also running the windows runner with bash and we tried setting up environment variables and it simply does not works ๐Ÿ˜ž

Did you use PowerShell to setup the variables or bash export to set-up ? Or is there any other way to set the variables.

databricks simply does not finds the terraform executable when calling bundle deploy command...

BNG_FGA
New Contributor II

Using Git Bash for bash execution and to setup variables we did this by going to control panel -> system -> environment varibales

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