|
|
|
|
@ -68,6 +68,10 @@ func (b *Builder) Prepare(raw interface{}) (err error) {
|
|
|
|
|
errs = append(errs, errors.New("An instance_type must be specified"))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if b.config.Region == "" {
|
|
|
|
|
errs = append(errs, errors.New("A region must be specified"))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if b.config.SSHUsername == "" {
|
|
|
|
|
errs = append(errs, errors.New("An ssh_username must be specified"))
|
|
|
|
|
}
|
|
|
|
|
@ -76,9 +80,6 @@ func (b *Builder) Prepare(raw interface{}) (err error) {
|
|
|
|
|
return &packer.MultiError{errs}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TODO: config validation and asking for fields:
|
|
|
|
|
// * region (exists and valid)
|
|
|
|
|
|
|
|
|
|
log.Printf("Config: %+v", b.config)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|