您好我不得不通过AWS魔豆部署节点的应用程序。
Hi I have a node app deployed via AWS beanstalk.
有没有办法来阅读我的节点脚本的控制台日志上的任何地方AWS?
Is there a way to read the console logs in my node script anywhere on AWS?
感谢
如果你指的是控制台输出,则见的 getConsoleOutput SDK参考。例如:
If you mean the console output, then see the getConsoleOutput SDK reference. For example:
var params = {
InstanceId: 'STRING_VALUE', // required
DryRun: true || false,
};
ec2.getConsoleOutput(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});