Some of my athena tables are configured to partition based on a column called partition_date. When viewing the DDL of those tables, I see a number of table properties.
TBLPROPERTIES (
'classification'='json',
'compressionType'='gzip',
'groupFiles'='inPartition',
'projection.enabled'='true',
'projection.partition_date.format'='yyyy-MM-dd',
'projection.partition_date.range'='2020-07-01,2025-12-31',
'projection.partition_date.type'='date',
'typeOfData'='file')
My question is: how do I implement these table properties using terraform script?
I have tried parameters field but no luck and received error from terraform planning:
│ Error: Reference to undeclared resource
│
│ on glue.tf line 19, in resource "aws_glue_catalog_table" "gu_play_and_earn_prod":
│ 19: projection.partition_date.type = "date"
│
│ A managed resource "projection" "partition_date" has not been declared in the root module.