Skip to content

Commit

Permalink
Merge pull request #3375 from terraform-providers/b-elasticsearch-dom…
Browse files Browse the repository at this point in the history
…ain-retry-creation

resource/aws_elasticsearch_domain: Retry creation on ValidationException
  • Loading branch information
radeksimko authored Feb 14, 2018
2 parents 1b34f3b + c75bb3a commit 91b9805
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws/resource_aws_elasticsearch_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ func resourceAwsElasticSearchDomainCreate(d *schema.ResourceData, meta interface
if isAWSErr(err, "ValidationException", "enable a service-linked role to give Amazon ES permissions") {
return resource.RetryableError(err)
}
if isAWSErr(err, "ValidationException", "Domain is still being deleted") {
return resource.RetryableError(err)
}

return resource.NonRetryableError(err)
}
Expand Down

0 comments on commit 91b9805

Please sign in to comment.