Merge pull request #4506 from mitchellh/docuuid

make note about using UUIDs vs timestamps
This commit is contained in:
Matthew Hooker 2017-02-03 19:03:26 -08:00 committed by GitHub
commit 661aadb417
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ For example, the `{{timestamp}}` function can be used in any string to generate
the current timestamp. This is useful for configurations that require unique
keys, such as AMI names. By setting the AMI name to something like
`My Packer AMI {{timestamp}}`, the AMI name will be unique down to the second.
If you need greater than one second granularity, you should use `{{uuid}}`, as
when you have multiple builders in the same template.
In addition to globally available functions like timestamp shown before, some
configurations have special local variables that are available only for that