Skip to content

cmbrehm/aws-control-tower-cloudtrail-reporting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-control-tower-cloudtrail-reporting

One of the main features of AWS Control Tower is to automate the collection of logs from all dependent accounts across all regions into one single S3 bucket.

This project is an attempt to make those logs useful by utilizing AWS Glue to repartition and convert to Parquet format, so that AWS Athena or like tools can readily query them.

Installation

AWS SAM is the best way to deploy bc it handles inlining the Glue job.

  • Install AWS SAM
  • Create your own S3 bucket in the CT Logs account (SAM won't be able to do this because the CT guardrail currently prevents adding a bucket policy to a bucket)
  • Run command below (replacing with account ID of the CT logs account and the AWS organization ID of your root org)
sam deploy --s3-bucket sam-cli-bucket-123412341234-us-east-1 --stack-name aam-glue --parameter-overrides 'S3BucketName=aws-controltower-logs-123412341234-us-east-1 S3LogsUrl=s3://aws-controltower-logs-123412341234-us-east-1/o-s45wxfxh7h/AWSLogs/'

Out of the Box Functionality

This will create a SNS Topic that will receive an email with a day's worth of Create Events

Customization

TBD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages