我已经预订了AWS snowball,已经订购了它的所有事件。
我需要知道正在运行的事件是什么(它将在发货时发送一个lambda,当它返回到amazon时,我如何才能获得不同的操作?)
这些例子太简单了
我的lambda是
var http = require('http');
exports.handler = function(event, context) {
var httpOptions = {
host: "myip",
port: '80',
path: "/createFirs",
method: "GET"
};
if (false) {
http.get(httpOptions, function(response) {
response.on('data', function (chunk) {
console.log(chunk);
//context.done(null, chunk);
context.succeed(event);
});
response.on('error', function(err) {
console.log(err);
context.done(err, null);
});
});
} else {
context.done(new Error("snowball lambda isn't complete yet"));
}
};发布于 2016-10-16 18:14:25
有关AWS导入/导出雪球作业的信息可通过DescribeJob API获取。
也有通过亚马逊SNS发送的notifications generated by Snowball。通知include
transit
中的
您可以将AWS Lambda函数订阅到Amazon SNS主题,以便在收到雪球通知时调用Lambda函数。
https://stackoverflow.com/questions/39743997
复制相似问题