You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you create a unity catalog metastore with data access settings, it's impossible to destroy the resource after create because data access depends on metastore and by deleting data access first, an error is triggered because the data access is used by the metastore.
deleting the metastore, will also delete the related data access, so ideally terraform should skip the destroy of data access and destroy the metastore directly, or we should at least have a flag to enforce this behaviour. The only solution is to delete metastore from UI and then call destroy again.
deleting the metastore, will also delete the related data access, so ideally terraform should skip the destroy of data access and destroy the metastore directly, or we should at least have a flag to enforce this behaviour. The only solution is to delete metastore from UI and then call destroy again.
Actual Behavior
it's impossible to destroy the resource after create because data access depends on metastore and by deleting data access first, an error is triggered because the data access is used by the metastore.
Error: cannot delete metastore data access: Storage credential 'databricks-metastore' cannot be deleted because it is configured as this metastore's root credential. Please update the metastore's root credential before attempting deletion.
Steps to Reproduce
create a terraform template as shown above. apply, then destroy
Terraform and provider versions
1.52.0
Is it a regression?
no
Debug Output
Important Factoids
Would you like to implement a fix?
no
The text was updated successfully, but these errors were encountered:
Hi there,
if you create a unity catalog metastore with data access settings, it's impossible to destroy the resource after create because data access depends on metastore and by deleting data access first, an error is triggered because the data access is used by the metastore.
deleting the metastore, will also delete the related data access, so ideally terraform should skip the destroy of data access and destroy the metastore directly, or we should at least have a flag to enforce this behaviour. The only solution is to delete metastore from UI and then call destroy again.
Configuration
Expected Behavior
deleting the metastore, will also delete the related data access, so ideally terraform should skip the destroy of data access and destroy the metastore directly, or we should at least have a flag to enforce this behaviour. The only solution is to delete metastore from UI and then call destroy again.
Actual Behavior
it's impossible to destroy the resource after create because data access depends on metastore and by deleting data access first, an error is triggered because the data access is used by the metastore.
Error: cannot delete metastore data access: Storage credential 'databricks-metastore' cannot be deleted because it is configured as this metastore's root credential. Please update the metastore's root credential before attempting deletion.
Steps to Reproduce
create a terraform template as shown above. apply, then destroy
Terraform and provider versions
1.52.0
Is it a regression?
no
Debug Output
Important Factoids
Would you like to implement a fix?
no
The text was updated successfully, but these errors were encountered: