From d3d7bfe876d45c0b48776b07175ef24689b7f798 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 24 Jul 2013 16:07:33 -0500 Subject: [PATCH] builder/amazon/instance: sudo the ec2-bundle-vol by default --- builder/amazon/instance/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/instance/builder.go b/builder/amazon/instance/builder.go index be2ea3dd3..b24dae7a9 100644 --- a/builder/amazon/instance/builder.go +++ b/builder/amazon/instance/builder.go @@ -56,7 +56,7 @@ func (b *Builder) Prepare(raws ...interface{}) error { } if b.config.BundleVolCommand == "" { - b.config.BundleVolCommand = "ec2-bundle-vol " + + b.config.BundleVolCommand = "sudo -n ec2-bundle-vol " + "-k {{.KeyPath}} " + "-u {{.AccountId}} " + "-c {{.CertPath}} " +