HashiDays
One conference. Three cities.
Find a city near you
Dismiss alert
HashiCorp Developer
HashiCorp Cloud Platform
Terraform
Packer
Consul
Vault
Boundary
Nomad
Waypoint
Vagrant
Packer
Install
Tutorials
Documentation
Guides
Integrations
Try Cloud
(opens in new tab)
Search
Command or control key
K key
Sign in
Sign up
Theme
Packer Home
Documentation
Documentation
Terminology
Commands (CLI)
Templates
Overview
HCL Templates
Overview
Blocks
Functions
Overview
Contextual Functions
Numeric Functions
String Functions
Collection Functions
Encoding Functions
Filesystem Functions
Overview
abspath
basename
dirname
file
fileexists
fileset
pathexpand
templatefile
Date and Time Functions
Hash and Crypto Functions
UUID Functions
IP Network Functions
Type Conversion Functions
Variables
Locals
Contextual Variables
Data Sources
Path Variables
Syntax
Only Except
Expressions
JSON Syntax
JSON Templates
Communicators
Builders
Data Sources
Provisioners
Post-Processors
External Plugins
Installing Packer
Configuring Packer
Packer Plugins
Integration Program
Debugging
HCP Packer
Resources
Tutorial Library
Community Forum
(opens in new tab)
Support
(opens in new tab)
GitHub
(opens in new tab)
You are viewing documentation for version v1.7.x.
View latest version
.
Developer
Packer
Documentation v1.7.x
JSON Templates
HCL Templates
Type Conversion Functions
Filesystem Functions
v1.7.x
Packer
v1.12.x (latest)
v1.11.x
v1.10.x
v1.9.x
v1.8.x
v1.6.x
v1.5.x
file