website: Update "Local Values" docs to use v0.12 syntax in example

There was some leftover v0.11-style interpolation syntax here.

We prefer to use a "naked" expression in situations like this where the result
isn't a string, because interpolations returning non-strings is a common source
of confusion for new users.
This commit is contained in:
Martin Atkins 2019-04-18 09:03:34 -07:00 committed by GitHub
parent f66b563ccd
commit 533cbf4c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ values from elsewhere in the module:
```hcl ```hcl
locals { locals {
# Ids for multiple sets of EC2 instances, merged together # Ids for multiple sets of EC2 instances, merged together
instance_ids = "${concat(aws_instance.blue.*.id, aws_instance.green.*.id)}" instance_ids = concat(aws_instance.blue.*.id, aws_instance.green.*.id)
} }
locals { locals {