Skip to content

Commit

Permalink
feat: use Athena terraform module (#283)
Browse files Browse the repository at this point in the history
Switch to using the new Athena TF module to create the
database, workgroup and queries.
  • Loading branch information
patheard authored Sep 6, 2022
1 parent 541d9fb commit b166269
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 100 deletions.
12 changes: 11 additions & 1 deletion terragrunt/aws/alarms/athena.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
module "simple" {
source = "github.com/cds-snc/terraform-modules?ref=v3.0.16//athena_access_logs"

athena_bucket_name = module.athena_bucket.s3_bucket_id
waf_access_queries_create = true
waf_access_log_bucket_name = var.cbs_satellite_bucket_name

billing_tag_value = var.billing_code
}

#
# Hold the Athena data
#
module "athena_bucket" {
source = "github.com/cds-snc/terraform-modules?ref=v3.0.13//S3"
source = "github.com/cds-snc/terraform-modules?ref=v3.0.16//S3"
bucket_name = "${var.product_name}-${var.env}-athena-bucket"
billing_tag_value = var.billing_code

Expand Down
6 changes: 0 additions & 6 deletions terragrunt/aws/alarms/sql/athena_waf_all_requests.sql

This file was deleted.

20 changes: 0 additions & 20 deletions terragrunt/aws/alarms/sql/athena_waf_blocked_requests.sql

This file was deleted.

73 changes: 0 additions & 73 deletions terragrunt/aws/alarms/sql/athena_waf_create_table.sql

This file was deleted.

0 comments on commit b166269

Please sign in to comment.