title: aws command line interface - aws ec2 wait - Max attempts exceeded
body: <p>I am working on shell script, witch does follow:</p>
  
  <ul>
  <li>creates snapshot of EBS Volume;</li>
  <li>creates AMI image based on this snapshot.</li>
  </ul>
  
  <p>1) I use follow command to create snapshot:<br>
  <code>SNAPSHOT_ID=$(aws ec2 create-snapshot "${DRYRUN}" --volume-id "${ROOT_VOLUME_ID}" --description "${SNAPSHOT_DESCRIPTION}" --query 'SnapshotId')</code></p>
  
  <p>2) I use waiter to wait complete state:<br>
  <code>aws ec2 wait snapshot-completed --snapshot-ids "${SNAPSHOT_ID}"</code></p>
  
  <p>When I test it with EBS Volume 8 GB size everything goes well.<br>
  When it is 40 GB, I have an exception:<br>
  <code>Waiter SnapshotCompleted failed: Max attempts exceeded</code></p>
  
  <p>Probably, 40 GB takes more time, then 8 GB one, just need to wait.</p>
  
  <p>AWS Docs (<a href="http://docs.aws.amazon.com/cli/latest/reference/ec2/wait/snapshot-completed.html" rel="noreferrer">http://docs.aws.amazon.com/cli/latest/reference/ec2/wait/snapshot-completed.html</a>) don't have any timeout or attempts quantity option.</p>
  
  <p>May be some of you have faced the same issue?</p>