Announcing Audit Trail
Malcolm Matalka
Introduction
We are excited to announce our Audit Trail functionality. Everything you want to know about operations that Terrateam has executed is now at your fingertips.
Background
Infrastructure as Code allows us to explore the changes to our codebase with all of the tools we, as developers, are familiar with. However, not all information is in the codebase, for example test output.
Building Audit Trail
In building Audit Trail, we knew how important it is to developers to have a powerful way to query their Terraform operations. We leverage our Tag Query Language to provide a familiar and robust interface.
How to Use
To use Audit Trail, log in to the Terrateam Console.
Example Queries
created_at:2023-11-01..2023-12-01
- All runs from November 1st 2023 to, but not including, December 1st 2023.created_at:2023-11-01..2023-12-01 and user:joe
- All runs from November 1st 2023 to, but not including, December 1st 2023 done by thejoe
user.created_at:2023-11-01..2023-12-01 and user:joe and (dir:envs/prod/s3 or dir:envs/prod/iam)
- All runs from November 1st 2023 to, but not including, December 1st 2023 done by thejoe
user where the directoriesenvs/prod/s3
orenvs/prod/iam
were executed.
Learn More
Curious how we implemented Audit Trail? See our blog post: Ocaml to PostgreSQL: Building Dynamic Queries with Type Safety.