Skip to content

Latest commit

 

History

History

athena_access_logs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

athena_access_logs

Creates an Athena database, work group and saved queries for examining WAF ACL and Load Balancer access logs.

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_athena_database.logs resource
aws_athena_named_query.lb_create_table resource
aws_athena_named_query.waf_all_requests resource
aws_athena_named_query.waf_blocked_requests resource
aws_athena_named_query.waf_create_table resource
aws_athena_workgroup.logs resource
aws_caller_identity.current data source
aws_region.current data source

Inputs

Name Description Type Default Required
athena_bucket_name (Required) The name of the S3 bucket Athena will use to hold its data. string n/a yes
athena_database_name (Optional, default access_logs) The name Athena database to create. string "access_logs" no
athena_workgroup_name (Optional, default logs) The name Athena workgroup to create. string "logs" no
billing_tag_key (Optional, default CostCentre) The name of the billing tag string "CostCentre" no
billing_tag_value (Required) The value of the billing tag string n/a yes
lb_access_log_bucket_name (Optional, default null) S3 bucket name of the load balancer's access logs. string null no
lb_access_queries_create (Optional, default false) Create the Athena queries for a load balancer's access logs. If true, you must specify a value for lb_access_log_bucket_name. bool false no
waf_access_log_bucket_name (Optional, default null) S3 bucket name of the WAF's access logs. string null no
waf_access_queries_create (Optional, default false) Create the Athena queries for a WAF ACL's access logs. If true, you must specify a value for waf_access_log_bucket_name. bool false no

Outputs

No outputs.