1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:42:08 +02:00
tldr/pages/common/terraform-output.md
Jack Duggan bea05eb475
terraform output: add page (#13254)
Co-authored-by: spageektti <git@spageektti.cc>
2024-07-10 23:42:03 +02:00

545 B

terraform output

Export structured data about your Terraform resources. More information: https://developer.hashicorp.com/terraform/cli/commands/output.

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

terraform output

  • Output only a value with specific name:

terraform output {{name}}

  • Convert the output value to a raw string (useful for shell scripts):

terraform output -raw

  • Format the outputs as a JSON object, with a key per output (useful with jq):

terraform output -json