From 3a74c469e5fb53aee66caa1aa3638dbe278a21f1 Mon Sep 17 00:00:00 2001 From: Henry Huang Date: Sat, 10 May 2014 18:08:46 +0800 Subject: [PATCH] Add "spot_price" param into template processing --- builder/amazon/common/run_config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/amazon/common/run_config.go b/builder/amazon/common/run_config.go index 95fc7b3be..42be279a9 100644 --- a/builder/amazon/common/run_config.go +++ b/builder/amazon/common/run_config.go @@ -91,6 +91,7 @@ func (c *RunConfig) Prepare(t *packer.ConfigTemplate) []error { templates := map[string]*string{ "iam_instance_profile": &c.IamInstanceProfile, "instance_type": &c.InstanceType, + "spot_price": &c.SpotPrice, "ssh_timeout": &c.RawSSHTimeout, "ssh_username": &c.SSHUsername, "ssh_private_key_file": &c.SSHPrivateKeyFile,