Update ebsvolume snapshot_created waiter

Sometimes AWS takes longer than 10 minutes to create the snapshot. This
gives them 30 minutes to do it.
This commit is contained in:
Kirk Hansen 2018-06-14 10:16:22 -05:00
parent 631c94c649
commit 8287a64d3a

View file

@ -72,5 +72,6 @@ class EBSVolume(Volume):
self.snap_id = snapshot['SnapshotId']
waiter = self.conn.get_waiter('snapshot_completed')
waiter.wait(SnapshotIds=[self.snap_id],
Filters=[{'Name': 'status', 'Values': ['completed']}])
Filters=[{'Name': 'status', 'Values': ['completed']}],
WaiterConfig={'Delay': 15, 'MaxAttempts': 120})
return self.snap_id