{"id":12630,"date":"2020-12-31T12:44:52","date_gmt":"2020-12-31T03:44:52","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=12630"},"modified":"2023-04-18T22:26:10","modified_gmt":"2023-04-18T13:26:10","slug":"%e3%80%90aws%e3%80%91%e3%80%8cfargate%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=12630","title":{"rendered":"\u3010AWS\u3011\u300cFargate\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>Fargate\u3068\u306f\uff1f<\/h2>\n<p>2018\u5e746\u6708\u306b\u6b63\u5f0f\u30b5\u30fc\u30d3\u30b9\u306e\u63d0\u4f9b\u304c\u958b\u59cb\u3055\u308c\u305f\u30b5\u30fc\u30d3\u30b9\u3002ECS\u307b\u3069\u306f\u6b74\u53f2\u306f\u53e4\u304f\u306a\u3044\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u52d5\u304b\u3059\u3053\u3068\u306b\u7279\u5316\u3057\u305f\u3082\u306e\u3067\u3001ECS\u306e\u4e2d\u306e\u4ed5\u7d44\u307f\u3067\u30d5\u30eb\u30de\u30cd\u30fc\u30b8\u30c9\u30b5\u30fc\u30d3\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>ECS\u306b\u306f\u4e8c\u3064\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u52d5\u304b\u3059\u4ed5\u7d44\u307f\u304c\u3042\u308b\u3002<\/h2>\n<p>ECS\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u52d5\u304b\u3059\u65b9\u6cd5\u306b\u306f\u4ee5\u4e0b\u4e8c\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002Fargate\u306f\u305d\u306e\u3046\u3061\u306e\u4e00\u3064\u306e\u4ed5\u7d44\u307f\u306e\u4e8b\u3067\u3059\u3002<\/p>\n<ul>\n<li>EC2 on ECS<\/li>\n<li>FARGATE<\/li>\n<\/ul>\n<h3>EC2 on ECS<\/h3>\n<h4>\u30e1\u30ea\u30c3\u30c8<\/h4>\n<p>\u4f55\u304b\u304c\u8d77\u304d\u305f\u6642\u306b\u30b5\u30fc\u30d0\u30fc\u306e\u4e2d\u306b\u5165\u3063\u3066\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u304c\u3067\u304d\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u5185\u306e\u8abf\u67fb\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u8cfc\u5165\u6e08\u307f\u306e\u30ea\u30b6\u30fc\u30d6\u30c9\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u306a\u3069\u3082\u9078\u629e\u306e\u4f59\u5730\u304c\u5165\u308a\u307e\u3059\u3002<\/p>\n<h4>\u30c7\u30e1\u30ea\u30c3\u30c8<\/h4>\n<p>EC2\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u52d5\u304b\u3059\u306e\u3067\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>Fargate<\/h3>\n<h4>\u30a4\u30e1\u30fc\u30b8<\/h4>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-15437\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-12-06-15.34.35.png\" alt=\"\" width=\"1324\" height=\"556\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-12-06-15.34.35.png 1324w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-12-06-15.34.35-300x126.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-12-06-15.34.35-768x323.png 768w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2021\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2021-12-06-15.34.35-1024x430.png 1024w\" sizes=\"(max-width: 1324px) 100vw, 1324px\" \/><\/p>\n<p>1.\u958b\u767a\u8005\u304cECR\u306b\u767b\u9332(\u30d7\u30c3\u30b7\u30e5)\u3057\u307e\u3059\u3002<\/p>\n<p>2.\u958b\u767a\u8005\u306f\u30d7\u30c3\u30b7\u30e5\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u3082\u3089\u3048\u308b\u3088\u3046ECS\u4e0a\u306e\u30b3\u30f3\u30c6\u30ca\u5b9a\u7fa9\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>3.\u6307\u793a\u3092\u53d7\u3051\u305fECS\u306fFargate\u306b\u5bfe\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u306e\u30c7\u30d7\u30ed\u30a4\u3092\u652f\u6301\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30e1\u30ea\u30c3\u30c8<\/h4>\n<h5>\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9<\/h5>\n<p>\u30b5\u30fc\u30d0\u30fc\u3092\u6301\u305f\u306a\u3044\u306e\u3067<span style=\"color: #ff0000;\"><strong>\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002\u6700\u8fd1\u306f\u30b3\u30f3\u30c6\u30ca\u3092\u52d5\u304b\u3059\u305f\u3081\u306b<span style=\"color: #ff0000;\"><strong>\u30b3\u30f3\u30c6\u30ca\u3055\u3048\u52d5\u3051\u3070\u826f\u304f\u3066\u30b5\u30fc\u30d0\u30fc\u81ea\u4f53\u3092\u6301\u3061\u305f\u304f\u306a\u3044<\/strong><\/span>\u3068\u3044\u3046\u9700\u8981\u304c\u5897\u3048\u3066\u304a\u308a\u3053\u3061\u3089\u304c\u591a\u304f\u63a1\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<h5>\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3082\u3057\u3066\u304f\u308c\u308b\u3002<\/h5>\n<p>\u8ca0\u8377\u304c\u5897\u3048\u305f\u969b\u306b\u30b3\u30f3\u30c6\u30ca\u306e\u6570\u3092\u81ea\u52d5\u3067\u5897\u3084\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u52dd\u624b\u306b\u3084\u3063\u3066\u304f\u308c\u308b\u306e\u3067\u30a2\u30d7\u30ea\u306e\u958b\u767a\u306b\u5c02\u5ff5\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30c7\u30e1\u30ea\u30c3\u30c8<\/h4>\n<p>\u30b5\u30fc\u30d0\u30fc\u3092\u6301\u305f\u306a\u3044\u306e\u3067\u4f55\u304b\u304c\u8d77\u304d\u305f\u6642\u306b\u30b5\u30fc\u30d0\u30fc\u306e\u4e2d\u306b\u5165\u3063\u3066\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u304c\u57fa\u672c\u7684\u306b\u3067\u304d\u307e\u305b\u3093\u3002(\u7121\u7406\u3084\u308aSSH\u30c7\u30fc\u30e2\u30f3\u3092\u52d5\u304b\u3057\u3066\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u306f\u3042\u308b\u307f\u305f\u3044\u3067\u3059\u304c\u3002\uff09<\/p>\n<p>\u307e\u305f\u3001docker\u30b3\u30de\u30f3\u30c9\u3082\u4f7f\u3048\u306a\u3044\u306e\u3067\u30ed\u30b0\u3092\u8ffd\u3044\u3065\u3089\u3044\u3002<\/p>\n<h2>Fargate\u306e\u4ed6\u30b5\u30fc\u30d3\u30b9\u3068\u306e\u9023\u643a<\/h2>\n<p>ECS\u304cFargate\u306b\u5bfe\u3057\u3066\u30af\u30e9\u30b9\u30bf\u306e\u4f5c\u6210\u6307\u793a\u3092\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-large wp-image-12643\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-31-17.58.11-1024x504.png\" alt=\"\" width=\"1024\" height=\"504\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-31-17.58.11-1024x504.png 1024w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-31-17.58.11-300x148.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-31-17.58.11-768x378.png 768w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-12-31-17.58.11.png 1126w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<h2>Fargate\u306e\u7528\u8a9e<\/h2>\n<h3>\u30af\u30e9\u30b9\u30bf\u30fc<\/h3>\n<p>\u5358\u306a\u308b\u7bb1\u3001\u3053\u306e\u4e2d\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u52d5\u304b\u3059\u3002\u3053\u306e\u4e2d\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b5\u30fc\u30d3\u30b9<\/h3>\n<p>\u30af\u30e9\u30b9\u30bf\u30fc\u306e\u4e2d\u306b\u5165\u308a\u307e\u3059\u3002\u5fc5\u8981\u306a\u30b3\u30f3\u30c6\u30ca\u3092\u96c6\u3081\u305f\u3082\u306e\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u81ea\u5206\u305f\u3061\u304c\u7ba1\u7406\u3057\u305f\u3044\u5358\u4f4d<\/strong><\/span>\u3067\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30bf\u30b9\u30af<\/h3>\n<p>\u30b5\u30fc\u30d3\u30b9\u306e\u4e2d\u306b\u5165\u308a\u307e\u3059\u3002\u4e00\u3064\u4ee5\u4e0a\u306e\u4efb\u610f\u306e\u30b3\u30f3\u30c6\u30ca\u306e\u96c6\u307e\u308a\u3067\u3059\u3002<\/p>\n<h3>\u30bf\u30b9\u30af\u5b9a\u7fa9<\/h3>\n<p>\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3059\u308b\u30bf\u30b9\u30af\u3092\u5b9a\u7fa9\u3059\u308b\u3082\u306e\u3002\u3069\u306e\u3088\u3046\u306a\u30bf\u30b9\u30af\u304c\u52d5\u3044\u3066\u3044\u308b\u304b\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u8981\u306fDocker\u3067\u3044\u3046\u3068\u3053\u308d\u306e<span style=\"color: #ff0000;\"><strong>docker-compose.yml<\/strong><span style=\"color: #000000;\">\u306e\u4e8b\u3067\u3059\u3002\u4e0b\u8a18\u306e\u3088\u3046\u306a\u9805\u76ee\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/span><\/span><\/p>\n<ul>\n<li>\u4f55\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u3046\u304b\uff1f<\/li>\n<li>\u3069\u3093\u306a\u30b9\u30da\u30c3\u30af\u3067\u52d5\u304b\u3059\u304b\uff1f<\/li>\n<li>\u30ed\u30b0\u306f\u3069\u3046\u3059\u308b\u304b\uff1f<\/li>\n<li>\u30de\u30a6\u30f3\u30c8\u306f\u3069\u3046\u3059\u308b\u304b\uff1f<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"Fargate\u3068\u306f\uff1f 2018\u5e746\u6708\u306b\u6b63\u5f0f\u30b5\u30fc\u30d3\u30b9\u306e\u63d0\u4f9b\u304c\u958b\u59cb\u3055\u308c\u305f\u30b5\u30fc\u30d3\u30b9\u3002ECS\u307b\u3069\u306f\u6b74\u53f2\u306f\u53e4\u304f\u306a\u3044\u3002 \u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u52d5\u304b\u3059\u3053\u3068\u306b\u7279\u5316\u3057\u305f\u3082\u306e\u3067\u3001ECS\u306e\u4e2d\u306e\u4ed5\u7d44\u307f\u3067\u30d5\u30eb\u30de\u30cd\u30fc\u30b8\u30c9\u30b5\u30fc\u30d3\u30b9\u306b\u306a\u308a\u307e\u3059\u3002 EC [&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\/12630"}],"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=12630"}],"version-history":[{"count":9,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12630\/revisions"}],"predecessor-version":[{"id":18916,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12630\/revisions\/18916"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12630"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}