26 lines
676 B
Plaintext
Raw Normal View History

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'`
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.
# More on variables
- Read the [full locals](/docs/from-1.5/locals) description for a more
thorough read.
- Read the [variables guide](/guides/hcl/variables) for more examples.