terraform/configs/testdata
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
..
config-build Standardise directory name for test data 2019-06-30 10:16:15 +02:00
dir-empty move IsEmptyDir to configs package 2019-07-18 13:07:10 -04:00
error-files configs: Hint for a misplaced top-level required_providers block 2020-04-06 09:24:23 -07:00
experiments experiments: a mechanism for opt-in experimental language features 2019-12-10 09:27:05 -08:00
invalid-files config: Allow module authors to specify validation rules for variables 2020-01-10 15:23:25 -08:00
invalid-modules configs: Simplify required_providers blocks 2020-04-24 13:44:08 -04:00
nested-errors ensure we record diagnostics from nested modules 2019-07-16 19:06:48 -04:00
provider-reqs command/providers: refactor with new provider types and functions 2020-04-10 15:08:10 -04:00
providers-explicit-fqn addrs: ImpliedProviderForUnqualifiedType function 2020-04-06 09:24:23 -07:00
valid-files configs: Warn for deprecated interpolation and quoted type constraints 2019-11-13 07:55:55 -08:00
valid-modules configs: Simplify required_providers blocks 2020-04-24 13:44:08 -04:00
warning-files convert destroy provisioner warnings to errors 2020-02-13 15:42:10 -05:00