Search code examples
javascriptnode.jsnpmaws-lambdaaws-sdk

Which NPM modules are preinstalled in AWS Lambda execution environment?


Recently I found that aws-sdk NPM module is preinstalled in AWS Lambda nodejs8.10. And I can't find any information in the internet about it.

Which other node.js modules are pre-installed in AWS Lambda?


Solution

  • Only the aws-sdk package is preinstalled .

    All the rest is loaded from the "node_modules" directory..

    You can find information about it here:

    https://docs.aws.amazon.com/lambda/latest/dg/nodejs-create-deployment-pkg.html

    Update

    Now that the aws-sdk package is deprecated, newer runtime versions (since nodejs18.x) only have @aws-sdk/* packages installed, instead of aws-sdk.