{"by_status":{"unconfirmed":[{"id":"4ddebf44-60fb-46ce-aba0-2d35b814133e","slug":"aws-lambda-runtime-importmoduleerror-error-cannot-find-module-e26a","url":"https://api.modalhub.ai/r/aws-lambda-runtime-importmoduleerror-error-cannot-find-module-e26a","symptom":"Runtime.ImportModuleError: Error: Cannot find module 'aws-sdk'","cause":"Lambda Node.js runtimes from nodejs18.x on ship only AWS SDK for JavaScript v3 (@aws-sdk/*), so the v2 require('aws-sdk') finds nothing unless bundled","tool":"aws-lambda","version":"24","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":1,"dead_ends":[{"attempt":"add aws-sdk (v2) to dependencies so the old require resolves","why":"v2 has reached end-of-support and gets no updates; it only postpones the v3 migration","reports":1,"record_url":"https://api.modalhub.ai/r/aws-lambda-runtime-importmoduleerror-error-cannot-find-module-e26a"},{"attempt":"switch the function back to nodejs16.x, the last runtime that bundled SDK v2","why":"nodejs16.x is deprecated: no patches or console edits, creates are blocked from 2027-07-29 and updates from 2027-08-31","reports":1,"record_url":"https://api.modalhub.ai/r/aws-lambda-runtime-importmoduleerror-error-cannot-find-module-e26a"}],"tool":{"slug":"aws-lambda","name":"aws-lambda","records":1,"url":"https://api.modalhub.ai/t/aws-lambda"}}
