terraform/config
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
..
module config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
test-fixtures Merge pull request #10658 from hashicorp/b-var-keys 2016-12-12 10:53:07 -08:00
append.go config: Append supports `terraform` 2016-12-13 21:53:02 -08:00
append_test.go config: Append supports `terraform` 2016-12-13 21:53:02 -08:00
config.go config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
config_string.go config: parse depends_on for outputs 2016-11-11 17:46:34 -08:00
config_test.go config: smarter provider alias usage validation 2016-12-16 16:47:32 -08:00
config_tree.go
import_tree.go
interpolate.go config: use ast.TypeUnknown and don't remove computed values 2016-11-09 14:28:15 -08:00
interpolate_funcs.go config: nitpicks from #10475 2016-12-01 18:02:39 -05:00
interpolate_funcs_test.go config: nitpicks from #10475 2016-12-01 18:02:39 -05:00
interpolate_test.go config: use ast.TypeUnknown and don't remove computed values 2016-11-09 14:28:15 -08:00
interpolate_walk.go config: maintain slice index accounting for computed keys 2016-11-14 18:33:29 -08:00
interpolate_walk_test.go config: use ast.TypeUnknown and don't remove computed values 2016-11-09 14:28:15 -08:00
lang.go
loader.go command/import: load configurations and allow empty config dirs 2016-11-09 15:08:22 -08:00
loader_hcl.go Merge pull request #10658 from hashicorp/b-var-keys 2016-12-12 10:53:07 -08:00
loader_hcl_test.go
loader_test.go Merge pull request #10658 from hashicorp/b-var-keys 2016-12-12 10:53:07 -08:00
merge.go config: Merge respects Terraform blocks, provider aliases, and more 2016-12-13 21:48:59 -08:00
merge_test.go config: Merge respects Terraform blocks, provider aliases, and more 2016-12-13 21:48:59 -08:00
raw_config.go config: Merge respects Terraform blocks, provider aliases, and more 2016-12-13 21:48:59 -08:00
raw_config_test.go config: validate that RawConfig.Copy doesn't copy the interpolated 2016-12-02 13:25:32 -05:00
resource_mode.go config: "ResourceMode" concept for resources 2016-05-14 08:26:35 -07:00
resource_mode_string.go config: "ResourceMode" concept for resources 2016-05-14 08:26:35 -07:00
testing.go terraform: rename attach config to only attach provider config 2016-10-19 13:38:51 -07:00