From 8c321138f4ecf78c22a19338656d00028740850a Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Tue, 9 Jun 2015 10:41:39 -0500 Subject: [PATCH] Revert "Changing --region to --location" This reverts commit f40fd36c3150440de0ad939e2e8c46782d709a59. According to the documentation below, `--region` is the current flag. If you're using an older version of the tools that use `--location`, you can customize the commands in your Packer config with `bundle_vol_command` and `bundle_upload_command` - http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/CLTRG-ami-upload-bundle.html - https://www.packer.io/docs/builders/amazon-instance.html --- 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 8534cf8dc..d164f91ee 100644 --- a/builder/amazon/instance/builder.go +++ b/builder/amazon/instance/builder.go @@ -80,7 +80,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) { "-s {{.SecretKey}} " + "-d {{.BundleDirectory}} " + "--batch " + - "--location {{.Region}} " + + "--region {{.Region}} " + "--retry" }