do 30 minutes not 25

This commit is contained in:
Megan Marsh 2018-08-17 13:30:02 -07:00
parent 00de0f4996
commit 00c6ec979f

View File

@ -42,9 +42,9 @@ func WaitUntilAMIAvailable(ctx aws.Context, conn *ec2.EC2, imageId string) error
waitOpts := getWaiterOptions()
if len(waitOpts) == 0 {
// Bump this default to 25 minutes because the aws default
// Bump this default to 30 minutes because the aws default
// of ten minutes doesn't work for some of our long-running copies.
waitOpts = append(waitOpts, request.WithWaiterMaxAttempts(100))
waitOpts = append(waitOpts, request.WithWaiterMaxAttempts(120))
}
err := conn.WaitUntilImageAvailableWithContext(
ctx,