From 74ae053fe57fa02e857d37f7bbbc4ae245cd75bf Mon Sep 17 00:00:00 2001 From: Tobi Stadelmaier Date: Wed, 28 Feb 2018 17:14:43 +0100 Subject: [PATCH] increase timeout in spot instance creation to 1 min - fix #3554 increase timeout from 15 secs to 1 minute, which matches the timeouts for other places where we deal with IAM "eventually consistent" semantics --- aws/resource_aws_spot_instance_request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/resource_aws_spot_instance_request.go b/aws/resource_aws_spot_instance_request.go index b5c298a1bc15..1184c53a57ba 100644 --- a/aws/resource_aws_spot_instance_request.go +++ b/aws/resource_aws_spot_instance_request.go @@ -136,7 +136,7 @@ func resourceAwsSpotInstanceRequestCreate(d *schema.ResourceData, meta interface log.Printf("[DEBUG] Requesting spot bid opts: %s", spotOpts) var resp *ec2.RequestSpotInstancesOutput - err = resource.Retry(15*time.Second, func() *resource.RetryError { + err = resource.Retry(1*time.Minute, func() *resource.RetryError { var err error resp, err = conn.RequestSpotInstances(spotOpts) // IAM instance profiles can take ~10 seconds to propagate in AWS: