Terraform
Using Terraform with Marmot provides a powerful "Data Catalog as Code" approach, allowing you to define, version control, and automate your data catalog infrastructure, or, integrate with yoru existing infrastructure pipelines.
Getting Started
Provider Configuration
To use the Marmot Terraform provider, add it to your Terraform configuration:
terraform {
required_providers {
marmot = {
source = "marmotdata/marmot"
}
}
}
provider "marmot" {
host = "http://localhost:8080" # Marmot API endpoint
api_key = var.marmot_api_key # API key for authentication
}
Resources
The Marmot provider offers these primary resources:
marmot_asset
- Define data assets in your catalog. See complete documentation and examples here.marmot_lineage
Establish data lineage relationships between assets. See complete documentation and examples here.