terraform/website/docs
Martin Atkins 02576988c1 lang: "try" and "can" functions
These are intended to make it easier to work with arbitrary data
structures whose shape might not be known statically, such as the result
of jsondecode(...) or yamldecode(...) of data from a separate system.

For example, in an object value which has attributes that may or may not
be set we can concisely provide a fallback value to use when the attribute
isn't set:

    try(local.example.foo, "fallback-foo")

Using a "try to evaluate" model rather than explicit testing fits better
with the usual programming model of the Terraform language where values
are normally automatically converted to the necessary type where possible:
the given expression is subject to all of the same normal type conversions,
which avoids inadvertently creating a more restrictive evaluation model
as might happen if this were handled using checks like a hypothetical
isobject(...) function, etc.
2020-01-10 15:23:25 -08:00
..
backends Add a backend-specific env var for the GCS backend. 2019-12-12 03:35:39 -08:00
commands Update docs to reflect current behavior 2020-01-08 16:51:42 -05:00
configuration lang: "try" and "can" functions 2020-01-10 15:23:25 -08:00
configuration-0-11 website: interpolation: clean up more placeholder formatting 2019-11-18 12:32:51 -08:00
import Change wording back to attach, add for_each mention 2019-11-01 11:47:46 -04:00
internals docs/internal/resource-addressing: Omit for_each full splat example for now 2019-08-08 08:56:57 -04:00
modules website: Fix a missing word in the Module Composition page 2019-10-28 15:19:26 -07:00
plugins website: Finish moving "writing custom providers" to /docs/extend/ 2019-01-11 16:36:40 -08:00
providers Change Yandex.Cloud provider name in index 2019-12-20 11:48:40 +03:00
provisioners website: Fix extension_requests argument name for Puppet provisioner 2019-11-06 17:14:12 -08:00
registry website: update publishing modules documentation 2019-12-24 10:22:59 -05:00
state website: Revise sensitive data in state page 2019-12-18 11:39:04 -08:00
cli-index.html.md website: Use canonical URLs for learn.hashicorp.com links 2019-12-20 16:06:00 -08:00