LinuxCommandLibrary

terraform-output

Display Terraform output values

TLDR

Show all outputs

$ terraform output
copy
Show specific output
$ terraform output [name]
copy
Output as JSON
$ terraform output -json
copy
Get raw value
$ terraform output -raw [name]
copy

SYNOPSIS

terraform output [options] [name]

DESCRIPTION

terraform output displays output values from Terraform state. Shows values defined in output blocks. Useful for scripting and passing values to other tools.

PARAMETERS

-json

Output as JSON.
-raw
Output raw string value.
-state path
Read from state file.
-no-color
Disable color output.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community