Skip to content

Commit

Permalink
resource/aws_acm_certificate: Update pending DNS validation record cr…
Browse files Browse the repository at this point in the history
…eation time from 1 minute to 5 minutes. (#12371)

When an ACM certificate has a lot of SANs (>20), it takes more
than 1 minute to AWS to generate all the challenges. This waits for the
challenges 5 minutes instead of 1 minute.
  • Loading branch information
gilbsgilbs authored May 27, 2020
1 parent 0abf8e7 commit 5ced3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_acm_certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func resourceAwsAcmCertificateRead(d *schema.ResourceData, meta interface{}) err
CertificateArn: aws.String(d.Id()),
}

return resource.Retry(time.Duration(1)*time.Minute, func() *resource.RetryError {
return resource.Retry(time.Duration(5)*time.Minute, func() *resource.RetryError {
resp, err := acmconn.DescribeCertificate(params)

if err != nil {
Expand Down

0 comments on commit 5ced3d4

Please sign in to comment.