s3-access-logs
dod-iac/s3-access-logs/aws
Create resources to help in searching s3 access logs
Usage Creates athena and s3 resources to query s3 access logs S3 bucket for athena query results Athena workgroup, database, and named query to create table * Example queries for use against access logs ``hcl module "s3_access_locs" { source = "dod-iac/s3-access-logs/aws" target_bucket = "log-bucket-name" logging_bucket = "log-bucket-name" tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` Setup After applying the resources there is one manual step. Run the create_table` named query to create the table to query against. Terraform Version Terraform 0.13. Pin module version to ~> 1.0.0 . Submit pull-requests to master branch. Terraform 0.11 and 0.12 are not supported. License This project constitutes a work of the United States Government and
| Name | Type | Description | Default |
|---|---|---|---|
| logging_bucket | string | The S3 bucket to send logs for query results bucket | required |
| target_bucket | string | The S3 bucket to target for s3 access logs. | required |
| target_prefix | string | The S3 prefix to target for s3 access logs | "s3" |
| bytes_scanned_cutoff_per_query | number | Integer for the upper data usage limit (cutoff) for the amount of bytes a single | -1 |
| database_name | string | The name of an existing database. If none exists then a new athena database will | "" |
| table_name | string | The name of an existing table. If none exists then a new athena database will be | "" |
| tags | map(string) | A mapping of tags to assign to the resources | {
"Automation": "Terraform"
} |
| project | string | Unique name for the set of logs being analyzed | "s3-access-logs" |
Terraform module for building and deploying Next.js apps to AWS. Supports SSR (L
Terraform module for provisioning an EKS cluster
Terraform module to generate well-formed JSON documents (container definitions)
Terraform module that provision an S3 bucket to store the terraform.tfstate file