{"id":15177,"date":"2021-11-28T18:34:50","date_gmt":"2021-11-28T09:34:50","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=15177"},"modified":"2023-05-27T17:57:07","modified_gmt":"2023-05-27T08:57:07","slug":"%e3%80%90aws%e3%80%91%e3%80%8clambda%e3%80%8d%e3%81%a8%e3%80%8cfargate%e3%80%8d%e3%81%ae%e4%bd%bf%e3%81%84%e5%88%86%e3%81%91","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=15177","title":{"rendered":"\u3010AWS\u3011\u300cLambda\u300d\u3068\u300cFargate\u300d\u306e\u4f7f\u3044\u5206\u3051"},"content":{"rendered":"<p>\u3069\u3061\u3089\u3082\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3092\u8b33\u3046\u30b5\u30fc\u30d3\u30b9\u306a\u306e\u3067\u3059\u304c\u4f7f\u3044\u5206\u3051\u306f\u3069\u3046\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h2>\u5b9f\u884c\u74b0\u5883<\/h2>\n<h3>Lambda<\/h3>\n<p>\u4f7f\u7528\u3067\u304d\u308b\u30e9\u30f3\u30bf\u30a4\u30e0\u306f\u6c7a\u307e\u3063\u3066\u3044\u308b\u3002\u30c7\u30d7\u30ed\u30a4\u74b0\u5883\u306b\u3082\u5236\u7d04\u304c\u3042\u308b\uff08\u3068\u3044\u3046\u304b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u3044\uff09\u306e\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067Next.js\u3084Nuxt.js\u306a\u3069\u306eSSR\u306e\u5b9f\u884c\u74b0\u5883\u3067\u306f\u4f7f\u3048\u306a\u3044\u3067\u3059\u3002ECS\u3092\u4f7f\u3063\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001PHP\u306eLaravel\u3084Ruby\u306eRails\u306a\u3069\u306e\u30e2\u30ce\u30b7\u30ea\u30c3\u30af\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5834\u5408\u306f\u3053\u3061\u3089\u3067\u3082\u4f7f\u3048\u307e\u3059\u3002\uff08\u4e00\u90e8\u8a00\u8a9e\u306b\u3088\u3063\u3066\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3082\u3042\u308b\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002Node.js\u306a\u3069\u3002\uff09<\/p>\n<h3>ECS on Fargate<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u7528\u610f\u3057\u305fDocker\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u958b\u767a\u8a00\u8a9e\u306b\u5236\u9650\u304c\u306a\u304f\u3001\u5b9f\u884c\u74b0\u5883\u306e\u69cb\u7bc9\u306e\u81ea\u7531\u5ea6\u304c\u9ad8\u3044\u3002<\/p>\n<p>\u3082\u3057\u30a4\u30f3\u30d5\u30e9\u306e\u67d4\u8edf\u6027\u304c\u6c42\u3081\u3089\u308c\u308b\u306e\u3067\u3042\u308c\u3070\u3053\u3061\u3089\u306e\u65b9\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2>\u5b66\u7fd2\u30b3\u30b9\u30c8<\/h2>\n<p>Fargate\u306f\u30b3\u30f3\u30c6\u30ca\u3084\u30b3\u30f3\u30c6\u30ca\u30aa\u30fc\u30b1\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u77e5\u8b58\u304c\u5fc5\u8981\u3060\u304c\u3001Lambda\u306f\u95a2\u6570\u3084\u5b9f\u884cOS\u306b\u95a2\u3059\u308b\u77e5\u8b58\u3092\u6291\u3048\u308b\u3060\u3051\u306a\u306e\u3067\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u4f4e\u3081\u3002<\/p>\n<h2>\u6599\u91d1<\/h2>\n<p>\u5e38\u6642\u30b3\u30f3\u30c6\u30ca\u306b\u6599\u91d1\u304c\u304b\u304b\u3063\u3066\u304f\u308b\u306e\u3067Fargate\u306e\u65b9\u304c\u304b\u306a\u308a\u9ad8\u3044\u3002Lambda\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3042\u3063\u305f\u5206\u3060\u3051\u30b3\u30b9\u30c8\u304c\u304b\u304b\u3063\u3066\u304f\u308b\u3002\uff08\u5c11\u306a\u3044\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308c\u3070\u5b9f\u8cea\u7121\u6599\u306b\u306a\u308a\u307e\u3059\u3002\uff09<\/p>\n<h2>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u79fb\u884c\u30b3\u30b9\u30c8<\/h2>\n<p>\u3082\u3057\u3001\u65e2\u5b58\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u30b3\u30f3\u30c6\u30ca\u30d9\u30fc\u30b9\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308c\u3070Fargate\u3082lambda\u3082\u79fb\u884c\u30b3\u30b9\u30c8\u306f\u5909\u308f\u3089\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u30b3\u30f3\u30c6\u30ca\u30d9\u30fc\u30b9\u3067\u306f\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u3060\u3051\u3067\u6e08\u3080Lambda\u306b\u8ecd\u914d\u304c\u4e0a\u304c\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30ea\u30bd\u30fc\u30b9<\/h2>\n<h3>Lambda<\/h3>\n<p>Lambda\u95a2\u6570\u306e\u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u306a\u3069\u306e\u5909\u66f4\u306f\u53ef\u80fd\u3002<\/p>\n<h3>Fargate<\/h3>\n<p>\u5272\u308a\u5f53\u3066\u53ef\u80fd\u306avCPU\u3068\u30e1\u30e2\u30ea\u306e\u7d44\u307f\u5408\u308f\u305b\u306f\u7528\u610f\u3055\u308c\u3066\u3044\u3066\u30e6\u30fc\u30b6\u30fc\u306f\u9078\u629e\u3059\u308b\u3002<\/p>\n<h2>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h2>\n<p>\u57fa\u672c\u7684\u306b\u306f\u3001\u307e\u305aLambda\u3067\u5b9f\u73fe\u3067\u304d\u306a\u3044\u304b\u3092\u8003\u3048\u3066Lambda\u3067\u5b9f\u73fe\u304c\u96e3\u3057\u3044\u3053\u3068\u306fFargate\u306b\u4efb\u305b\u308b\u3068\u3044\u3046\u601d\u8003\u3067\u8003\u3048\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>Lambda<\/h3>\n<ul>\n<li>\u666e\u901a\u306eCRUD\u306e\u3042\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u30a4\u30d9\u30f3\u30c8\u30c8\u30ea\u30d6\u30f3\uff09\u306e\u5229\u7528<\/li>\n<li>\u5c0f\u898f\u6a21\u306e\u30a2\u30d7\u30ea<\/li>\n<li>\u77ed\u3044\u51e6\u7406(\u51e6\u7406\u6642\u959315\u5206\u4ee5\u4e0b)<\/li>\n<\/ul>\n<h3>Fargate<\/h3>\n<ul>\n<li>\u4f55\u5341\u5206\u3082\u304b\u304b\u308b\u3088\u3046\u306a\u91cd\u305f\u3044\u51e6\u7406\u3084\u3001\u9577\u6642\u9593\u52d5\u4f5c\u304c\u5fc5\u8981\u306aWeb\u3084\u30e2\u30d0\u30a4\u30eb\u3001Paas\u306a\u3069\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u958b\u767a<\/li>\n<li>\u5bb9\u91cf\u306e\u5927\u304d\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u6271\u3046\u51e6\u7406<\/li>\n<li>docker-compose\u3092\u5229\u7528\u3057\u305f\u3044\u5834\u5408<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u3069\u3061\u3089\u3082\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3092\u8b33\u3046\u30b5\u30fc\u30d3\u30b9\u306a\u306e\u3067\u3059\u304c\u4f7f\u3044\u5206\u3051\u306f\u3069\u3046\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002 \u5b9f\u884c\u74b0\u5883 Lambda \u4f7f\u7528\u3067\u304d\u308b\u30e9\u30f3\u30bf\u30a4\u30e0\u306f\u6c7a\u307e\u3063\u3066\u3044\u308b\u3002\u30c7\u30d7\u30ed\u30a4\u74b0\u5883\u306b\u3082\u5236\u7d04\u304c\u3042\u308b\uff08\u3068\u3044\u3046\u304b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u3044\uff09\u306e\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067N [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[80],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15177"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15177"}],"version-history":[{"count":6,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15177\/revisions"}],"predecessor-version":[{"id":20083,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15177\/revisions\/20083"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15177"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}