databricks / terraform-provider-databricks

Databricks Terraform Provider
https://registry.terraform.io/providers/databricks/databricks/latest
Other
456 stars 393 forks source link

[FEATURE] Create a databricks_artifact_allowlist data resource that can list current config as a part of the allow list #4257

Open wesley84 opened 1 day ago

wesley84 commented 1 day ago

Use-cases

databricks_artifact_allowlist objects do not detect configuration drift such as additional adding libraries and init scripts from multiple workspace to the allowlist in UC plus those outside of IAC. It would be useful to list the existing config for the allowlist to check for configuration drift using a data block

Proposal

Create a databricks_artifact_allowlists data resource that takes a artifact_type of member blocks.

data "databricks_artifact_allowlist" "this" { artifact_type = "INIT_SCRIPT" }

output "artifact_matchers" { value = data.databricks_artifact_allowlist.this.artifact_matchers }