terraform show

The command that prints the current state, or the contents of a saved plan file, in readable or JSON form.

In more detail

After a destroy, terraform show reports that the state is empty. With -json and a plan file it produces the machine-readable plan that policy tools such as OPA evaluate.

Example

terraform show -json tfplan > plan.json

Related terms

Taught in

References

Certification courses