1. In CI/CD, terraform plan in pipeline helps…
- Skip all tests
- Review infra changes before apply
- Delete remote state
- Remove IAM
Source: doonops-curriculum/iac-devops--pipeline-overview.md
Doonops lesson
Run terraform plan in GitHub/CodeBuild before human approves apply.
Every Git push → robot runs plan → human reads → approve apply.
Every Git push → robot runs plan → human reads → approve apply.
Every Git push → robot runs plan → human reads → approve apply.
Layman words first, then technical detail — read slowly
Never long-lived AWS keys in repo — OIDC/IR role preferred in real companies.
Modern HCL — names are examples, not from any third-party course
# see project files
Terraform runs on your computer — copy this HCL into a folder, then follow the local lab steps below.
Full implementation folder — copy all files, then run terraform commands
Copy every file below into one folder — same as a real repo module. Then run the local lab steps.
Suggested folder: Suggested path: ~/doonops-terraform/23-cicd/
buildspec.ymlSee file purpose in the code belowversion: 0.2
phases:
install:
commands:
- terraform version
pre_build:
commands:
- terraform init -input=false
build:
commands:
- terraform validate
- terraform plan -input=false -out=tfplan
post_build:
commands:
- echo "Apply only from approved pipeline stage"
artifacts:
files:
- tfplan
2–3 quick questions before the next module
Quick check — did this module stick?
1. In CI/CD, terraform plan in pipeline helps…