How to Deprecate Variables and Outputs in OpenTofu
Mark a module’s old variable and output as deprecated in OpenTofu, see the warnings in tofu plan, and move callers to the new names.
- DevOps
- OpenTofu
Mark a module’s old variable and output as deprecated in OpenTofu, see the warnings in tofu plan, and move callers to the new names.
Print OpenTofu outputs with tofu output, get one value as plain text with -raw, and get lists and maps as JSON with -json.
Declare outputs in OpenTofu, see them in the plan and after apply, and print values OpenTofu only knows once a resource exists.
Mark a variable and an output as sensitive in OpenTofu, see what plan and apply hide, and learn where the secret is still stored in plain text.
Part 4 moves the Bookshop’s name, featured book and port into OpenTofu input variables, sets new values in terraform.tfvars and prints the address with outputs.