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: 

How to use Terraform to add Git provider credentials to a workspace in order to use service principal for CI/CD

noimeta
Contributor III

Hi,

I'm very new to Terraform. Currently, I'm trying to automate the service principal setup process using Terraform.

Following this example, I successfully created a service principal and an access token. However, when I tried adding databricks_git_credential to the main.tf, I'm a bit confused with the provider configuration. It seems I have to use the service principal access token for databricks_git_credential creation, but to create the service principal, I have to use another configuration.

Could we update the configuration along the way? Do I have to create another file? Any suggestion how to do this?

0 REPLIES 0

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