stackgen drift
The stackgen drift command enables Drift detection on your IaC and compares your current infrastructure state with the desired state defined in your IaC.
It identifies resources that have been created, updated, or deleted outside of your IaC management.
Usage
stackgen drift [command]
Available commands
| Command | Description |
|---|---|
detect | Detect drift in infrastructure |
Flags
| Flag | Description |
|---|---|
-h, --help | Help for drift. |
Global flags
See Global flags for --project, --output, --interactive, --log, --stackgen-home, and other options.
Subcommands
detect
Drift detection compares live resources to Terraform definitions so you can spot changes outside IaC. Use the CLI or the StackGen UI to review results.