Back to Packer

`locals` block

website/content/docs/templates/hcl_templates/blocks/locals.mdx

1.15.31.0 KB
Original Source

⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

[!IMPORTANT]
Documentation Update: Product documentation previously located in /website has moved to the hashicorp/web-unified-docs repository, where all product documentation is now centralized. Please make contributions directly to web-unified-docs, since changes to /website in this repository will not appear on developer.hashicorp.com. ⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️

locals block

This topic provides reference information about the locals block.

Description

The locals and local-variable blocks declare local variables in your Packer configuration.

@include 'from-1.5/locals/example-block.mdx'

Refer to the following topics for additional information about using the locals and local-variable blocks: