opentofu/website
Martin Atkins bfbd00a23c website: Note about using jsonencode/yamlencode in templatefile
It's a common source of errors to try to produce JSON or YAML syntax
using string concatenation via our template language but to miss some
details like correct string escaping, quoting, required commas, etc.

The jsonencode and yamlencode functions are a better way to generate JSON
and YAML, but it's not immediately obvious that both of these functions
are available for use in external templates (via templatefile) too.

Given that questions related to this come up a lot in our community forum
and elsewhere, it seems worth having a documentation section to show the
pattern of having a template that consists only of a single function call.
2019-12-11 12:57:01 -08:00
..
docs website: Note about using jsonencode/yamlencode in templatefile 2019-12-11 12:57:01 -08:00
guides website: Update URLs and name references for Terraform Cloud rebrand 2019-08-16 15:55:29 -07:00
intro website: add yt video to /intro 2019-12-03 15:14:59 -08:00
layouts lang/funcs: Add more trim* functions (#23016) 2019-11-18 08:31:44 -05:00
upgrade-guides states/statefile: Better error messages for some unsupported v3 cases 2019-11-21 09:18:49 -08: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.