Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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