{"id":8506,"date":"2018-06-25T09:00:38","date_gmt":"2018-06-25T00:00:38","guid":{"rendered":"https:\/\/www.agent-grow.com\/self20percent\/?p=8506"},"modified":"2018-06-23T21:04:25","modified_gmt":"2018-06-23T12:04:25","slug":"netlify-serverless-intro","status":"publish","type":"post","link":"https:\/\/www.agent-grow.com\/self20percent\/2018\/06\/25\/netlify-serverless-intro\/","title":{"rendered":"\u7206\u901f\u3067\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f53\u9a13\u3057\u3088\u3046\uff01 \u305d\u3046\u3001 Netlify \u306a\u3089\u306d\u3002"},"content":{"rendered":"<p>\u3069\u3046\u3082\u3001\u3053\u3093\u306b\u3061\u306f\uff01<br \/>\n\u6c5f\u5d5c\u3067\u3059\uff01<\/p>\n<p>\u4eca\u56de\u306f\u6700\u8fd1\u6d41\u884c\u308a\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3092\u30b5\u30c3\u30af\u30ea\u3068\u4f53\u9a13\u3057\u3066\u3044\u304d\u307e\u3059\u3088\uff01<\/p>\n<h1>\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3068\u306f\u2026\uff1f<\/h1>\n<p>\u300c\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3063\u3066\u4f55\u3067\u3059\u304b\uff1f\u300d\u3068\u3044\u3046\u3068\u3053\u308d\u306b\u3064\u3044\u3066\u3001<br \/>\n\u8a73\u3057\u3044\u8a71\u306f\u3088\u305d\u3078\u8b72\u308b\u3068\u3057\u3066\u3001\u3055\u3063\u304f\u308a\u304a\u8a71\u3059\u308b\u3068<br \/>\n\u300c\u30b5\u30fc\u30d0\u30fc\u7ba1\u7406\u3092\u8003\u3048\u306a\u304f\u3066\u3082\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3067\u304d\u308b\u74b0\u5883\u3092\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u7528\u610f\u3057\u3066\u304f\u308c\u308b\u3088\u30fc\u300d<br \/>\n\u3068\u3044\u3046\u8a71\u3067\u3059\u306d\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3084\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u306e\u5897\u6e1b\u3092\u8003\u3048\u305a\u3068\u3082\u3001\u826f\u3057\u306a\u306b\u3084\u3063\u3066\u304f\u308c\u308b\u3001<br \/>\n\u305d\u3093\u306a\u7d20\u6575\u306a\u304a\u8a71\u304c\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306a\u306e\u3067\u3059\u3002<\/p>\n<h1>\u306a\u3093\u3067 Netlify \u3092\u4f7f\u3046\u306e\uff1f<\/h1>\n<p>\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3068\u3044\u3048\u3070 <a href=\"https:\/\/aws.amazon.com\/jp\/lambda\/\" rel=\"noopener\" target=\"_blank\">AWS Lambda<\/a> \u3067\u3059\u3088\u306d\uff01<br \/>\n\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u5148\u99c6\u3051\u7684\u5b58\u5728\u3067\u3059\u3002<\/p>\n<p>AWS Lambda \u3001\u76f4\u63a5\u4f7f\u3063\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u4f7f\u3046\u307e\u3067\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u7b49\u3005\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3060\u3063\u305f\u308a\u3001Web \u304b\u3089\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u306f <a href=\"https:\/\/aws.amazon.com\/jp\/api-gateway\/\" rel=\"noopener\" target=\"_blank\">Amazon API Gateway<\/a> \u3068\u3044\u3046\u5225\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u3063\u305f\u308a\u3068\u3001\u69cb\u7bc9\u306b\u304b\u304b\u308b\u6642\u9593\u304c <code>\u7206\u901f\uff01<\/code> \u3068\u307e\u3067\u306f\u884c\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>Netlify \u306f\u4e0a\u624b\u304f\u305d\u306e\u3042\u305f\u308a\u3092\u3046\u307e\u304f\u96a0\u3057\u3066\u304f\u308c\u3066\u3044\u3066\u3001\u672c\u5f53\u306b\u7206\u901f\u3067\u30b3\u30fc\u30c9\u3092\u52d5\u304b\u305b\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u3057\u304b\u3082 Free \u30d7\u30e9\u30f3\u306a\u3089\u7121\u6599\u3067\u4f7f\u3048\u307e\u3059\uff01(2018\/06\/20 \u73fe\u5728)<br \/>\n\u3053\u308c\u306f\u8a66\u3057\u3066\u307f\u308b\u3057\u304b\u306a\u3044\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\uff08\u3061\u306a\u307f\u306b\u3001 Netlify \u3082\u30a6\u30e9\u3067\u306f AWS Lambda \u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u307f\u305f\u3044\u3067\u3059\u3088\uff09<\/p>\n<h1>\u5fc5\u8981\u306a\u30b3\u30fc\u30c9\u306f\u3053\u308c\u3060\u3051\uff01<\/h1>\n<p>\u3068\u308a\u3042\u3048\u305a\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3092\u4f53\u9a13\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30b3\u30fc\u30c9\u306f\u3053\u308c\u3060\u3051\uff01<\/p>\n<h4>\u30c4\u30ea\u30fc\u69cb\u9020<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot\n\u251c lambda\n\u2502 \u2514 test.js\n\u251c netlify.toml\n\u2514 package.json\n<\/pre>\n<h4>test.js<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexports.handler = function(event, context, callback) {\n  callback(null, {\n    statusCode: 200,\n    body: &amp;quot;Hello, World!&amp;quot;\n  });\n};\n<\/pre>\n<h4>netlify.toml<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;build]\n  command = &amp;quot;netlify-lambda build lambda&amp;quot;\n  functions = &amp;quot;lambda\/&amp;quot;\n<\/pre>\n<h4>package.json<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n{\n  &amp;quot;name&amp;quot;: &amp;quot;test&amp;quot;,\n  &amp;quot;version&amp;quot;: &amp;quot;1.0.0&amp;quot;,\n  &amp;quot;description&amp;quot;: &amp;quot;This is Netlify test!&amp;quot;,\n  &amp;quot;devDependencies&amp;quot;: {\n    &amp;quot;netlify-lambda&amp;quot;: &amp;quot;^0.4.0&amp;quot;\n  }\n}\n<\/pre>\n<p>\u305f\u3063\u305f 3 \u30d5\u30a1\u30a4\u30eb\u3060\u3051\u3067\u3059\uff01<\/p>\n<p>\u304a\u8a66\u3057\u3067 <code>Hello, World!<\/code> \u3068\u3060\u3051\u8fd4\u3059 JavaScript <code>test.js<\/code> \u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3055\u305b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>github \u306b\u9069\u5f53\u306a\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u3053\u308c\u3092\u4fdd\u5b58\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8513\" data-permalink=\"https:\/\/www.agent-grow.com\/self20percent\/2018\/06\/25\/netlify-serverless-intro\/github\/\" data-orig-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/github.png\" data-orig-size=\"800,461\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"github\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/github.png\" src=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/github.png\" alt=\"github\" width=\"800\" height=\"461\" class=\"alignnone size-full wp-image-8513\" title=\"github\" srcset=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/github.png 800w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/github-300x173.png 300w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/github-768x443.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<h1>\u5f8c\u306f Netlify \u306e\u8a2d\u5b9a\uff01<\/h1>\n<p>\u30b3\u30fc\u30c9\u3092\u4fdd\u5b58\u3057\u305f\u3089\u5f8c\u306f Netlify \u306e\u8a2d\u5b9a\u3060\u3051\u3067\u3059\u306d\uff01<br \/>\nURL \u306f <a href=\"https:\/\/www.netlify.com\/\" rel=\"noopener\" target=\"_blank\">https:\/\/www.netlify.com\/<\/a> \u3067\u3059\u3002<br \/>\n\u4f1a\u54e1\u767b\u9332\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8514\" data-permalink=\"https:\/\/www.agent-grow.com\/self20percent\/2018\/06\/25\/netlify-serverless-intro\/%e3%82%a2%e3%83%bc%e3%83%88%e3%83%9c%e3%83%bc%e3%83%89-1-7\/\" data-orig-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-2.png\" data-orig-size=\"800,461\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-2.png\" src=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-2.png\" alt=\"netlify\" width=\"800\" height=\"461\" class=\"alignnone size-full wp-image-8514\" title=\"netlify\" srcset=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-2.png 800w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-2-300x173.png 300w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-2-768x443.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><code>New site from Git<\/code> \u30dc\u30bf\u30f3\u304b\u3089\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8519\" data-permalink=\"https:\/\/www.agent-grow.com\/self20percent\/2018\/06\/25\/netlify-serverless-intro\/%e3%82%a2%e3%83%bc%e3%83%88%e3%83%9c%e3%83%bc%e3%83%89-1-8\/\" data-orig-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-3.png\" data-orig-size=\"800,445\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-3.png\" src=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-3.png\" alt=\"GitHub \u3092\u9078\u3076\" width=\"800\" height=\"445\" class=\"alignnone size-full wp-image-8519\" title=\"GitHub \u3092\u9078\u3076\" srcset=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-3.png 800w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-3-300x167.png 300w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-3-768x427.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u30b3\u30fc\u30c9\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b git \u30b5\u30fc\u30d3\u30b9\u3001\u4eca\u56de\u306f GitHub \u3092\u9078\u3093\u3067\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8520\" data-permalink=\"https:\/\/www.agent-grow.com\/self20percent\/2018\/06\/25\/netlify-serverless-intro\/%e3%82%a2%e3%83%bc%e3%83%88%e3%83%9c%e3%83%bc%e3%83%89-2\/\" data-orig-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/6dee720f7498bb43c796216be1b36592.png\" data-orig-size=\"800,475\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/6dee720f7498bb43c796216be1b36592.png\" src=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/6dee720f7498bb43c796216be1b36592.png\" alt=\"\u5148\u7a0b\u4f5c\u6210\u3057\u305f\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u9078\u629e\" width=\"800\" height=\"475\" class=\"alignnone size-full wp-image-8520\" title=\"\u5148\u7a0b\u4f5c\u6210\u3057\u305f\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u9078\u629e\" srcset=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/6dee720f7498bb43c796216be1b36592.png 800w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/6dee720f7498bb43c796216be1b36592-300x178.png 300w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/6dee720f7498bb43c796216be1b36592-768x456.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u5148\u7a0b\u4f5c\u6210\u3057\u305f\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u9078\u629e\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8521\" data-permalink=\"https:\/\/www.agent-grow.com\/self20percent\/2018\/06\/25\/netlify-serverless-intro\/%e3%82%a2%e3%83%bc%e3%83%88%e3%83%9c%e3%83%bc%e3%83%89-3\/\" data-orig-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/49869f429542dad03d0f864f1d6c63aa.png\" data-orig-size=\"800,645\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/49869f429542dad03d0f864f1d6c63aa.png\" src=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/49869f429542dad03d0f864f1d6c63aa.png\" alt=\"\u305d\u306e\u307e\u307e Deploy Site\" width=\"800\" height=\"645\" class=\"alignnone size-full wp-image-8521\" title=\"\u305d\u306e\u307e\u307e Deploy Site\" srcset=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/49869f429542dad03d0f864f1d6c63aa.png 800w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/49869f429542dad03d0f864f1d6c63aa-300x242.png 300w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/49869f429542dad03d0f864f1d6c63aa-768x619.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u8a2d\u5b9a\u753b\u9762\u304c\u51fa\u307e\u3059\u304c\u3001\u7279\u306b\u3044\u3058\u3089\u305a\u305d\u306e\u307e\u307e <code>Deploy Site<\/code> \u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8522\" data-permalink=\"https:\/\/www.agent-grow.com\/self20percent\/2018\/06\/25\/netlify-serverless-intro\/%e3%82%a2%e3%83%bc%e3%83%88%e3%83%9c%e3%83%bc%e3%83%89-4\/\" data-orig-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/9ff084b0c9cb04d20934b8d3bf94e1a3.png\" data-orig-size=\"800,479\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"\u30a2\u30fc\u30c8\u30dc\u30fc\u30c9 4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/9ff084b0c9cb04d20934b8d3bf94e1a3.png\" src=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/9ff084b0c9cb04d20934b8d3bf94e1a3.png\" alt=\"\u6e96\u5099\u5b8c\u4e86\" width=\"800\" height=\"479\" class=\"alignnone size-full wp-image-8522\" title=\"\u6e96\u5099\u5b8c\u4e86\" srcset=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/9ff084b0c9cb04d20934b8d3bf94e1a3.png 800w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/9ff084b0c9cb04d20934b8d3bf94e1a3-300x180.png 300w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/9ff084b0c9cb04d20934b8d3bf94e1a3-768x460.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u3082\u3046\u30c7\u30d7\u30ed\u30a4\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\uff01<br \/>\n\u8d64\u67a0\u3067\u56f2\u3063\u3066\u3042\u308b\u90e8\u5206\u304c\u4f5c\u6210\u3057\u305f\u30b5\u30a4\u30c8\u306e URL \u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u666e\u901a\u306b HTML \u3092\u958b\u304f\u306e\u3067\u3042\u308c\u3070\u3053\u306e URL \u306b\u305d\u306e\u307e\u307e\u98db\u3076\u6d41\u308c\u3067\u3059\u304c\u3001<br \/>\n\u4eca\u56de\u306f <code>test.js<\/code> \u3092\u5b9f\u884c\u3055\u305b\u308b\u306e\u3067\u3057\u305f\u306d\u3002<\/p>\n<p>Netlify \u3067\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u6a5f\u80fd\u3092\u52d5\u4f5c\u3055\u305b\u308b\u306b\u306f\u3001<br \/>\n<code>https:\/\/{\u4f5c\u6210\u3055\u308c\u305f\u30c9\u30e1\u30a4\u30f3}\/.netlify\/functions\/{js\u30d5\u30a1\u30a4\u30eb\u540d(\u62e1\u5f35\u5b50\u629c\u304d)}<\/code><br \/>\n\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8523\" data-permalink=\"https:\/\/www.agent-grow.com\/self20percent\/2018\/06\/25\/netlify-serverless-intro\/5-3\/\" data-orig-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/5.png\" data-orig-size=\"771,131\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/5.png\" src=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/5.png\" alt=\"\u5b9f\u884c\u3067\u304d\u3066\u307e\u3059\uff01\" width=\"771\" height=\"131\" class=\"alignnone size-full wp-image-8523\" title=\"\u5b9f\u884c\u3067\u304d\u3066\u307e\u3059\uff01\" srcset=\"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/5.png 771w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/5-300x51.png 300w, https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/5-768x130.png 768w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/p>\n<p><code>Hello, World!<\/code> \u3068\u8868\u793a\u3055\u308c\u307e\u3057\u305f\uff01<br \/>\n\u3057\u3063\u304b\u308a\u5b9f\u884c\u3067\u304d\u3066\u307e\u3059\u306d\uff01<br \/>\n\uff08\u3061\u306a\u307f\u306b\u8a18\u4e8b\u516c\u958b\u6642\u306b\u306f\u3053\u306e\u30b5\u30a4\u30c8\u306f\u7834\u68c4\u3057\u3066\u304a\u304f\u306e\u3067\u3001\u540c\u3058\u3068\u3053\u308d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3082 404 Not Found \u306b\u306a\u308a\u307e\u3059\u3088\uff09<\/p>\n<p>\u5c11\u3057\u30dd\u30c1\u30dd\u30c1\u3057\u305f\u3060\u3051\u3067\u3001\u30b3\u30fc\u30c9\u304c\u5b9f\u884c\u3067\u304d\u308b\u72b6\u614b\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u306d\uff01<\/p>\n<h1>\u8efd\u3044\u30b3\u30fc\u30c9\u306e\u89e3\u8aac\u3068\u6ce8\u610f\u70b9<\/h1>\n<p>\u3053\u308c\u3067\u304a\u3081\u3067\u3068\u3046\uff01\u3067\u7d42\u308f\u3063\u3066\u3082\u826f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u7c21\u5358\u306b\u5185\u5bb9\u306e\u89e3\u8aac\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u306d\u3002<\/p>\n<h2>\u5b9f\u65bd\u3059\u308b\u30b3\u30fc\u30c9\u306e\u4e2d\u8eab\u306f AWS Lambda \u306e\u304a\u4f5c\u6cd5\u306b\u5f93\u3046\u3053\u3068\uff01<\/h2>\n<p>test.js \u306f\u3053\u3093\u306a\u611f\u3058\u306e\u30b3\u30fc\u30c9\u3067\u3057\u305f\u304c\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexports.handler = function(event, context, callback) {\n  callback(null, {\n    statusCode: 200,\n    body: &amp;quot;Hello, World!&amp;quot;\n  });\n};\n<\/pre>\n<p>\u300c <code>exports.handler<\/code> \u3063\u3066\u306a\u3093\u3084\u306d\u3093\uff01\u300d\u3068\u304a\u601d\u3044\u306e\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\u306d\u3002<br \/>\n\u3053\u306e Netlify \u306e\u6a5f\u80fd\u306f\u30a6\u30e9\u3067 AWS Lambda \u3092\u4f7f\u7528\u3057\u3066\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u305f\u3081\u3001<br \/>\n\u5b9f\u884c\u3059\u308b\u30b3\u30fc\u30c9\u306f AWS Lambda \u306e\u304a\u4f5c\u6cd5\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/lambda\/latest\/dg\/nodejs-prog-model-handler.html\" rel=\"noopener\" target=\"_blank\">\u3053\u306e\u8fba\uff08AWS Lambda \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u4e00\u90e8\uff09<\/a> \u3068\u304b\u3092\u898b\u3066\u3001 AWS Lambda \u3067\u5b9f\u884c\u3067\u304d\u308b\u30b3\u30fc\u30c9\u306e\u5f62\u3067\u66f8\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>netlify.toml \u306b\u306f\u6e96\u5099\u7528\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5fc5\u305a\u5165\u308c\u3066\u304a\u304f\uff01<\/h2>\n<p>netlify.toml \u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u305f\u306d\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;build]\n  command = &amp;quot;netlify-lambda build lambda&amp;quot;\n  functions = &amp;quot;lambda\/&amp;quot;\n<\/pre>\n<p><code>functions<\/code> \u306f\u3001\u5b9f\u884c\u3057\u305f\u3044\u95a2\u6570\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u76f8\u5bfe\u30d1\u30b9\u3067\u3059\u306d\u3002<br \/>\n\u4eca\u56de\u306f <code>lambda<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078 <code>test.js<\/code> \u3092\u683c\u7d0d\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<p>\u4e00\u65b9\u3001 <code>command<\/code> \u306f\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u524d\u6e96\u5099\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u3053\u308d\u3067\u3059\u3002<br \/>\n<code>netlify-lambda build {\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d}<\/code> \u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001<br \/>\n\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u7d50\u5408\u306a\u3069\u3092\u3088\u3057\u306a\u306b\u3084\u3063\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u9006\u306b\u8a00\u3046\u3068\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u3069\u3092\u4f7f\u7528\u3059\u308b\u95a2\u6570\u3092\u4f5c\u3063\u305f\u3068\u304d\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3044\u306a\u3044\u3068<br \/>\n\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u5fc5\u305a\u5b9f\u884c\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u5b9f\u884c\u53ef\u80fd\u56de\u6570\u30fb\u6642\u9593\u5236\u9650\u306b\u6ce8\u610f\uff01<\/h2>\n<p>Netlify \u306e\u3053\u306e\u6a5f\u80fd\u306b\u306f\u3001\u30d5\u30ea\u30fc\u30d7\u30e9\u30f3\u3067<\/p>\n<ul>\n<li>\u6708\u306e\u5b9f\u884c\u56de\u6570 125,000 \u56de\u307e\u3067<\/li>\n<li>\u6708\u306e\u5b9f\u884c\u6642\u9593 100 \u6642\u9593\u307e\u3067<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30c4\u30fc\u306b\u4f7f\u3063\u3066\u3044\u305f\u3089\u3042\u307e\u308a\u6c17\u306b\u3059\u308b\u5fc5\u8981\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c(1 \u65e5\u5e73\u5747 4000 \u56de\u4ee5\u4e0a\u5b9f\u884c\u3067\u304d\u307e\u3059\uff01\uff09<br \/>\n\u306a\u3093\u304b\u306e\u62cd\u5b50\u306b\u30d0\u30ba\u3063\u305f\u308a\u3059\u308b\u3068\u7d42\u308f\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u2026\u3068\u3044\u3046\u4e8b\u3092\u899a\u3048\u3066\u304a\u304f\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u79c1\u3082\u300c\u3053\u306e\u524d\u4f5c\u3063\u305f\u306e\u304c\u30d0\u30ba\u3063\u3066\u67a0\u4f7f\u3044\u5207\u3063\u305f\u2026\u300d\u3068\u304b\u8a00\u3063\u3066\u307f\u305f\u3044\u3082\u306e\u3067\u3059\u306d\uff01<\/p>\n<h1>\u7d42\u308f\u308a\u306b<\/h1>\n<p>\u4eca\u56de\u3054\u7d39\u4ecb\u3057\u305f Netlify \u3067\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3002\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\nheroku \u3068\u3044\u3044\u3053\u308c\u3068\u3044\u3044\u3001\u3068\u3063\u3066\u3082\u7c21\u5358\u306b\u30b5\u30fc\u30d3\u30b9\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3088\u306d\u3002<br \/>\n\u305c\u3072\u3001\u3053\u3046\u3044\u3063\u305f\u30b5\u30fc\u30d3\u30b9\u3092\u6d3b\u7528\u3057\u3066\u697d\u3057\u3044\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u3001\u3053\u3093\u306b\u3061\u306f\uff01 \u6c5f\u5d5c\u3067\u3059\uff01 \u4eca\u56de\u306f\u6700\u8fd1\u6d41\u884c\u308a\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3092\u30b5\u30c3\u30af\u30ea\u3068\u4f53\u9a13\u3057\u3066\u3044\u304d\u307e\u3059\u3088\uff01 \u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3068\u306f\u2026\uff1f \u300c\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3063\u3066\u4f55\u3067\u3059\u304b\uff1f\u300d\u3068\u3044\u3046\u3068\u3053\u308d\u306b\u3064\u3044\u3066\u3001 \u8a73\u3057\u3044\u8a71\u306f\u3088\u305d\u3078\u8b72\u308b\u3068\u3057\u3066\u3001\u3055\u3063\u304f\u308a\u304a\u8a71\u3059\u308b\u3068 [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":8525,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[346,344,345],"class_list":["post-8506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-netlify","tag-node-js","tag-345"],"jetpack_featured_media_url":"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2018\/06\/850c7612116999490846136e772ab7fd-4.png","jetpack_shortlink":"https:\/\/wp.me\/p7Bq4F-2dc","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/8506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/comments?post=8506"}],"version-history":[{"count":0,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/8506\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media\/8525"}],"wp:attachment":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media?parent=8506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/categories?post=8506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/tags?post=8506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}