-1
私は、URLを指定してwindow.jsを使用してウィンドウを開く必要があるという単純な要件があります.Lambda関数としてAWSにデプロイされています。 次のサンプルコードでは、ラムダ関数の実行が成功として返されますが、ブラウザが開いていない、つまりURLが起動されていません。同じコードをWindowsやLinux上で実行すると、ウィンドウが表示されます。AWSラムダnot opening window with node.js
function summaryHandler (event, context, callback) {
console.log('Will open google page');
var open = require('open');
open('http://www.google.com');
callback(null, 'Your window should be launched by now');
}
exports.summaryHandler = summaryHandler;
問題がどこにあるか教えてください。