From 5ccae84371926d9b09835493bd51dc40c2e0016d Mon Sep 17 00:00:00 2001 From: robertsweetman Date: Tue, 19 Dec 2023 11:41:26 +0000 Subject: [PATCH] add partition key --- locals.tf | 3 --- main.tf | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 locals.tf diff --git a/locals.tf b/locals.tf deleted file mode 100644 index a64909b9..00000000 --- a/locals.tf +++ /dev/null @@ -1,3 +0,0 @@ -# locals { -# s3_bucket_id = module.s3-bucket[0].bucket.id # handle invalid reference in storage.location.template parameter reference -# } diff --git a/main.tf b/main.tf index e186ca2b..99888867 100644 --- a/main.tf +++ b/main.tf @@ -332,6 +332,11 @@ resource "aws_glue_catalog_table" "application_lb_logs" { table_type = "EXTERNAL_TABLE" + partition_keys { + name = "day" + type = "string" + } + parameters = { "projection.enabled" = "true" "projection.day.type" = "date"