cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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 II

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
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.