Interview Prep/CI/CD/Rapid-Fire Commands

Rapid-fire: Terraform commands in a CI pipeline.

IntermediateProductionRapid-Fire Commands
Answer
terraform fmt -check -recursive
terraform init -input=false -lockfile=readonly
terraform validate
terraform plan -input=false -lock-timeout=5m -out=tfplan
terraform show -json tfplan | conftest test -
terraform apply -input=false tfplan
All CI/CD questions

More on Rapid-Fire Commands