Explain that input values can be used in locals from example locals block

This commit is contained in:
Adrien Delorme 2020-06-02 11:57:32 +02:00
parent ffcf073007
commit 4349a55e61
2 changed files with 3 additions and 3 deletions

View File

@ -16,8 +16,6 @@ your Packer configuration.
`@include 'from-1.5/locals/example-block.mdx'`
Local can be bare values or a mix of locals and or input variables.
# More on variables
- Read the [full locals](/docs/from-1.5/locals) description for a more

View File

@ -1,7 +1,9 @@
```hcl
# locals.pkr.hcl
locals {
baz = "Foo is '${var.foo}'"
# locals can be bare values like:
wee = local.baz
# locals can also be set with input variables :
baz = "Foo is '${var.foo}'"
}
```