Skip to main content
1 min read

stackgen drift

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​

CommandDescription
detectDetect drift in infrastructure

Flags​

FlagDescription
-h, --helpHelp 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.