Explain that input values can be used in locals from example locals block
This commit is contained in:
parent
ffcf073007
commit
4349a55e61
|
@ -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
|
||||
|
|
|
@ -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}'"
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue