MCPInstall

materialize-terraform-provider

Using the Materialize Terraform provider to manage Materialize resources declaratively. Covers clusters, sources (Kafka, Postgres, MySQL, SQL Server), sinks (Kafka, Iceberg), connections, materialized views, indexes, tables, roles, grants, secrets, network policies, and cloud-only resources (users, SSO, SCIM, app passwords). Use this skill whenever the user asks about writing Terraform for Materialize, creating or configuring Materialize resources with Terraform, importing existing Materialize objects into Terraform state, configuring the Materialize provider for Cloud or self-managed, setting up RBAC or grants via Terraform, creating connections or sources in Terraform, or troubleshooting Terraform plan/apply issues with Materialize resources. Also trigger when the user mentions materializecluster, materializesourcekafka, materializeconnectionpostgres, or any other materialize resource type.

Installs
117
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/materializeinc/agent-skills --skill materialize-terraform-provider
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads materialize-terraform-provider automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Materialize Terraform Provider

The MaterializeInc/materialize Terraform provider manages Materialize resources declaratively. It works with both Materialize Cloud (SaaS) and self-managed deployments.

This skill deliberately does not duplicate the per-resource argument reference. The provider auto-generates complete documentation for every resource and data source from its schema, and that is the source of truth. This skill tells you where that reference lives and carries only the knowledge the generated docs do not: provider setup, cross-resource patterns, import workflows, and gotchas.

Where the Authoritative Reference Lives

The generated docs are in the provider repository and on the Terraform Registry:

File naming is mechanical, so you can construct the path for any resource without a catalog:

You needRead this file in the provider repo
Resource materialize_<name>docs/resources/<name>.md
Data source materialize_<name>docs/data-sources/materialize_<name>.md
Provider argumentsdocs/index.md
Migration guidesdocs/guides/ (e.g., materialize_source_table.md)

For example, materialize_source_kafka is documented in docs/resources/source_kafka.md. Every generated page includes a full argument reference, attribute reference, import syntax, and usually an example.

Never guess resource arguments. Read the generated doc for the resource before writing configuration. When the provider is installed locally, terraform providers schema -json gives the exact schema as ground truth.

Provider Configuration

Materialize Cloud (SaaS)

provider "materialize" {
  password       = var.materialize_password  # app password
  default_region = "aws/us-east-1"
}

Self-Managed

provider "materialize" {
  host     = "materialized"
  port     = 6875
  username = "materialize"
  database = "materialize"
  password = var.mz_password
  # Use "require" (or stricter, e.g. "verify-full") against any TLS-enabled
  # deployment. "disable" is only appropriate for a local, non-TLS instance.
  sslmode  = "require"
}

OIDC/SSO Authentication (Self-Managed)

provider "materialize" {
  host     = "materialized"
  port     = 6875
  username = var.oidc_username
  password = var.oidc_id_token
  database = "materialize"
  options = {
    oidc_auth_enabled = "true"
  }
}

All arguments have environment variable equivalents: MZ_HOST, MZ_PORT, MZ_USER, MZ_DATABASE, MZ_PASSWORD, MZ_SSLMODE, MZ_DEFAULT_REGION.

Important: Self-managed mode does not support Frontegg-dependent resources (app passwords, users, SSO, SCIM). Those only work against Materialize Cloud.

Resource Map

A category map of what exists, so you know what to look up. Names only; read the generated doc for arguments.

  • Compute: materialize_cluster (materialize_cluster_replica is deprecated, use materialize_cluster with size)
  • Namespaces: materialize_database, materialize_schema
  • Connections: materialize_connection_{kafka,postgres,mysql,sqlserver,aws,ssh_tunnel,confluent_schema_registry,aws_privatelink,iceberg_catalog}
  • Sources: materialize_source_{kafka,postgres,mysql,sqlserver,load_generator}
  • Source tables (the recommended model, tables defined separately from sources): materialize_source_table_{kafka,postgres,mysql,sqlserver,webhook}
  • Sinks: materialize_sink_{kafka,iceberg}
  • Views and tables: materialize_materialized_view, materialize_view, materialize_index, materialize_table, materialize_type
  • Security: materialize_role, materialize_secret, materialize_network_policy, materialize_grant_system_privilege
  • Object grants: one resource per object type (materialize_cluster_grant, materialize_database_grant, materialize_schema_grant, materialize_table_grant, and so on), each taking role_name, privilege, and the object reference. materialize_*_grant_default_privilege variants set privileges on future objects.
  • Cloud-only (Frontegg): materialize_user, materialize_app_password, materialize_sso_*, materialize_scim_*, materialize_region
  • System configuration: materialize_system_parameter, materialize_role_parameter
  • Data sources: read-only lists of the above (clusters, sources, views, roles, etc.), plus materialize_egress_ips, materialize_current_cluster, materialize_current_database. All support region filtering.

Cross-Resource Patterns

These conventions apply across most resources and are easy to miss reading one doc page at a time.

One worked example

Connection, source, and source table compose through nested reference blocks, and credentials come from secrets:

resource "materialize_connection_kafka" "kafka" {
  name              = "kafka_conn"
  security_protocol = "SASL_SSL"
  sasl_mechanisms   = "SCRAM-SHA-256"

  kafka_broker {
    broker = "broker1.example.com:9092"
  }

  sasl_username {
    text = "my_user"
  }

  sasl_password {
    secret {
      name = materialize_secret.kafka_password.name
    }
  }
}

resource "materialize_source_kafka" "events" {
  name         = "events_source"
  cluster_name = materialize_cluster.analytics.name

  kafka_connection {
    name = materialize_connection_kafka.kafka.name
  }
}

resource "materialize_source_table_kafka" "events_table" {
  name  = "events"
  topic = "events-topic"

  source {
    name = materialize_source_kafka.events.name
  }

  format {
    avro {
      schema_registry_connection {
        name = materialize_connection_confluent_schema_registry.sr.name
      }
    }
  }

  envelope {
    upsert = true
  }
}

Conventions

  • Qualified names: most resources expose a read-only qualified_sql_name (database.schema.object). Cross-resource reference blocks take name, database_name, schema_name, with the latter two defaulting to materialize and public.
  • Secret or text: credential arguments accept either inline text or a secret {} reference block, as in the example above. Prefer secrets.
  • Common arguments: most resources support database_name, schema_name, comment, ownership_role, and region; connections additionally support validate.
  • Identify by name: materialize_cluster and materialize_schema support identify_by_name = true, which uses the object name as the state ID instead of the internal Materialize ID. Useful for blue/green deployments where clusters are swapped without changing Terraform state.
  • Write-only arguments (Terraform 1.11+): materialize_role.password_wo and materialize_secret.value_wo (with their *_wo_version counterparts) never enter Terraform state. Regular sensitive values are hidden from plan output but still stored in state.

Importing Existing Resources

terraform import materialize_cluster.my_cluster <region>:<cluster_id>
# or with identify_by_name:
terraform import materialize_cluster.my_cluster <region>:name:<cluster_name>

Each generated resource doc shows the exact import format. Find object IDs in the mz_catalog system tables (mz_clusters, mz_databases, mz_schemas, mz_sources, mz_sinks, mz_views, mz_connections, mz_secrets, mz_roles).

Common Gotchas

  • Cloud vs self-managed: Frontegg-dependent resources (users, SSO, SCIM, app passwords) fail against self-managed instances.
  • Database without public schema: materialize_database does not auto-create a public schema. Create one explicitly if needed.
  • Source table migration: the inline table {} block in source resources is deprecated in favor of separate materialize_source_table_* resources. See docs/guides/materialize_source_table.md in the provider repo.
  • Webhook sources: materialize_source_webhook is legacy. New webhooks should use materialize_table with webhook support, though automated migration is not yet available.
  • Cluster replicas deprecated: use materialize_cluster with size for managed clusters.
  • Secrets in state: values marked sensitive are hidden from plan output but stored in state. Use the write-only (*_wo) arguments on Terraform 1.11+ to keep them out of state entirely.

Keeping This Skill Up to Date

The per-resource reference never goes stale here because it is not duplicated here: the generated docs in the provider repo are always current for the release they ship with. The verified-against value in the frontmatter records the provider commit the curated content (patterns, gotchas, resource map) was last verified against. To refresh:

  1. Diff the provider repository from that commit to current main, focusing on new or deprecated resources, docs/guides/, and CHANGELOG entries.
  2. Update the resource map, patterns, and gotchas here if behavior changed.
  3. Bump verified-against to the new commit SHA.

FAQ

What does the materialize-terraform-provider skill do?

Using the Materialize Terraform provider to manage Materialize resources declaratively. Covers clusters, sources (Kafka, Postgres, MySQL, SQL Server), sinks (Kafka, Iceberg), connections, materialized views, indexes, tables, roles, grants, secrets, network policies, and cloud-only resources (users, SSO, SCIM, app passwords). Use this skill whenever the user asks about writing Terraform for Materialize, creating or configuring Materialize resources with Terraform, importing existing Materialize objects into Terraform state, configuring the Materialize provider for Cloud or self-managed, setting up RBAC or grants via Terraform, creating connections or sources in Terraform, or troubleshooting Terraform plan/apply issues with Materialize resources. Also trigger when the user mentions materializecluster, materializesourcekafka, materializeconnectionpostgres, or any other materialize resource type.

How do I install materialize-terraform-provider?

Run npx skills add https://github.com/materializeinc/agent-skills --skill materialize-terraform-provider in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/materialize-terraform-provider/ (personal) or .claude/skills/materialize-terraform-provider/ (project).

Which AI agents can use materialize-terraform-provider?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is materialize-terraform-provider safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains materialize-terraform-provider?

It is published by materializeinc in materializeinc/agent-skills. It has 117 recorded installs.

More from materializeinc/agent-skills

View all →

materialize-docs

materializeinc/agent-skills

Materialize documentation for SQL syntax, data ingestion, concepts, and best practices. Use when users ask about Materialize queries, sources, sinks, views, or clusters.

Docs & Writing532 installs

mcp-developer-analysis

materializeinc/agent-skills

Open the skill to read its SKILL.md instructions.

AI & Agents289 installs

materialize-dbt

materializeinc/agent-skills

Open the skill to read its SKILL.md instructions.

Data & Databases126 installs

materialize-terraform-self-managed

materializeinc/agent-skills

Terraform modules for deploying self-managed Materialize on AWS (EKS), Azure (AKS), and GCP (GKE). Covers networking, Kubernetes clusters, managed PostgreSQL, object storage, the Materialize operator, and Materialize instance configuration. Use this skill whenever the user asks about deploying self-managed Materialize with Terraform, setting up Materialize infrastructure on any cloud, configuring EKS/AKS/GKE for Materialize, troubleshooting a self-managed deployment, upgrading Materialize instances, customizing Terraform variables for Materialize, or working with the materialize-terraform-self-managed repository. Also trigger when the user mentions Karpenter node pools for Materialize, persist or metadata backend URLs, the Materialize operator Helm chart, CRD versions (v1alpha1 vs v1), rollout strategies, or NVMe swap configuration for Materialize nodes.

DevOps & Cloud118 installs

mz-sql-navigation

materializeinc/agent-skills

Open the skill to read its SKILL.md instructions.

Data & Databases116 installs

mz-deploy

materializeinc/agent-skills

Open the skill to read its SKILL.md instructions.

DevOps & Cloud113 installs

Popular devops & cloud skills

View category →

microsoft-foundry

microsoft/azure-skills

Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, managed harness agent create, GitHub Copilot harness agent, create agent, update agent, add tool to agent, invoke agent, agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure

OfficialDevOps & Cloud579.1K installs

azure-diagnostics

microsoft/azure-skills

Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.

OfficialDevOps & Cloud569.8K installs

azure-prepare

microsoft/azure-skills

Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.

OfficialDevOps & Cloud569K installs

azure-ai

microsoft/azure-skills

Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.

OfficialDevOps & Cloud568.8K installs

azure-deploy

microsoft/azure-skills

Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these.

OfficialDevOps & Cloud568.6K installs

azure-validate

microsoft/azure-skills

Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment.

OfficialDevOps & Cloud568K installs