From b60e1fd86236efb991e2503c0b6a7e7f796547c4 Mon Sep 17 00:00:00 2001 From: James Nugent Date: Fri, 2 Oct 2015 17:06:33 -0400 Subject: [PATCH] Add suggestion to AWS Instance builder error message A common cause of the failure of the bundle volume step is missing the ec2-bundle-vol command on the target instance. This commit adds a note about this to the error message produced as Packer output if the bundling step fails (it is already in the documentation). --- builder/amazon/instance/step_bundle_volume.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/amazon/instance/step_bundle_volume.go b/builder/amazon/instance/step_bundle_volume.go index bd362f91f..5d839177f 100644 --- a/builder/amazon/instance/step_bundle_volume.go +++ b/builder/amazon/instance/step_bundle_volume.go @@ -67,7 +67,9 @@ func (s *StepBundleVolume) Run(state multistep.StateBag) multistep.StepAction { if cmd.ExitStatus != 0 { state.Put("error", fmt.Errorf( "Volume bundling failed. Please see the output above for more\n"+ - "details on what went wrong.")) + "details on what went wrong.\n\n"+ + "One common cause for this error is ec2-bundle-vol not being\n"+ + "available on the target instance.")) ui.Error(state.Get("error").(error).Error()) return multistep.ActionHalt }