HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

packer — Build automated machine images. More information: <https://developer.hashicorp.com/packer/docs/comma

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandbuildpackerimagesclimachinemoreautomated

Problem

How to use the packer command: Build automated machine images. More information: <https://developer.hashicorp.com/packer/docs/commands>.

Solution

packer — Build automated machine images. More information: <https://developer.hashicorp.com/packer/docs/commands>.

Build an image:
packer build {{path/to/config.json}}


Check the syntax of a Packer image config:
packer validate {{path/to/config.json}}


Format a Packer image config:
packer fmt {{path/to/config.pkr.hcl}}

Code Snippets

Build an image

packer build {{path/to/config.json}}

Check the syntax of a Packer image config

packer validate {{path/to/config.json}}

Format a Packer image config

packer fmt {{path/to/config.pkr.hcl}}

Context

tldr-pages: common/packer

Revisions (0)

No revisions yet.