2020-05-26 15:29:47 +02:00
|
|
|
---
|
|
|
|
description: >
|
2020-05-28 17:04:34 +02:00
|
|
|
The locals block also called the local-variable block defines locals within
|
|
|
|
your Packer configuration.
|
2020-05-26 15:29:47 +02:00
|
|
|
layout: docs
|
|
|
|
page_title: locals - Blocks
|
|
|
|
sidebar_title: <tt>locals</tt>
|
|
|
|
---
|
|
|
|
|
|
|
|
# The `locals` block
|
|
|
|
|
|
|
|
`@include 'from-1.5/beta-hcl2-note.mdx'`
|
|
|
|
|
2020-06-02 11:50:17 +02:00
|
|
|
The `locals` block, also called the `local-variable` block, defines locals within
|
2020-05-26 15:29:47 +02:00
|
|
|
your Packer configuration.
|
|
|
|
|
|
|
|
`@include 'from-1.5/locals/example-block.mdx'`
|
|
|
|
|
2020-05-28 16:49:54 +02:00
|
|
|
Local can be bare values or a mix of locals and or input variables.
|
|
|
|
|
2020-05-26 15:46:02 +02:00
|
|
|
# More on variables
|
|
|
|
|
|
|
|
- Read the [full locals](/docs/from-1.5/locals) description for a more
|
|
|
|
thorough read.
|
2020-06-02 11:50:17 +02:00
|
|
|
- Read the [variables guide](/guides/hcl/variables) for more examples.
|