{"record":{"id":"fe6bb9a2f0e522c1","repo":"serverless/serverless","slug":"acm-certificate-validation-records-timeout","errorCode":"ACM_CERTIFICATE_VALIDATION_RECORDS_TIMEOUT","errorMessage":"Timeout waiting for certificate validation records after ${maxWaitTimeSeconds} seconds","messagePattern":"Timeout waiting for certificate validation records after (.+?) seconds","errorType":"exception","errorClass":"ServerlessError","httpStatus":null,"severity":"error","filePath":"packages/serverless/lib/plugins/aws/domains/aws/acm-wrapper.js","lineNumber":215,"sourceCode":"        }\n\n        const elapsed = Math.round((Date.now() - startTime) / 1000)\n        Logging.logInfo(\n          `Validation records not yet available (${elapsed}s elapsed). Retrying...`,\n        )\n\n        await sleep(pollIntervalSeconds)\n      } catch (err) {\n        throw new ServerlessError(\n          `Failed to get validation records for certificate '${certificateArn}': ${err.message}`,\n          ServerlessErrorCodes.domains\n            .ACM_CERTIFICATE_VALIDATION_RECORDS_FAILED,\n          { originalMessage: err.message },\n        )\n      }\n    }\n\n    throw new ServerlessError(\n      `Timeout waiting for certificate validation records after ${maxWaitTimeSeconds} seconds`,\n      ServerlessErrorCodes.domains.ACM_CERTIFICATE_VALIDATION_RECORDS_TIMEOUT,\n    )\n  }\n\n  /**\n   * Waits for certificate validation to complete\n   * @param {string} certificateArn The ARN of the certificate\n   * @param {number} maxWaitTimeSeconds Maximum time to wait in seconds (default: 600)\n   * @param {number} pollIntervalSeconds Polling interval in seconds (default: 30)\n   * @returns {Promise<void>}\n   */\n  async waitForCertificateValidation(\n    certificateArn,\n    maxWaitTimeSeconds = 600,\n    pollIntervalSeconds = 30,\n  ) {\n    Logging.logInfo(","sourceCodeStart":197,"sourceCodeEnd":233,"githubUrl":"https://github.com/serverless/serverless/blob/b9d7ea51c8cce57cff1207964b9b71123673081f/packages/serverless/lib/plugins/aws/domains/aws/acm-wrapper.js#L197-L233","documentation":"Error \"Timeout waiting for certificate validation records after ${maxWaitTimeSeconds} seconds\" thrown in serverless/serverless.","triggerScenarios":"Thrown at packages/serverless/lib/plugins/aws/domains/aws/acm-wrapper.js:215 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the operation; ACM validation record generation can be slow, so increase wait time or check the certificate status in the ACM console."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b9d7ea51c8cce57cff1207964b9b71123673081f","analyzedAt":"2026-08-13T04:14:40.386Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}