terraform console

An interactive prompt where you type expressions and see their values, using the current configuration and state, without changing anything.

In more detail

Use it to test a function, inspect a variable or debug a complicated expression before putting it in a local. It needs an initialised directory.

Example

echo 'upper("hi")' | terraform console

Related terms

Taught in

References

Certification courses