Skip to content

Commit

Permalink
fix athena query
Browse files Browse the repository at this point in the history
  • Loading branch information
drobinson-moj committed Sep 19, 2023
1 parent 3684f80 commit b3eb56f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,11 @@ resource "aws_athena_database" "lb-access-logs" {
}

resource "aws_athena_named_query" "main" {
count = var.access_logs ? 1 : 0
name = "${var.application_name}-create-table"
database = aws_athena_database.lb-access-logs[0].name
count = var.access_logs ? 1 : 0
name = "${var.application_name}-create-table"
database = aws_athena_database.lb-access-logs[0].name
workgroup = aws_athena_workgroup.lb-access-logs[0].id

query = templatefile(
"${path.module}/templates/create_table.sql",
{
Expand Down

0 comments on commit b3eb56f

Please sign in to comment.