How to Use tofu console to Test OpenTofu Expressions
Test any OpenTofu expression at the tofu console prompt, with your variables and local values, before you put it in a file.
- DevOps
- OpenTofu
Test any OpenTofu expression at the tofu console prompt, with your variables and local values, before you put it in a file.
Input variables come from outside; local values are worked out inside the configuration. See both in a tiny OpenTofu example, and which one to use when.
Part 5 builds the Bookshop’s book list from a variable with a local value, a heredoc template and a conditional, lists titles with for and splat expressions, and tries them in tofu console.