terraform/config/module
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
..
test-fixtures config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
copy_dir.go Add proper build constraints for GH-7273 2016-06-23 08:02:32 -04:00
get.go Don't try to copy files over themselves 2016-06-22 11:25:42 -04:00
inode.go build: Opt-in to building rather than opt-out 2016-07-29 18:40:31 -05:00
inode_freebsd.go build: Opt-in to building rather than opt-out 2016-07-29 18:40:31 -05:00
inode_windows.go build: Opt-in to building rather than opt-out 2016-07-29 18:40:31 -05:00
module.go
module_test.go config/module: use go-getter 2015-10-15 13:36:58 -07:00
tree.go config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
tree_gob.go
tree_gob_test.go
tree_test.go config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
validate_provider_alias.go config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00