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
Exporter: Support for some Unity Catalog resources (#3242)
* Exporter: initial support for `databricks_catalog`, `databricks_schema` and `databricks_volume`
Initial support for exporting of `databricks_catalog`, `databricks_schema` and
`databricks_volume`. Code currently emits not supported resources, such as,
`databricks_grants`, `databricks_connection`, etc. - support for them will be in the
subsequent PRs.
Also, includes a bit of refactoring of the repeatable code for emitting in the incremental
mode.
Tests will be added separately when we get support for more resources, such as grants, etc.
* Using auxiliary functions in more places
* Added support for `databricks_grants`
* Added support for `databricks_connection`
* Add support for `databricks_share`
* Add support for `databricks_recipient`
* Fix tests
* Add `databricks_registered_model`
* A bit of code refactoring & adding dependencies
* `azure_service_principal.client_secret` is a variable...
* Fix crash when handling variables for resource without `Name` function
* Added support for `databricks_metastore` and `databricks_metastore_assignment`
* Add Ignore function for `databricks_external_location` to ignore automatically created locations
* Don't emit default external location during listing
* Improve reference matching
* Improve reference matching for shares & grants
* Add listing to UC connections, add matching by name to UC objects
* Update docs & fix test
* Refactoring, code coverage improvements
* More improvements for code coverage
* More code coverage
* more coverage
* Support for `databricks_catalog_workspace_binding` (implemented by George & Uma)
Copy file name to clipboardExpand all lines: docs/guides/experimental-exporter.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,12 +79,20 @@ Services are just logical groups of resources used for filtering and organizatio
79
79
*`sql-endpoints` - **listing**[databricks_sql_endpoint](../resources/sql_endpoint.md) along with [databricks_sql_global_config](../resources/sql_global_config.md).
*`storage` - only [databricks_dbfs_file](../resources/dbfs_file.md) referenced in other resources (libraries, init scripts, ...) will be downloaded locally and properly arranged into terraform state.
82
-
*`uc-artifact-allowlist` - exports [databricks_artifact_allowlist](../resources/artifact_allowlist.md) resources for Unity Catalog Allow Lists attached to the current metastore.
83
-
*`uc-system-schemas` - exports [databricks_system_schema](../resources/system_schema.md) resources for the UC metastore of the current workspace.
84
-
*`uc-storage-credentials` - exports [databricks_storage_credential](../resources/storage_credential) resources on workspace or account level.
*`uc-artifact-allowlist` - **listing** exports [databricks_artifact_allowlist](../resources/artifact_allowlist.md) resources for Unity Catalog Allow Lists attached to the current metastore.
83
+
*`uc-catalogs` - **listing**[databricks_catalog](../resources/catalog.md) and [databricks_catalog_workspace_binding](../resources/catalog_workspace_binding.md)
84
+
*`uc-connections` - **listing**[databricks_connection](../resources/connection.md). *Please note that because API doesn't return sensitive fields, such as, passwords, tokens, ..., the generated `options` block could be incomplete!*
*`uc-metastores` - **listing**[databricks_metastore](../resources/metastore.md) and [databricks_metastore_assignment](../resource/metastore_assignment.md) (only on account-level). *Please note that when using workspace-level configuration, only metastores from the workspace's region are listed!*
*`uc-shares` - **listing**[databricks_share](../resources/share.md) and [databricks_recipient](../resources/recipient.md)
90
+
*`uc-system-schemas` - **listing** exports [databricks_system_schema](../resources/system_schema.md) resources for the UC metastore of the current workspace.
91
+
*`uc-storage-credentials` - **listing** exports [databricks_storage_credential](../resources/storage_credential) resources on workspace or account level.
*`users` - [databricks_user](../resources/user.md) and [databricks_service_principal](../resources/service_principal.md) are written to their own file, simply because of their amount. If you use SCIM provisioning, migrating workspaces is the only use case for importing `users` service.
87
-
*`workspace` - [databricks_workspace_conf](../resources/workspace_conf.md) and [databricks_global_init_script](../resources/global_init_script.md)
95
+
*`workspace` - **listing**[databricks_workspace_conf](../resources/workspace_conf.md) and [databricks_global_init_script](../resources/global_init_script.md)
88
96
89
97
## Secrets
90
98
@@ -109,10 +117,14 @@ Exporter aims to generate HCL code for most of the resources within the Databric
109
117
| --- | --- | --- |
110
118
|[databricks_access_control_rule_set](../resources/access_control_rule_set.md)| Yes | No |
111
119
|[databricks_artifact_allowlist](../resources/artifact_allowlist.md)| Yes | No |
0 commit comments