From 3d77ece15e68ebbf133ad1a55f62b05fe4ff90f9 Mon Sep 17 00:00:00 2001 From: Xuanli Date: Tue, 22 Oct 2024 12:11:14 +0800 Subject: [PATCH] SCRUM-173 edit terraform for athena table fields --- infrastructure/main.tf | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/infrastructure/main.tf b/infrastructure/main.tf index bda5296..ac5343e 100644 --- a/infrastructure/main.tf +++ b/infrastructure/main.tf @@ -532,23 +532,27 @@ resource "aws_glue_catalog_table" "athena_table_time" { type = "string" } columns { - name = "age" + name = "eventType" type = "string" } columns { - name = "eventType" + name = "timestamp" type = "string" } columns { - name = "section" + name = "sectionID" type = "string" } columns { - name = "event" + name = "unitID" type = "string" } columns { - name = "timestamp" + name = "lessonID" + type = "string" + } + columns { + name = "event" type = "string" } columns { @@ -592,24 +596,24 @@ resource "aws_glue_catalog_table" "athena_table_attempts" { type = "string" } columns { - name = "age" + name = "eventType" type = "string" } columns { - name = "eventType" + name = "timestamp" type = "string" } columns { - name = "section" + name = "sectionID" type = "string" } columns { - name = "event" + name = "quizID" type = "string" } columns { - name = "timestamp" - type = "string" + name = "questionNo" + type = "int" } columns { name = "attempts"