Section: CI and Automation

Apply for CI

bash
bash
terraform apply -auto-approve -input=false
Explanation

Apply non-interactively in automation.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing CI and Automation
Plan without color
Disable ANSI color codes for cleaner CI logs.
OpenIn sheetbashsame section
Init for CI
Avoid interactive backend/provider prompts in automation.
OpenIn sheetbashsame section
Select or create workspace
Common automation pattern for ephemeral or environment-specific workspaces.
OpenIn sheetbashsame section
Save plan as pipeline artifact
Persist both binary and JSON plan outputs for later review or policy checks.
OpenIn sheetbash2 tag match
Custom TF_DATA_DIR in CI
Isolate Terraform local data in ephemeral build environments.
OpenIn sheetbash2 tag match
Basic validation step
Common fast feedback step before plan/apply.
OpenIn sheetbash2 tag match