我正在尝试使用Lambda执行Newman,但是在index.js中添加newman时,我一直处于超时状态:
const newman = require('newman');
exports.handler = function(event, context, callback) {
console.log("aa = ");
callback(null, "some success message");
}如果我删除第一行- const newman = require('newman');,执行就正常了。
我的文件夹结构似乎也是正确的:
index.zip
即使我在Lambda中添加了超时,它最终也会超时。知道出了什么问题吗?提前感谢!
发布于 2018-05-14 17:18:02
根据个人经验,我认为您可能没有为lambda函数分配足够的内存。我和newman在aws环境中也有类似的问题。试着增加内存使用量,看看这是否有帮助。
https://stackoverflow.com/questions/50039308
复制相似问题