terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

[ISSUE] Issue with databricks UC Storage credentials External locations behaviour

Open acshankar91 opened this issue 1 year ago • 2 comments

Configuration

Terraform { required_providers { databricks = { source = "databricks/databricks" version = "1.38.0" } } }

Expected Behavior

If Storage Credentials and External Locations part of UC Databricks are replicated to secondary UC Databricks using Terraform Provider as above, Provider should support incremental change replications in Storage Credentials and External Locations to secondary during next run.

Actual Behavior

While doing replication to secondary UC Databricks with incremental changes during next run getting error image-2024-4-2_12-36-37-1 image-2024-4-2_12-37-16-1

Steps to Reproduce Create some External Locations and Storage Credentials in primary UC Databricks side and export to secondary UC Databricks for 1st time. 2nd time again replicate the same External Locations and Storage Credentials from primary to secondary Databricks. While importing to the secondary side we get error saying

  • Can not create Storage Credentials, Storage credentials already exists.
  • Can not create External Locations, External Locations already exists.

acshankar91 avatar Apr 03 '24 11:04 acshankar91

@acshankar91 could you confirm whether this is an issue with terraform exporter?

nkvuong avatar Apr 05 '24 11:04 nkvuong

@acshankar91 could you confirm whether this is an issue with terraform exporter?

Hi nkvuong, i think it may be issue with Terraform exporter version, also the dependencies in the flow of creation of objects.

acshankar91 avatar Apr 05 '24 12:04 acshankar91