Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linguinecode/terraform-aws-athena-lb-logs
A terraform module that sets up Athena for querying and analyzing LB Access Logs
https://github.com/linguinecode/terraform-aws-athena-lb-logs
Last synced: 24 days ago
JSON representation
A terraform module that sets up Athena for querying and analyzing LB Access Logs
- Host: GitHub
- URL: https://github.com/linguinecode/terraform-aws-athena-lb-logs
- Owner: LinguineCode
- License: mit
- Created: 2018-10-31T18:44:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-09T19:29:54.000Z (about 4 years ago)
- Last Synced: 2024-10-24T11:49:45.349Z (2 months ago)
- Language: Smarty
- Homepage:
- Size: 3.91 KB
- Stars: 6
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-aws-athena-lb-logs
A terraform module that creates resources to be able to query Load Balancer Access Logs via Athena according to this guide: .
## Features
1. Creates an Athena Database
1. Creates an Athena Named Query that creates the table with the documented schema## Usage
### Step 1
```
module "athena-lb-logs" {
source = "github.com/solsglasses/terraform-aws-athena-lb-logs.git""name = "mylbaccesslogs"
s3_bucket_name = "${module.s3_bucket.s3_bucket_id}"
}
```### Step 2
1. Go to the Athena console and click on Saved Queries
1. Click the new saved query that is named `-create-table` and Run it. You only have to do it once.
1. That's all, try a query `select * from lb_logs limit 100;`## Outputs