mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
Merge pull request #5431 from hashicorp/fix5430
add debugging help if ec2-upload-bundle fails
This commit is contained in:
commit
effbfda47c
1 changed files with 6 additions and 0 deletions
|
|
@ -82,6 +82,12 @@ func (s *StepUploadBundle) Run(state multistep.StateBag) multistep.StepAction {
|
|||
}
|
||||
|
||||
if cmd.ExitStatus != 0 {
|
||||
if cmd.ExitStatus == 3 {
|
||||
ui.Error(fmt.Sprintf("Please check that the bucket `%s` "+
|
||||
"does not exist, or exists and is writable. This error "+
|
||||
"indicates that the bucket may be owned by somebody else.",
|
||||
config.S3Bucket))
|
||||
}
|
||||
state.Put("error", fmt.Errorf(
|
||||
"Bundle upload failed. Please see the output above for more\n"+
|
||||
"details on what went wrong."))
|
||||
|
|
|
|||
Loading…
Reference in a new issue