cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we add tags to Unity Catalog through Terraform?

JameDavi_51481
New Contributor III

We use Terraform to manage most of our infrastructure, and I would like to extend this to Unity Catalog. However, we are extensive users of tagging to categorize our datasets, and the only programmatic method I can find for adding tags is to use SQL commands. This completely breaks the declarative model of schema management and forces us to use an imperative model. Is there no way to manage tags through Terraform?

9 REPLIES 9

Kaniz_Fatma
Community Manager
Community Manager

Hi @JameDavi_51481, Terraform does not directly support managing tags in Databricks Unity Catalog.

This is a pretty crucial missing feature, I hope this feedback can be passed along to the relevant teams.

TMD
New Contributor III

Hello,

Is there a plan for the Databricks TF provider support tagging in the near future?

Thanks.

jakubigla
New Contributor II

huge databricks client here: we also need this

TMD
New Contributor III

Hello Databricks folks,

Is there a plan for the Databricks TF provider support tagging of UC catalog objects in the near future?

Tags are critical in multi-tenants environments.

Thanks.

 

JameDavi_51481
New Contributor III

FYI, one of our engineers put up a PR over a month ago during an offsprint to add tag support to the Terraform provider, but had to move on to other projects due to the slow review process. It seems pretty easy for someone from the Databricks team to pick this up and get it over the finish line since multiple companies are requesting it.  https://github.com/databricks/terraform-provider-databricks/pull/3268 

TMD
New Contributor III

Thanks @JameDavi_51481 

Guess extending the suggested changes to cover all applicable UC objects (catalogs, schemas, tables, etc.) would address the concern/request.

Thanks. 

 

TMD
New Contributor III

dbruehlmeier
Contributor

Having tags with terraform would help a lot. Add them on cluster and schema level is crucial. Looking forward for an update about the open PR.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!