github.com/hashicorp/packer@v1.14.3/website/content/docs/templates/hcl_templates/blocks/locals.mdx (about)

     1  ---
     2  description: >
     3    The `locals` and `local-variable` blocks declare local variables in
     4    your Packer configuration. Learn how to use these blocks to declare local variables in your template.
     5  page_title: locals block reference
     6  ---
     7  
     8  # `locals` block
     9  
    10  This topic provides reference information about the `locals` block.
    11  
    12  ## Description
    13  
    14  The `locals` and `local-variable` blocks declare local variables in
    15  your Packer configuration.
    16  
    17  `@include 'from-1.5/locals/example-block.mdx'`
    18  
    19  Refer to the following topics for additional information about using the `locals` and `local-variable` blocks:
    20  
    21  - [Local Variables](/packer/docs/templates/hcl_templates/locals)
    22  - [Input Variables and local variables](/packer/guides/hcl/variables)