Skip to content

Commit

Permalink
Merge pull request #5910 from grayaii/master
Browse files Browse the repository at this point in the history
Elasticsearch times out. It takes a while to create.
  • Loading branch information
jen20 committed Mar 31, 2016
2 parents 3ba1c5e + 50c050b commit 980f165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/providers/aws/resource_aws_elasticsearch_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
})
Expand Down Expand Up @@ -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)),
})
Expand Down

0 comments on commit 980f165

Please sign in to comment.