From 4d7b0c2dbc4c003ff318c7ee263ebf83eba3f0b4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 12 Aug 2013 11:53:50 -0700 Subject: [PATCH] builder/amazon/all: support user data file --- builder/amazon/ebs/builder.go | 1 + builder/amazon/instance/builder.go | 1 + 2 files changed, 2 insertions(+) diff --git a/builder/amazon/ebs/builder.go b/builder/amazon/ebs/builder.go index 40c341a20..a8598273c 100644 --- a/builder/amazon/ebs/builder.go +++ b/builder/amazon/ebs/builder.go @@ -115,6 +115,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe ExpectedRootDevice: "ebs", InstanceType: b.config.InstanceType, UserData: b.config.UserData, + UserDataFile: b.config.UserDataFile, SourceAMI: b.config.SourceAmi, IamInstanceProfile: b.config.IamInstanceProfile, SubnetId: b.config.SubnetId, diff --git a/builder/amazon/instance/builder.go b/builder/amazon/instance/builder.go index f1057108c..659c1efab 100644 --- a/builder/amazon/instance/builder.go +++ b/builder/amazon/instance/builder.go @@ -194,6 +194,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe ExpectedRootDevice: "instance-store", InstanceType: b.config.InstanceType, UserData: b.config.UserData, + UserDataFile: b.config.UserDataFile, SourceAMI: b.config.SourceAmi, SubnetId: b.config.SubnetId, },