Use Driftctl to Detect Infra Drift
Use Driftctl to detect drift in your your infrastructure. This snippet generates a html report to show coverage and drift figures of the target.
For multiple states, you’ll need to adapt this to provide more --from
paths to ensure all state files are used to identify coverage.
|
|
Optionally, you can adjust to recursively scan the state file of an entire bucket (say if using Terragrunt to store in special key prefixes).
- Change to
--from "tfstate+s3://mybucket/myprefix"
without requiring the full path to a single tfstate file. - Recursively search if in many subfolders with:
**/*.tfstate
.
Webmentions