tofu output
tofu output [-raw | -json] [NAME]
Risk: Safe
What it does
Prints the outputs the blueprint shared, read from the state file.
When to use it
After apply, when you or a script needs a built value.
Example
$ tofu outputEvery output, name = value.
$ tofu output -raw stall_nameJust one value, no quotes. Good for scripts.
$ tofu output -jsonEvery output as JSON, for other programs.
Learn it in: Outputs · Official docs