Interview Prep/Terraform/Workflow and CLI

What is `terraform console` useful for?

BeginnerConceptWorkflow and CLI
Answer

It is a REPL that evaluates expressions against current config and state, handy for testing functions and for expressions before committing them.

$ terraform console
> cidrsubnet("10.0.0.0/16", 8, 3)
"10.0.3.0/24"
> [for s in ["a","b"] : upper(s)]
All Terraform questions Roadmap: Terraform

More on Workflow and CLI