Skip to main content
⏳ Estimated read time: 1 min read

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 [subcommand] [flag]

Available Subcommand

CommandDescription
detectDetect drift in infrastructure

Flags

FlagDescription
-h, --helpHelp for drift

Subcommand

Here's an overview of the available subcommands:

detect

Drift Detection in StackGen ensures your infrastructure stays aligned with its intended configuration by identifying differences between deployed cloud resources and their Terraform definitions. It helps detect unauthorized changes, configuration mismatches, or outdated components—before creating an appStack and throughout its lifecycle. Accessible via both CLI and the StackGen UI, this feature enables proactive monitoring and remediation with complete visibility.