mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-11 15:55:46 +02:00
terraform output: add page (#13254)
Co-authored-by: spageektti <git@spageektti.cc>
This commit is contained in:
parent
d3652e046f
commit
bea05eb475
1 changed files with 20 additions and 0 deletions
20
pages/common/terraform-output.md
Normal file
20
pages/common/terraform-output.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# 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`
|
Loading…
Add table
Reference in a new issue