Skip to content

babbel/terraform-aws-athena

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

147 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Athena

This module creates resources for querying with Athena.

The resources are: an Athena workgroup and an S3 bucket to keep the workgroup's data. No table schema is created. This has to be done manually by AWS console (cd. https://docs.aws.amazon.com/athena/latest/ug/creating-tables.html).

The bucket uses default server-side encryption with Amazon S3-Managed Keys.

For example a DML query creating a table supporting the ALB log format is provided by this documentation.

Example

module "alb-athena-example" {
  source  = "babbel/athena/aws"
  version = "~> 3.0"

  name             = "alb-logs-example-production"
  workgroup_bucket = "athena-workgroup-alb-logs-example-production"

  resource_specific_tags = {
    s3_bucket = {
      owner = "athena"
    }
  }
}

About

Terraform module creating a Glue table, an Athena workgroup and an S3 bucket for the workgroup

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages