terraform/config/module/test-fixtures
Mitchell Hashimoto 0c30caec7d
config: smarter provider alias usage validation
Fixes #4789

This improves the validation that valid provider aliases are used.

Previously, we required that provider aliases be defined in every module
they're used. This isn't correct because the alias may be used in a
parent module and inherited.

This removes that validation and creates the validation that a provider
alias must be defined in the used module or _any parent_. This allows
inheritance to work properly.

We've always had this type of validation for aliases because we believe
its a good UX tradeoff: typo-ing an alias is really painful, so we
require declaration of alias usage. It may add a small burden to
declare, but since relatively few aliases are used, it improves the
scenario where a user fat-fingers an alias name.
2016-12-16 16:47:32 -08:00
..
basic
basic-dot
basic-git
basic-hg
basic-parent
basic-subdir
child
dup
validate-alias-bad config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
validate-alias-good config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
validate-bad-output
validate-bad-output-to-module config: add module raw configs to InterpolatedConfigs [GH-1448] 2015-04-29 17:12:28 -07:00
validate-bad-var
validate-child-bad
validate-child-good config: validation error when output is missing value field 2016-01-20 14:00:36 -06:00
validate-required-var
validate-root-bad