In this article, we quickly demonstrated how driftctl can use the many Terraform states Terragrunt can generate in slightly different locations than the original Terraform, using patterns to aggregate the right Terraform state files!
Now you know the right command to get the correct results for your use case, you might want to explore the next steps:
- Generate a .driftignore file so you start tracking drifts from scratch (if you have too many unmanaged resources, for example)
- Build your custom driftctl Docker image, so you can easily deploy the full thing as a recurring job, to get alerts when things go wrong!