OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

[Community] Terraform Provider for OpenMetadata — initial release

Open bahram-bahrambeigy-cdt opened this issue 7 months ago • 6 comments

Summary

I've built and published a Terraform provider for OpenMetadata, now live on the HashiCorp Registry:

  • Registry: https://registry.terraform.io/providers/bahram-cdt/openmetadata
  • Source: https://github.com/bahram-cdt/terraform-provider-openmetadata

Motivation

Teams managing OpenMetadata at scale need Infrastructure-as-Code support for governance resources — classifications, tags, glossaries, teams, roles, policies, database services, and domains. Currently there's no official Terraform provider, so these must be configured manually or via custom scripts.

What's supported (v0.1.2)

Resource Create Read Update Delete Import
openmetadata_classification ✅ ✅ ✅ ✅ ✅
openmetadata_tag ✅ ✅ ✅ ✅ ✅
openmetadata_glossary ✅ ✅ ✅ ✅ ✅
openmetadata_glossary_term ✅ ✅ ✅ ✅ ✅
openmetadata_team ✅ ✅ ✅ ✅ ✅
openmetadata_policy ✅ ✅ ✅ ✅ ✅
openmetadata_role ✅ ✅ ✅ ✅ ✅
openmetadata_database_service ✅ ✅ ✅ ✅ ✅
openmetadata_domain ✅ ✅ ✅ ✅ ✅

Tech details

  • Built with terraform-plugin-framework (not the legacy SDK)
  • Uses the OpenMetadata REST API
  • Connection credentials via connection_json (sensitive, write-only)
  • Supports terraform import for all resources
  • UseStateForUnknown plan modifiers on computed fields for clean imports
  • Apache 2.0 licensed

Agent-friendly repository

The repo is designed for AI agent contributions out of the box:

  • AGENTS.md — project conventions, architecture overview, and constraints for AI coding agents
  • Codegen skill (.github/skills/codegen/) — a structured skill with resource templates, field-mapping references, and testing patterns that lets an AI agent scaffold a new resource end-to-end (schema, CRUD, import, tests) from just an OpenMetadata API entity name
  • Consistent resource patterns make it straightforward for agents (or humans) to add new resource types

Open to contribution / adoption

I'd be happy to:

  • Transfer / donate this to the open-metadata org if there's interest in making it official
  • Accept contributions from the community (human or AI-assisted)
  • Extend coverage to more resource types (ingestion pipelines, data products, etc.)

Would the OM team be interested in adopting or collaborating on this?

bahram-bahrambeigy-cdt avatar Apr 10 '26 09:04 bahram-bahrambeigy-cdt

@bahram-cdt I’d love to contribute. I’m particularly interested in extending support for additional resources like ingestion pipelines or improving test coverage. Before I start, is there any priority area you'd recommend?

sarika-03 avatar Apr 10 '26 15:04 sarika-03

Hi @bahram-cdt

Great work on this provider—really valuable for OpenMetadata IaC.

I’d love to contribute, especially on adding new resources (like ingestion pipelines) and improving test coverage. or developer experience like documentation or examples ,add teraform modules ready to use templates,enhance error messages or validation Could you suggest a priority area or issue to start with?

Sngithub12 avatar Apr 11 '26 05:04 Sngithub12

Thanks @sarika-03 and @Sngithub12 — great to see the interest!

The repo is now contribution-ready with a full acceptance test suite and CI gate, so new resources are straightforward to add.

Recommended starting points, in priority order:

  1. New resources — The highest value additions right now are:

    • openmetadata_data_product
    • openmetadata_pipeline_service (ingestion pipeline connection)
    • openmetadata_dashboard_service
    • Each resource needs a matching acceptance test file (CI enforces this automatically)
  2. Examples — Expanding examples/complete.tf.example with realistic end-to-end configurations (e.g. a full data governance setup with teams, roles, policies, and classifications wired together)

  3. Validation — Adding validators for fields like team_type (enum), connection_json (valid JSON), etc. using terraform-plugin-framework-validators

If you want to pick up a resource, drop a comment here so we don't duplicate work. The pattern for adding a new resource is consistent — internal/resources/<name>.go + internal/provider/<name>_resource_test.go — and the existing resources are good templates to follow.

bahram-bahrambeigy-cdt avatar Apr 11 '26 09:04 bahram-bahrambeigy-cdt

Thanks for the guidance!

I’d like to take up openmetadata_data_product as a starting point. I’ll follow the existing resource patterns and include the required acceptance tests.

I can also contribute by improving examples and adding validations (e.g., enums and JSON checks) once this is done.

Sngithub12 avatar Apr 11 '26 10:04 Sngithub12

OpenMetadata Terraform Provider — Collaboration Proposal

I developed and published an Apache 2.0-licensed Terraform provider for OpenMetadata, currently available through the HashiCorp Registry with its source code publicly accessible on GitHub.

My goal is practical impact rather than personal ownership or recognition. I would like to explore collaboration with the OpenMetadata team and community to:

  • Expand support for additional OpenMetadata resources.
  • Strengthen acceptance testing, validation, documentation, and examples.
  • Align development priorities with actual OpenMetadata user needs.
  • Establish transparent review and contribution standards.
  • Determine whether the provider could become an officially supported community or OpenMetadata project.

I welcome technical scrutiny, conflicting perspectives, and shared decision-making. Contributors should receive clear credit for their work, while architectural decisions remain open, documented, and based on maintainability and user value.

If official adoption is appropriate, I remain willing to transfer the provider repository to the open-metadata organization and assist with a responsible transition. I am equally open to another collaboration structure the team considers more suitable.

The intended outcome is simple: make reliable OpenMetadata infrastructure automation broadly available and build it through open, accountable collaboration.

CodexOfVeritas avatar Aug 06 '26 20:08 CodexOfVeritas

I’d like to claim the two remaining priority resources:

  • openmetadata_pipeline_service
  • openmetadata_dashboard_service

I’ll follow the existing resource patterns and include matching acceptance tests for both. I’ll post the implementation PR link here once it is ready.

CodexOfVeritas avatar Aug 06 '26 22:08 CodexOfVeritas