【发布时间】:2018-04-26 09:20:58
【问题描述】:
我正在尝试使用 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
- index.js
- 节点模块
即使我在 Lambda 中添加超时,它最终也会超时。知道出了什么问题吗?提前致谢!
【问题讨论】:
-
您的 lambda 在 VPC 内吗?
-
不,我在我的 Lambda 配置中的 Network 下拉菜单中选择 no VPC
标签: node.js lambda aws-lambda newman postman-collection-runner