Merge pull request #5910 from grayaii/master
Elasticsearch times out. It takes a while to create.
This commit is contained in:
commit
980f165bf7
|
@ -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)),
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue