After trying the new build from #6692 there's an error regarding duration_block_minutes, see below. duration_block_minutes is not specified in the template, is it required to have a value when using spot_price? the template is exactly the same as the one posted in #6692
2018/09/12 16:35:29 ui error: ==> amazon-ebs: Error launching source spot instance: InvalidParameterValue: Value (0) for parameter blockDurationMinutes is invalid. A request must have a positive block duration.
==> amazon-ebs: status code: 400, request id: 5bfb2563-4f2c-47dd-962b-09998d55affa
==> amazon-ebs: Error launching source spot instance: InvalidParameterValue: Value (0) for parameter blockDurationMinutes is invalid. A request must have a positive block duration.
==> amazon-ebs: status code: 400, request id: 5bfb2563-4f2c-47dd-962b-09998d55affa
==> amazon-ebs: No volumes to clean up, skipping
Build 'amazon-ebs' errored: Error launching source spot instance: InvalidParameterValue: Value (0) for parameter blockDurationMinutes is invalid. A request must have a positive block duration.
status code: 400, request id: 5bfb2563-4f2c-47dd-962b-09998d55affa
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error launching source spot instance: InvalidParameterValue: Value (0) for parameter blockDurationMinutes is invalid. A request must have a positive block duration.
status code: 400, request id: 5bfb2563-4f2c-47dd-962b-09998d55affa
==> Builds finished but no artifacts were created.
2018/09/12 16:35:29 ui error: Build 'amazon-ebs' errored: Error launching source spot instance: InvalidParameterValue: Value (0) for parameter blockDurationMinutes is invalid. A request must have a positive block duration.
status code: 400, request id: 5bfb2563-4f2c-47dd-962b-09998d55affa
2018/09/12 16:35:29 Builds completed. Waiting on interrupt barrier...
2018/09/12 16:35:29 machine readable: error-count []string{"1"}
2018/09/12 16:35:29 ui error:
==> Some builds didn't complete successfully and had errors:
2018/09/12 16:35:29 machine readable: amazon-ebs,error []string{"Error launching source spot instance: InvalidParameterValue: Value (0) for parameter blockDurationMinutes is invalid. A request must have a positive block duration.\n\tstatus code: 400, request id: 5bfb2563-4f2c-47dd-962b-09998d55affa"}
2018/09/12 16:35:29 ui error: --> amazon-ebs: Error launching source spot instance: InvalidParameterValue: Value (0) for parameter blockDurationMinutes is invalid. A request must have a positive block duration.
status code: 400, request id: 5bfb2563-4f2c-47dd-962b-09998d55affa
Thanks for the report -- We'll get on this ASAP.
Howdy, here's a binary with a fix ! Tell us if this works for you 🙂
packer.zip
it's working now, thank you!
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.