make note about using UUIDs vs timestamps

This commit is contained in:
Matthew Hooker 2017-02-03 19:01:56 -08:00
parent 4dd5397077
commit 32259f478d
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
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 the current timestamp. This is useful for configurations that require unique
keys, such as AMI names. By setting the AMI name to something like 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. `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 In addition to globally available functions like timestamp shown before, some
configurations have special local variables that are available only for that configurations have special local variables that are available only for that