AWS Cloud Operations & Migrations Blog

Gain compliance insights using the open source community for AWS CloudTrail

Does your organization need to maintain visibility into operations in their AWS accounts for security and compliance? Do you need this visibility across multiple AWS accounts and geographic regions? Would you like predefined templates to help you get started with analyzing account activity quickly? Using AWS CloudTrail Lake and our newly announced public repository of sample queries will help meet these objectives and more.

Auditing operations within your AWS Accounts is a crucial component for proper cloud governance, security and compliance best practices. To help meet this objective, we launched AWS CloudTrail in November 2013 as the auditing platform for our customers. Since its inception, millions of customers have adopted this service. Building upon this in January 2022, we released AWS CloudTrail Lake, a managed data lake which enables organizations to aggregate, immutably store, and query events recorded by AWS CloudTrail for auditing, security investigation, and operational troubleshooting. This capability now allows event collection to span across multiple AWS accounts and regions. CloudTrail Lake allows querying of events using SQL query language. While the CloudTrail Lake platform already includes sample queries to allow users to get started quickly with common scenarios, AWS recently announced the launch of the CloudTrail Lake query samples repo.

To run the queries

  1. Navigate to the CloudTrail console
  2. Select Lake in left panel
  3. In the Editor tab, ensure you select your data store and it looks something similar to this
Figure 1. CloudTrail Lake query console

Figure 1. CloudTrail Lake query console

AWS CloudTrail Lake query repo hosts community-sourced sample queries vetted by AWS SME’s (Subject Matter Experts) to further accelerate AWS CloudTrail Lake adoption. The samples are designed to educate AWS customers on how to implement queries to investigate compliance data. There are a wide range of use cases covered as part of these sample queries, few of the examples are listed below:

To get started with AWS CloudTrail Lake, refer to the documentation for guidance. Once your event data store is configured, you can then use the CloudTrail Lake Editor to derive insight from the events aggregated in your CloudTrail Lake. Previously, to analyze event data, you need to write a SQL query from scratch or leverage the sample queries provided on the AWS platform. You can now also refer to the query samples repo hosted on github for additional help. We will continue to review and add new queries to this repo.

About the authors:

Courtney Sampson

Courtney Sampson is a Solutions Architect at AWS. He works alongside Enterprise customers to provide best practices and guidance for building and operating successfully in the cloud.

Anjani Reddy

Anjani is a Specialist Technical Account Manager(Operations) at AWS. She works with Enterprise customers to provide operational guidance to innovate and build a secure, scalable cloud on the AWS platform. Outside of work, she is an Indian classical & salsa dancer, loves to travel and Volunteers for American Red Cross & Hands on Atlanta.

Kirtesh Garg

Kirtesh Garg is an Enterprise Support Lead at AWS with more than 10 years of Information Technology industry experience. He works along with Enterprise customers, providing advocacy and strategic technical guidance to help plan and build solutions using AWS best practices. Outside of work, Kirtesh likes to spend time with family, do long distance running, and explore new places.

Craig Edwards

Craig Edwards is a Cloud Operations Specialist Solutions Architect with the Cloud Foundations team at AWS. He specializes in AWS Config, AWS CloudTrail, AWS Audit Manager and AWS Systems Manager. When he is not building cloud solutions, he enjoys being a Father and electric vehicles.