WarFox / terraform-iceberg

Setup iceberg tables in AWS using terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Iceberg

Setup iceberg tables with terraform

This is a POC for setting up iceberg tables using avro schemas definition in aws.

Run

  1. Authenticate AWS
  2. cd terraform/
  3. terraform init
  4. terraform plan
  5. terraform apply
  6. terraform destroy

Why?

Terraform does not support creating iceberg tables with partitions, because this functionality is not available in the upstream Go SDK.

Refer the following files to see how you can use null_resource with local-exec provsioner to create and destroy ICEBERG tables using DDLs.

  1. https://github.com/WarFox/terraform-iceberg/blob/main/terraform/iceberg_table_with_partition.tf
  2. https://github.com/WarFox/terraform-iceberg/blob/main/resources/ddl/iceberg_table_with_partition.sql

Caution

Important: Terraform docs warns to use provisioners as a last resort. Use this is as a stop gap until the feature is directly available. Run this as a separate script as you may need to run terraform destroy to make changes to the table.

References

About

Setup iceberg tables in AWS using terraform


Languages

Language:HCL 85.0%Language:Shell 7.6%Language:Smarty 7.4%