Error waiting for AMI: ResourceNotReady: exceeded wait attempts (Waiting for AMI to become ready...)

33 views
Skip to first unread message

Nitin Shetty

unread,
Nov 4, 2019, 7:36:06 AM11/4/19
to Packer

Quite a few issues raised around these #6526 #6569. I have tried some of the workarounds mentioned but with no luck. Moreover I thought these have been fixed in the later releases.

So I'm using Packer v(1.4.3). Building an AMI (windows 2016) from a Encrypted Source, and the target is encrypted using KMS Alias. The build fails 80-90% of the time.
Sometimes it fails/times out when waiting for the AMI to be available and other times fails when Stopping the source instance (Error stopping instance: RequestExpired: Request has expired.)
Generally we see the failures when the end to end build takes over 1 hr.

I've attached the packer logs and packer template
gist/c4add22c69e2a94a39389bb25b7b2753

Nitin Shetty

unread,
Nov 4, 2019, 7:41:30 AM11/4/19
to Packer
I've also raised the issue on Packer Github a bit information on that link as well - https://github.com/hashicorp/packer/issues/8299.
Reply all
Reply to author
Forward
0 new messages