snippetbashTip
packer — Build automated machine images. More information: <https://developer.hashicorp.com/packer/docs/comma
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.