terraform/internal
Martin Atkins 0bbbb9c64b configs: Experimental support for optional object type attributes
This builds on an experimental feature in the underlying cty library which
allows marking specific attribtues of an object type constraint as
optional, which in turn modifies how the cty conversion package handles
missing attributes in a source value: it will silently substitute a null
value of the appropriate type rather than returning an error.

In order to implement the experiment this commit temporarily forks the
HCL typeexpr extension package into a local internal/typeexpr package,
where I've extended the type constraint syntax to allow annotating object
type attributes as being optional using the HCL function call syntax.
If the experiment is successful -- both at the Terraform layer and in
the underlying cty library -- we'll likely send these modifications to
upstream HCL so that other HCL-based languages can potentially benefit
from this new capability.

Because it's experimental, the optional attribute modifier is allowed only
with an explicit opt-in to the module_variable_optional_attrs experiment.
2020-10-12 10:12:28 -07:00
..
copy deprecate helper/copy 2020-10-08 08:42:16 -04:00
depsfile internal/depsfile: Control how the "hashes" value is formatted 2020-10-09 09:26:23 -07:00
didyoumean didyoumean: move from "helper" to "internal" 2020-10-02 13:35:07 -07:00
earlyconfig remove LegacyProvider (#26433) 2020-10-05 08:33:49 -04:00
getproviders command/init: Read, respect, and update provider dependency locks 2020-10-09 09:26:23 -07:00
initwd deprecate helper/copy 2020-10-08 08:42:16 -04:00
modsdir internal/modsdir: Fix Dropped Error (#24600) 2020-06-04 10:26:26 -04:00
providercache command/init: Mention using the lock file for provider selection 2020-10-09 09:26:23 -07:00
tfplugin5 Add support for provider metadata to modules. (#22583) 2020-03-05 16:53:24 -08:00
typeexpr configs: Experimental support for optional object type attributes 2020-10-12 10:12:28 -07:00