{"url":"https://sugilog.hatenablog.com/entry/2015/08/24/152339","width":"100%","author_name":"sugilog","provider_name":"Hatena Blog","type":"rich","title":"AWS\u306eLambda\u3067yield\uff08\u3060\u3081\u3067\u3057\u305f\uff09","provider_url":"https://hatena.blog","height":"190","version":"1.0","blog_title":"sugilog\u306e\u30d6\u30ed\u30b0","image_url":null,"author_url":"https://blog.hatena.ne.jp/sugilog/","blog_url":"https://sugilog.hatenablog.com/","published":"2015-08-24 15:23:39","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugilog.hatenablog.com%2Fentry%2F2015%2F08%2F24%2F152339\" title=\"AWS\u306eLambda\u3067yield\uff08\u3060\u3081\u3067\u3057\u305f\uff09 - sugilog\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"description":"AWS\u306elambda\u3067nodejs\u3092\u4f7f\u3063\u3066\u3001\u4e26\u5217\u51e6\u7406\uff06\u76f4\u5217\u51e6\u7406\u3092\u3046\u307e\u304f\u6271\u3048\u306a\u3044\u304b\u3068\u601d\u3063\u3066\u30c6\u30b9\u30c8\u3002 Promise\u3068co\u3092\u4f7f\u3044\u305f\u3044\u3002 ... \u5931\u6557\u3002\u3002\u3002 \u6b63\u78ba\u306b\u8a00\u3046\u3068\u3001Promise\u3068co\u3068\u3044\u3046\u304b\u3001\u76f4\u5217\u51e6\u7406\u306eyield\u3092\u66f8\u304f\u3068\u304d\u306efunction *()\u306a\u69cb\u6587\u304c\u30a8\u30e9\u30fc\u3057\u3066\u308b\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u78ba\u8a8d\u3002 var exec = require(\"child_process\").exec; exports.handler = function(event, context) { exec(\"node --version\", function( _1, stdout, _2 ) { console.log( \u2026"}