terraform/website
Martin Atkins cec4578005 lang/funcs: Experimental "defaults" function
This is a new part of the existing module_variable_optional_attrs
experiment, because it's intended to complement the ability to declare
an input variable whose type constraint is an object type with optional
attributes. Module authors can use this to replace null values (that were
either explicitly set or implied by attribute omission) with other
non-null values of the same type.

This function is a bit more type-fussy than our functions typically are
because it's intended for use primarily with input variables that have
fully-specified type constraints, and thus it uses that type information
to help inform how the defaults data structure should be interpreted.

Other uses of this function will probably be harder today because it takes
a lot of extra annotation to build a value of a specific type if it isn't
passing through a variable type constraint. Perhaps later language
features for more general type conversion will make this more applicable,
but for now the more general form of this problem is better solved other
ways.
2020-11-13 17:27:20 -08:00
..
docs lang/funcs: Experimental "defaults" function 2020-11-13 17:27:20 -08:00
guides website: Decommission derelict "guides" section, move some content to "intro" 2020-10-26 18:21:29 -07:00
intro website: Add note re: private_key configuration to intro (#24463) 2020-10-30 18:09:21 -07:00
layouts lang/funcs: Experimental "defaults" function 2020-11-13 17:27:20 -08:00
upgrade-guides website: Adopt a ton of pages into the "language" layout 2020-10-26 18:19:26 -07:00
README.md website: A note about where the root parts of the website live now 2017-06-27 14:40:13 -07:00

README.md

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.