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
This commit is contained in:
parent
23a48d6619
commit
8c321138f4
@ -80,7 +80,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
|
|||||||
"-s {{.SecretKey}} " +
|
"-s {{.SecretKey}} " +
|
||||||
"-d {{.BundleDirectory}} " +
|
"-d {{.BundleDirectory}} " +
|
||||||
"--batch " +
|
"--batch " +
|
||||||
"--location {{.Region}} " +
|
"--region {{.Region}} " +
|
||||||
"--retry"
|
"--retry"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user