-
Notifications
You must be signed in to change notification settings - Fork 472
Description
Configuration
resource "databricks_connection" "connections" {
provider = databricks.workspace
for_each = var.connections
name = each.value.name
comment = each.value.comment
connection_type = each.value.connection_type
options = {
jdbc_url = each.value.jdbc_url
host = each.value.host
role = try(each.value.role, null)
warehouse = try(each.value.warehouse, null)
}
}
# Copy-paste your Terraform configuration here
Expected Behavior
terraform import should work for databricks_connection
Actual Behavior
Not working
Steps to Reproduce
The provider returned a resource missing an identifier during ImportResourceState. This is generally a bug in the resource implementation for import. Resource import code should not call d.SetId("") or create an empty ResourceData. If the resource is missing, instead return an error. Please report this to the provider developers.
17:08:38 06:38:36.497 ERROR terraform invocation failed in ./.terragrunt-cache/ILE2FSIjt7YugOzPpkcRcrnnUM0/Fr2mR8qDIouuLjn2MqmMPFUFQWo
17:08:38 06:38:36.497 ERROR error occurred:
17:08:38
17:08:38 * Failed to execute "terraform import databricks_connection.connections["eda_external_glue_connection"] c3fd916a-55a7-468c-8cfd-50aa17a3c05c -no-color" in ./.terragrunt-cache/ILE2FSIjt7YugOzPpkcRcrnnUM0/Fr2mR8qDIouuLjn2MqmMPFUFQWo
17:08:38
17:08:38 Error: The provider returned a resource missing an identifier during ImportResourceState. This is generally a bug in the resource implementation for import. Resource import code should not call d.SetId("") or create an empty ResourceData. If the resource is missing, instead return an error. Please report this to the provider developers.