Iceberg Terraform Provider

Clone this repo:
  1. 2a7f865 Reuse existing schema IDs if proper (#144) by Alex Stephen · 13 days ago main
  2. fb6181b Reject Field ID Reuse (#135) by Alex Stephen · 14 days ago
  3. dc03a31 feat(provider): add auth.sigv4.profile (#168) by Al Johri · 14 days ago
  4. 7da208e build(deps): bump go.opentelemetry.io/otel/trace from 1.46.0 to 1.47.0 (#177) by dependabot[bot] · 14 days ago
  5. 09d7f98 build(deps): bump the gomod_updates group across 1 directory with 3 updates (#174) by dependabot[bot] · 14 days ago

Iceberg Terraform Provider

This Terraform and OpenTofu provider allows you to manage Iceberg resources, such as namespaces and tables.

Installation

The provider is published as apache/iceberg on both the Terraform Registry and the OpenTofu Registry. Declare it in your configuration and run terraform init (or tofu init):

terraform {
  required_providers {
    iceberg = {
      source = "apache/iceberg"
    }
  }
}

The official Apache releases are source releases, published with signatures and checksums under apache-iceberg-terraform-<version>/ on downloads.apache.org/iceberg. In line with the ASF Release Distribution Policy, the provider binaries on the Terraform and OpenTofu registries are convenience builds made from those source releases.

Supported Data Sources

  • iceberg_namespace: Read metadata for an existing namespace (catalog properties).
  • iceberg_table: Read metadata for an existing table (schema, partition spec, sort order, and catalog properties).
  • iceberg_tables: List table names in a namespace (catalog discovery).

Supported Resources

  • iceberg_namespace: Manage Iceberg namespaces and their properties.
  • iceberg_table: Manage Iceberg tables, including schema definitions and properties.

See the provider documentation for examples and attribute reference.

Local Development

Prerequisites

Building the Provider

To build the provider and install it locally , run the build.sh script:

./build.sh

This script will:

  1. Compile the provider binary.
  2. Create a local provider registry at ./terraform-plugins.
  3. Provide a configuration snippet for your ~/.terraformrc (or terraform.rc) file to point Terraform to this local registry.

Get in Touch