If you upgraded a Lambda function from nodejs16.x to nodejs18.x (or nodejs20.x / nodejs22.x) and your logs now show:
Runtime.ImportModuleError: Error: Cannot find module 'aws-sdk'
Enter fullscreen mode
Exit fullscreen mode
you're not missing a locally installed package. AWS deliberately stopped bundling it.






