Open satyakrish opened 1 year ago
can somebody look into this one as it is really affecting our deployment and we need a fix/workaround for this.
I have similar issue. My workaround was destroying secret scope manually (using terraform destroy) and then recreating it with new branch.
Configuration
Expected Behavior
1- On running terraform apply for first time all the required resources are provisioned successfully (includes machine learning workspace, databricks workspace, databricks secret scope)
2- Now I wanted to change the name of the machine learning workspace resource. This would cause a destroy and recreate of machine learning workspace resource and also the databricks workspace resource.
3- Expectation, since the databricks secret scope resource is dependant on databricks workspace that should also be destroyed and recreated. So after changing the machine learning workspace name and running terraform plan, it should succeed and show that the following resources should be destroyed and recreated.
a. machine learning workspace b. databricks workspace. c. databricks secret scope
Actual Behavior
After changing machine learning workspace name, terraform plan fails stating
│ Error: cannot read secret scope: default auth: cannot configure default credentials │ │ with databricks_secret_scope.ml, │ on main.tf line 190, in resource "databricks_secret_scope" "ml": │ 190: resource "databricks_secret_scope" "ml" {
Steps to Reproduce