diff --git a/athena.tf b/athena.tf index 154233e..6b6b510 100644 --- a/athena.tf +++ b/athena.tf @@ -611,6 +611,10 @@ resource "aws_cloudformation_stack" "sbeacon_terms_index_stack" { { Name = "term" Type = "string" + }, + { + Name = "_projectname" + Type = "string" } ] } diff --git a/lambda/indexer/generate_query_index.py b/lambda/indexer/generate_query_index.py index b36e612..fc02178 100644 --- a/lambda/indexer/generate_query_index.py +++ b/lambda/indexer/generate_query_index.py @@ -9,5 +9,5 @@ bucket_count = 50 ) AS -SELECT id, term, kind FROM "{table}"; +SELECT id, term, _projectname, kind FROM "{table}"; """ diff --git a/shared_resources/python-modules/python/shared/athena/common.py b/shared_resources/python-modules/python/shared/athena/common.py index 3461846..e8a01f0 100644 --- a/shared_resources/python-modules/python/shared/athena/common.py +++ b/shared_resources/python-modules/python/shared/athena/common.py @@ -46,6 +46,7 @@ ENV_ATHENA.ATHENA_RUNS_TABLE, ENV_ATHENA.ATHENA_ANALYSES_TABLE, ENV_ATHENA.ATHENA_TERMS_TABLE, + ENV_ATHENA.ATHENA_TERMS_INDEX_TABLE, }