4143 reported a regression to the databricks_permissions resource caused by https://github.com/databricks/terraform-provider-databricks/pull/3956. Normally, the ID for this resource when configured for a SQL warehouse is /sql/warehouses/<ID>. However, it seems like at some point in the past, some users may have had an ID of /warehouses/<ID>. It's possible that importing this resource worked like this: when calling the permissions REST API, whether using object type sql/warehouses or warehouses, the API returns permissions for the same resources:
Changes
4143 reported a regression to the
databricks_permissions
resource caused by https://github.com/databricks/terraform-provider-databricks/pull/3956. Normally, the ID for this resource when configured for a SQL warehouse is/sql/warehouses/<ID>
. However, it seems like at some point in the past, some users may have had an ID of/warehouses/<ID>
. It's possible that importing this resource worked like this: when calling the permissions REST API, whether using object typesql/warehouses
orwarehouses
, the API returns permissions for the same resources:This PR modifies the SQL warehouse configuration for
databricks_permissions
to be chosen for instances with an ID of the form/warehouses/...
.Tests
The additional integration test ensures that a resource can be imported with the
/warehouses/<ID>
format.