Our great sponsors
-
docker-terragrunt
Dockerized framework with Terraform, Terragrunt, Python, Make, Docker, Git, and all needed components to easily manage cloud infrastructure.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
terratest
Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
What my problem was originally is that we had a lot of technical debt and drift on our terraform/terragrunt repositories, and tons of leftover modules that haven't been planned in years of missing CI. Instead of going one by one, planning it and checking if it's valid, I built terracove.
Or (with the correct ENV variables and secrets if necessary):
What it does in parallel is basically init/plan/show using terratest on every subdirectory on your repository tree or provided paths. The output is either a JSON summary or a custom made Junit XML test file you can ingest into your tests reader. It took it around 8 minutes to map the entirety of our bloated repository.