Which NPM modules are preinstalled in AWS Lambda execution environment?

后端 未结 3 1673
攒了一身酷
攒了一身酷 2021-01-02 13:35

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 oth

3条回答
  •  清酒与你
    2021-01-02 13:50

    I've used the "https" and the "url" package, so those at least is pre-installed. There are quite a few standard node.js modules which need a native layer.

    Clearly the AWS modules are in there, for communicating with AWS services. I've used SQS, for example.

    Haven't tried "fs" yet, but since it requires a native layer, and is something you might want to do (e.g. persisting stuff to /tmp) I'm assuming it's there.

    Somewhere there ought to be a list. But I can't find one. Guess you just have to try, and if the requires fails, then you need to put a module in node_modules, then see if it demands dependencies.

提交回复
热议问题