From 5b5ca4872551743d57db8f345a12f5896b303f4e Mon Sep 17 00:00:00 2001 From: Romain Marcadier-Muller Date: Thu, 20 Jun 2019 16:26:38 +0200 Subject: [PATCH] fix(certificatemanager): Increase wait time for DNS validation (#2961) 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) --- .../dns_validated_certificate_handler/lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/lib/index.js b/packages/@aws-cdk/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/lib/index.js index 250afa666c31a..cd384a67d8bef 100644 --- a/packages/@aws-cdk/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/lib/index.js +++ b/packages/@aws-cdk/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/lib/index.js @@ -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();