terraform/configs/testdata/warning-files
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
..
depends_on.tf
ignore_changes.tf
object-optional-attrs-experiment.tf configs: Experimental support for optional object type attributes 2020-10-12 10:12:28 -07:00
provider_ref.tf
provisioner_keyword.tf
redundant_interp.tf configs: Deprecate nested redundant interpolations 2020-09-22 13:40:08 -04:00
variable_type_quoted.tf configs: Warn for deprecated interpolation and quoted type constraints 2019-11-13 07:55:55 -08:00
vendor_provisioners.tf Add deprecation warning for vendor provisioners 2020-08-26 10:46:04 -04:00