eject
Take permanent, sole ownership of your infrastructure files when you no longer want the CLI managing them, while keeping everything running in AWS.
What it does
Section titled “What it does”- Asks for explicit confirmation (defaulting to “No”); declining cancels with no changes.
- Strips deploy-stack metadata from your local files: removes the
# deploy-stack generated infrastructureheader and thedefault_tags { tags = { ManagedBy = "deploy-stack" } }block fromterraform/main.tf, and removes the# deploy-stack backupsblock from.gitignore. - Recursively deletes every
*.bak.*backup file in the project (skippingnode_modulesand.git). - Leaves your infrastructure fully operational as raw, standalone Terraform. As a final step, run
terraform applyinsideterraform/so AWS syncs state and removes the liveManagedBytags. - Emits a
project_ejectedtelemetry event. This cannot be undone.
npx deploy-stack ejectThis command accepts no CLI flags. The confirmation prompt is interactive.