In Databricks Runtime 13.3 and above, you can add libraries and init scripts to the allowlist in UC so that users can leverage these artifacts on compute configured with shared access mode.
resource "databricks_artifact_allowlist" "init_scripts" {
artifact_type = "INIT_SCRIPT"
artifact_matcher {
artifact = "/Volumes/inits"
match_type = "PREFIX_MATCH"
}
}
The following arguments are required:
artifact_type
- The artifact type of the allowlist. Can be INIT_SCRIPT
, LIBRARY_JAR
or LIBRARY_MAVEN
. Change forces creation of a new resource.One or more artifact_matcher
blocks with the following arguments:
artifact
- The artifact path or maven coordinate.match_type
- The pattern matching type of the artifact. Only PREFIX_MATCH
is supported.In addition to all arguments above, the following attributes are exported:
metastore_id
- ID of the parent metastore.created_at
- Time at which this artifact allowlist was set.created_by
- Identity that set the artifact allowlist.In addition to all arguments above, the following attributes are exported:
id
- ID of the artifact allow list in form of metastore_id|artifact_type
.This resource can be imported by name:
terraform import databricks_artifact_allowlist.this '<metastore_id>|<artifact_type>'
The following resources are used in the same context: