rapid7 / builderator

Tools to make CI Packer builds awesome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failure to copy an AMI causes Builderator to wait forever

fmitchell-r7 opened this issue · comments

If the AMI copy process fails, you see logs that look like this

16:57:43 Waiting for ami-XXXXXXXX in eu-central-1 to become Available
16:57:43 my-ami is still in the pending state, sleeping...
16:58:44 my-ami is still in the pending state, sleeping...
16:59:45 my-ami is still in the failed state, sleeping...
17:00:46 my-ami is still in the failed state, sleeping...

The "in the failed state" lines continue forever until the process is killed. It looks like the waiting state is true if the state returned from AWS is not "available".

The :wait task should exit (maybe throw an exception?) if the state returned from AWS is "failing".