We have quite old AWS account which still has access to EC2 Classic infrastructure in AWS.
Steps to reproduce:
We have not yet tried to define specific security group for packer.
I'm encountering a similar problem using packer 0.10.1 on FreeBSD with the example image config from the getting started guide:
https://gist.github.com/xenophonf/2f04e2527c4ed3ba049414012b29baac
If I set the subnet ID to one of my VPC subnets, I get a different error:
https://gist.github.com/xenophonf/74092b269fa3ef5df89345f768fd5ded
If I switch the image config to another region (and after updating the AMI as appropriate), everything works as expected - Packer deploys the instance, shuts it down, converts it to an AMI, and cleans up.
hmm, I can only assume this has been fixed since 0.10.0, since there've been a number of people who have reported successfully building packer in an old aws account without a default VPC.
Going to close this, but if you're still hitting this problem, will you please open a new issue and run packer with the PACKER_LOG=1 env var set, and upload the logs?
I didn't realize this at the time, but one can ask AWS support to disable EC2-Classic, which I did later.
Unfortunately we still got some ancient infrasturucture on EC2-Classic, so it's not a valid solution ;)