From 521e0163eed5edd5bc36f0622f2cf9f35d82d1d4 Mon Sep 17 00:00:00 2001 From: Mark Peek Date: Sat, 7 Sep 2013 18:50:01 -0700 Subject: [PATCH] website: document isotime and clean_ami_name --- .../docs/templates/configuration-templates.html.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/website/source/docs/templates/configuration-templates.html.markdown b/website/source/docs/templates/configuration-templates.html.markdown index 36d232d05..88d13f159 100644 --- a/website/source/docs/templates/configuration-templates.html.markdown +++ b/website/source/docs/templates/configuration-templates.html.markdown @@ -53,4 +53,13 @@ While some configuration settings have local variables specific to only that configuration, a set of functions are available globally for use in _any string_ in Packer templates. These are listed below for reference. +* ``isotime`` - UTC time in RFC-3339 format. * ``timestamp`` - The current Unix timestamp in UTC. + +## Amazon Specific Functions + +Specific to Amazon builders: + +* ``clean_ami_name`` - AMI names can only contain certain characters. This + function will replace illegal characters with a '-" character. Example usage + since ":" is not a legal AMI name is: `{{isotime | clean_ami_name}}`.