terraform output -json

Category: IaC & Automation

terraform output -json

Print output values as JSON for scripting

Emits every output value as structured JSON, ready to feed into scripts or parse with jq. Ideal for wiring Terraform results into other tools. Related: terraform output -raw instance_ip.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.