How to use Terraform to add Git provider credentials to a workspace in order to use service principal for CI/CD
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2022 03:42 AM
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?
Labels:
0 REPLIES 0

