From 50c050bb925fb6d0b49437e335865e073790fe81 Mon Sep 17 00:00:00 2001 From: Alex Gray Date: Tue, 29 Mar 2016 15:58:40 -0400 Subject: [PATCH] Elasticsearch times out. It takes a while to create. lets increase the timeout. --- builtin/providers/aws/resource_aws_elasticsearch_domain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_elasticsearch_domain.go b/builtin/providers/aws/resource_aws_elasticsearch_domain.go index 38f5c601b..372b0e3bb 100644 --- a/builtin/providers/aws/resource_aws_elasticsearch_domain.go +++ b/builtin/providers/aws/resource_aws_elasticsearch_domain.go @@ -207,7 +207,7 @@ func resourceAwsElasticSearchDomainCreate(d *schema.ResourceData, meta interface d.SetId(*out.DomainStatus.ARN) log.Printf("[DEBUG] Waiting for ElasticSearch domain %q to be created", d.Id()) - err = resource.Retry(15*time.Minute, func() *resource.RetryError { + err = resource.Retry(30*time.Minute, func() *resource.RetryError { out, err := conn.DescribeElasticsearchDomain(&elasticsearch.DescribeElasticsearchDomainInput{ DomainName: aws.String(d.Get("domain_name").(string)), }) @@ -367,7 +367,7 @@ func resourceAwsElasticSearchDomainUpdate(d *schema.ResourceData, meta interface return err } - err = resource.Retry(25*time.Minute, func() *resource.RetryError { + err = resource.Retry(50*time.Minute, func() *resource.RetryError { out, err := conn.DescribeElasticsearchDomain(&elasticsearch.DescribeElasticsearchDomainInput{ DomainName: aws.String(d.Get("domain_name").(string)), })