Most of our team uses Databricks predominantly via its web UI. As we start to migrate some of our Databricks resources to be managed via Terraform, it will be difficult for people looking at the web UI to tell whether the resource they're looking at -- whether a job, cluster, or something else -- is meant to be managed directly in the UI or via Terraform.
Several resources, like jobs, allow you to tag them:
However, you have to do this for each resource.
There is no way to set at the Terraform provider level that you would like all resources, where possible, to be tagged with the same set of default tags like terraform: project-name. Default tags would make it easy for us to differentiate Terraform-managed resources from the rest in the Databricks UI.
Attempted Solutions
As far as I can tell, there is no way to specify default tags at the provider level.
Use-cases
Most of our team uses Databricks predominantly via its web UI. As we start to migrate some of our Databricks resources to be managed via Terraform, it will be difficult for people looking at the web UI to tell whether the resource they're looking at -- whether a job, cluster, or something else -- is meant to be managed directly in the UI or via Terraform.
Several resources, like jobs, allow you to tag them:
However, you have to do this for each resource.
There is no way to set at the Terraform provider level that you would like all resources, where possible, to be tagged with the same set of default tags like
terraform: project-name
. Default tags would make it easy for us to differentiate Terraform-managed resources from the rest in the Databricks UI.Attempted Solutions
As far as I can tell, there is no way to specify default tags at the provider level.
Proposal
Roughly mirror the
default_tags
feature of the AWS Terraform provider.References
Related: https://github.com/databricks/terraform-provider-databricks/issues/2236