def detect_ami(owners=["self"])
      images = ec2.describe_images(
        owners: owners,
        filters: filters
      ).images
      detected = images.first
      !!detected
    end
def detect_ami(owners=["self"])
      images = ec2.describe_images(
        owners: owners,
        filters: filters
      ).images
      detected = images.first
      !!detected
    end
Using custom detect_ami instead of ec2.wait_until(:image_availalbe, ...)
 because we start checking for the ami even before we've called
 create_ami.  We start checking right after we launch the instance
 which will create the ami at the end.