terraform/configs/testdata/invalid-modules
Alisdair McDiarmid 7ca7b1f0fe configs: Simplify required_providers blocks
We now permit at most one `required_providers` block per module (except
for overrides). This prevents users (and Terraform) from struggling to
understand how to merge multiple `required_providers` configurations,
with `version` and `source` attributes split across multiple blocks.

Because only one `required_providers` block is permitted, there is no
need to concatenate version constraints and resolve them. This allows us
to simplify the structs used to represent provider requirements,
aligning more closely with other structs in this package.

This commit also fixes a semantic use-before-initialize bug, where
resources defined before a `required_providers` block would be unable to
use its source attribute. We achieve this by processing the module's
`required_providers` configuration (and overrides) before resources.

Overrides for `required_providers` work as before, replacing the entire
block per provider.
2020-04-24 13:44:08 -04:00
..
multiple-required-providers configs: Simplify required_providers blocks 2020-04-24 13:44:08 -04:00
override-nonexist-variable Standardise directory name for test data 2019-06-30 10:16:15 +02:00
override-variable-causes-bad-default Standardise directory name for test data 2019-06-30 10:16:15 +02:00
variable-validation-without-optin config: Allow module authors to specify validation rules for variables 2020-01-10 15:23:25 -08:00