terraform/config
Mitchell Hashimoto cf46e1c3e0
terraform: don't validate computed values in validate
This disables the computed value check for `count` during the validation
pass. This enables partial support for #3888 or #1497: as long as the
value is non-computed during the plan, complex values will work in
counts.

**Notably, this allows data source values to be present in counts!**

The "count" value can be disabled during validation safely because we
can treat it as if any field that uses `count.index` is computed for
validation. We then validate a single instance (as if `count = 1`) just
to make sure all required fields are set.
2017-01-27 21:15:43 -08:00
..
module config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -08:00
test-fixtures config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -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 terraform: don't validate computed values in validate 2017-01-27 21:15:43 -08:00
config_string.go config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -08:00
config_terraform.go config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -08:00
config_terraform_test.go config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -08:00
config_test.go terraform: don't validate computed values in validate 2017-01-27 21:15:43 -08:00
config_tree.go
import_tree.go
interpolate.go
interpolate_funcs.go core: Add pathexpand interpolation function 2017-01-18 16:11:19 -05:00
interpolate_funcs_test.go core: Add pathexpand interpolation function 2017-01-18 16:11:19 -05:00
interpolate_test.go
interpolate_walk.go config: maintain slice index accounting for computed keys 2016-11-14 18:33:29 -08:00
interpolate_walk_test.go
lang.go
loader.go
loader_hcl.go config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -08:00
loader_hcl_test.go
loader_test.go config: add "backend" loading to the Terraform section 2017-01-26 14:33:49 -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
provisioner_enums.go config: parse "when" and "on_failure" on provisioners 2017-01-19 18:10:21 -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
resource_mode_string.go
testing.go