opentofu/website
Martin Atkins 3268a7eaba command/output: Raw output mode
So far the output command has had a default output format intended for
human consumption and a JSON output format intended for machine
consumption.

However, until Terraform v0.14 the default output format for primitive
types happened to be _almost_ a raw string representation of the value,
and so users started using that as a more convenient way to access
primitive-typed output values from shell scripts, avoiding the need to
also use a tool like "jq" to decode the JSON.

Recognizing that primitive-typed output values are common and that
processing them with shell scripts is common, this commit introduces a new
-raw mode which is explicitly intended for that use-case, guaranteeing
that the result will always be the direct result of a string conversion
of the output value, or an error if no such conversion is possible.

Our policy elsewhere in Terraform is that we always use JSON for
machine-readable output. We adopted that policy because our other
machine-readable output has typically been complex data structures rather
than single primitive values. A special mode seems justified for output
values because it is common for root module output values to be just
strings, and so it's pragmatic to offer access to the raw value directly
rather than requiring a round-trip through JSON.
2020-12-09 10:10:02 -08:00
..
docs command/output: Raw output mode 2020-12-09 10:10:02 -08:00
guides website: Decommission derelict "guides" section, move some content to "intro" 2020-10-26 18:21:29 -07:00
intro website/intro: remove outdated examples section (#26932) 2020-11-16 14:05:17 -05:00
layouts website: Remove registry docs (adopted into terraform-website) 2020-11-18 11:12:35 -08:00
upgrade-guides Upgrade guide link fix (#27124) 2020-12-03 15:21:58 -04:00
README.md website: A note about where the root parts of the website live now 2017-06-27 14:40:13 -07:00

Terraform Documentation

This directory contains the portions of the Terraform website that pertain to the core functionality, excluding providers and the overall configuration.

The files in this directory are intended to be used in conjunction with the terraform-website repository, which brings all of the different documentation sources together and contains the scripts for testing and building the site as a whole.