LinuxCommandLibrary

terraform-output

Export structured data about your Terraform resources.

TLDR

With no additional arguments, output will display all outputs for the root module

$ terraform output
copy


Output only a value with specific name
$ terraform output [name]
copy


Convert the output value to a raw string (useful for shell scripts)
$ terraform output -raw
copy


Format the outputs as a JSON object, with a key per output (useful with jq)
$ terraform output -json
copy

Copied to clipboard