Skip to content

Commit

Permalink
fix(certificatemanager): Increase wait time for DNS validation
Browse files Browse the repository at this point in the history
Allow the Lambda function to wait up to 9 minutes and 20 seconds before
bailing out waiting for the domain to be validated. It used to be
waiting no more than 5 minutes and would occasionally timeout on users.

Fixes #2914 (hopefully)
  • Loading branch information
RomainMuller committed Jun 20, 2019
1 parent c4c3d09 commit d350eaf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ const requestCertificate = async function (requestId, domainName, subjectAlterna

console.log('Waiting for validation...');
await acm.waitFor('certificateValidated', {
// Wait up to 5 minutes
// Wait up to 9 minutes and 30 seconds
$waiter: {
delay: 30,
maxAttempts: 10
maxAttempts: 19
},
CertificateArn: reqCertResponse.CertificateArn
}).promise();
Expand Down

0 comments on commit d350eaf

Please sign in to comment.