Validate configuration and get machine-readable output?
BeginnerProductionRapid-Fire Commands
Answer
terraform init -backend=false && terraform validate -json
-backend=false lets you validate in CI without credentials.
More on Rapid-Fire Commands
Format all files recursively and fail if anything needs formatting?BeginnerList every resource address under one module?BeginnerShow the attributes of one resource in state?BeginnerPlan with a specific var file and write the plan?BeginnerApply a saved plan and inspect it as JSON first?BeginnerForce the replacement of a single resource?Beginner