From 34556713dc780666033032e5776645df9236adb3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 12 Aug 2013 12:12:44 -0700 Subject: [PATCH] website: document user data stuff --- website/source/docs/builders/amazon-ebs.html.markdown | 8 ++++++++ .../source/docs/builders/amazon-instance.html.markdown | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/website/source/docs/builders/amazon-ebs.html.markdown b/website/source/docs/builders/amazon-ebs.html.markdown index a01cbf024..8a1a8ccc8 100644 --- a/website/source/docs/builders/amazon-ebs.html.markdown +++ b/website/source/docs/builders/amazon-ebs.html.markdown @@ -95,6 +95,14 @@ Optional: * `tags` (object of key/value strings) - Tags applied to the AMI. +* `user_data` (string) - User data to apply when launching the instance. + Note that you need to be careful about escaping characters due to the + templates being JSON. It is often more convenient to use `user_data_file`, + instead. + +* `user_data_file` (string) - Path to a file that will be used for the + user data when launching the instance. + * `vpc_id` (string) - If launching into a VPC subnet, Packer needs the VPC ID in order to create a temporary security group within the VPC. diff --git a/website/source/docs/builders/amazon-instance.html.markdown b/website/source/docs/builders/amazon-instance.html.markdown index 01dc61082..3622c2b34 100644 --- a/website/source/docs/builders/amazon-instance.html.markdown +++ b/website/source/docs/builders/amazon-instance.html.markdown @@ -126,6 +126,14 @@ Optional: * `tags` (object of key/value strings) - Tags applied to the AMI. +* `user_data` (string) - User data to apply when launching the instance. + Note that you need to be careful about escaping characters due to the + templates being JSON. It is often more convenient to use `user_data_file`, + instead. + +* `user_data_file` (string) - Path to a file that will be used for the + user data when launching the instance. + * `vpc_id` (string) - If launching into a VPC subnet, Packer needs the VPC ID in order to create a temporary security group within the VPC.