trying to determine the best ways to deploy some Iceberg tables into our AWS environment. Has anyone had success via Terraform? I have the following configuration, but Athena complains of lacking metadata location (or will just spin forever) when I query the table I created. If there are better ways that can be automated for deployment, please let me know as this could just be a limit in the provider.
resource "aws_glue_catalog_table" "iceberg-table" {
name = "sales_header"
database_name = "sales"
# Governed tables require this value in uppercase.
parameters = {
"table_type" = "ICEBERG"
"format" = "parquet"
}
storage_descriptor {
location = "s3://${var.s3_raw_bucket}/sales/sales_header/"
columns {
name = "transaction_id"
type = "integer"
comment = ""
}
columns {
name = "sale_date"
type = "integer"
comment = ""
}
columns {
name = "sale_amount"
type = "float"
comment = ""
}
}
}
Tried running the attached code block, presented with errors. Other in my org have hit the same issues, hoping for some wizards in the aether to help.