{"id":15403,"date":"2021-12-05T16:07:52","date_gmt":"2021-12-05T07:07:52","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=15403"},"modified":"2023-05-27T17:54:48","modified_gmt":"2023-05-27T08:54:48","slug":"%e3%80%90aws%e3%80%91%e3%80%8cecs%e3%80%8d%e3%81%ae%e3%83%87%e3%83%97%e3%83%ad%e3%82%a4%e6%88%a6%e7%95%a5","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=15403","title":{"rendered":"\u3010AWS\u3011\u300cECS\u300d\u306e\u30c7\u30d7\u30ed\u30a4\u6226\u7565"},"content":{"rendered":"<p>ECS\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u65b9\u6cd5\u306b\u306f\u8907\u6570\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e07\u304c\u4e00\u4f55\u3089\u304b\u306e\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u3001\u305d\u306e\u4f5c\u696d\u306f\u5373\u5ea7\u306b\u5b8c\u4e86\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u3002<\/p>\n<h2>\u30ed\u30fc\u30ea\u30f3\u30b0\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h2>\n<p>ECS\u306e\u30c7\u30d7\u30ed\u30a4 \u306e\u57fa\u672c\u6226\u7565\u306b\u306a\u308a\u307e\u3059\u3002\u30bf\u30b9\u30af\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u3044\u304f\u6642\u306b\u3001\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u751f\u304b\u3057\u3064\u3064\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u3044\u304f\u306e\u3067\u9806\u756a\u306b\u30b7\u30b9\u30c6\u30e0\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u304f\u69d8\u3092\u898b\u3066\u3053\u306e\u3088\u3046\u306b\u547c\u3073\u307e\u3059\u3002<\/p>\n<h3>\u30e1\u30ea\u30c3\u30c8<\/h3>\n<ul>\n<li>\u30b7\u30f3\u30d7\u30eb\u306a\u3084\u308a\u65b9<\/li>\n<li>\u30a4\u30f3\u30d5\u30e9\u3078\u306e\u5909\u66f4\u304c\u306a\u3044\u305f\u3081\u5b89\u5b9a\u3059\u308b\u3002<\/li>\n<\/ul>\n<h3>\u30c7\u30e1\u30ea\u30c3\u30c8<\/h3>\n<ul>\n<li>\u65b0\u74b0\u5883\u304b\u3089\u65e7\u74b0\u5883\u3078\u306e\u5207\u308a\u66ff\u3048\u3084\u5207\u308a\u623b\u3057\u6642\u306b\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/li>\n<li>\u3082\u3057\u30a4\u30f3\u30d5\u30e9\u306e\u5909\u66f4\u304c\u3042\u308b\u5834\u5408\u306f\u3081\u3093\u3069\u304f\u3055\u3044\u3002<\/li>\n<\/ul>\n<h2>Blue\/Green Deployment<\/h2>\n<p>\u53e4\u3044\u30c7\u30d7\u30ed\u30a4\u3068\u65b0\u3057\u3044\u30c7\u30d7\u30ed\u30a4\u304c\u540c\u6642\u306b\u6df7\u5728\u3059\u308b\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u305f\u5f8c\u306b\u3001\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u3067\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u5236\u5fa1\u306b\u3088\u3063\u3066\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u5207\u308a\u66ff\u3048\u3066\u3001\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u306a\u3057\u3067\u74b0\u5883\u3092\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/p>\n<p>\u300c\u53e4\u3044\u74b0\u5883\uff1aBlue\u300d\u3001\u300c\u65b0\u3057\u3044\u74b0\u5883\uff1aGreen\u300d\u3068\u305d\u308c\u305e\u308c\u547c\u3073\u307e\u3059\u3002<\/p>\n<h3>\u6d41\u308c<\/h3>\n<ol>\n<li>ALB\u306fBlue\u74b0\u5883\u306b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u6d41\u3059\u3002<\/li>\n<li>Green\u74b0\u5883\u306bCodeDeploy\u3067\u30c7\u30d7\u30ed\u30a4\u3092\u3059\u308b\u3002<\/li>\n<li>ALB\u306e\u5411\u304d\u5148\u3092Green\u306b\u5909\u3048\u308b\u3002<\/li>\n<li>Blue\u306f\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u306e\u305f\u3081\u306b\u4e00\u5b9a\u671f\u9593\u6b8b\u3057\u3066\u304a\u304f\u3002\uff08CodeDeploy\u306e\u8a2d\u5b9a\uff09<\/li>\n<\/ol>\n<h3>\u30e1\u30ea\u30c3\u30c8<\/h3>\n<ul>\n<li>\u65b0\u74b0\u5883\u304b\u3089\u65e7\u74b0\u5883\u3078\u306e\u5207\u308a\u66ff\u3048\u3084\u5207\u308a\u623b\u3057\u6642\u306b\u30c0\u30a6\u30f3\u30bf\u30a4\u30e0\u304c\u767a\u751f\u3057\u306a\u3044\u3002\uff08\u306a\u306e\u3067\u3001\u53d7\u8a17\u958b\u767a\u3067SLA\u3092\u88dc\u511f\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3053\u3061\u3089\u306e\u65b9\u304c\u30ed\u30fc\u30ea\u30f3\u30b0\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3088\u308a\u512a\u308c\u3066\u3044\u308b\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002\uff09<\/li>\n<li>\u30a4\u30f3\u30d5\u30e9\u69cb\u7bc9\u306fWeb\u30b3\u30f3\u30bd\u30fc\u30eb\u3060\u3051\u3067\u6e08\u3080\u3002\uff08\u30ed\u30fc\u30ea\u30f3\u30b0\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3082\u305d\u3046\u3067\u3059\u304c\u3002\uff09<\/li>\n<\/ul>\n<h3>\u30c7\u30e1\u30ea\u30c3\u30c8<\/h3>\n<ul>\n<li>\u8a2d\u5b9a\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u3002<\/li>\n<li>\u4e00\u6642\u7684\u306bAWS\u30ea\u30bd\u30fc\u30b9\u304c2\u500d\u306b\u306a\u308b\u3002<\/li>\n<\/ul>\n<h2>\u5916\u90e8\u30c7\u30d7\u30ed\u30a4<\/h2>\n<p>\u30c7\u30d7\u30ed\u30a4 \u306e\u5236\u5fa1\u3092\u5916\u90e8\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u79fb\u8b72\u3057\u307e\u3059\u3002\u6226\u7565\u306f\u591a\u5c90\u306b\u308f\u305f\u308b\u3082\u306e\u3067\u3059\u304c\u3001\u6e96\u5099\u306b\u5bfe\u3059\u308b\u6642\u9593\u3068\u30b9\u30ad\u30eb\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>CloudFormation\u306eDeploymentController\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3067 <span style=\"color: #ff0000;\"><strong>\u300ctype:EXTERNAL\u300d<\/strong> <\/span>\u3092\u6307\u5b9a\u3059\u308b\u4e8b\u3067\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u5177\u4f53\u4f8b<\/h3>\n<p>jenkins\u7b49\u306eCI\/CD\u30c4\u30fc\u30eb\u306a\u3069\u3092\u4f7f\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30e1\u30ea\u30c3\u30c8<\/h3>\n<p>\u67d4\u8edf\u306a\u30c7\u30d7\u30ed\u30a4\u6226\u7565\u3092\u3068\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30c7\u30e1\u30ea\u30c3\u30c8<\/h3>\n<p>AWS\u3084Jenkins\u306a\u3069\u69d8\u3005\u306a\u30c4\u30fc\u30eb\u3092\u4f7f\u3044\u3053\u306a\u3059\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u8a2d\u8a08\u306e\u6642\u9593\u3084\u3001\u975e\u5e38\u306b\u30b9\u30ad\u30eb\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p>Blue\/Green\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u73fe\u5728\u306f\u4e3b\u6d41\u306e\u30c7\u30d7\u30ed\u30a4\u624b\u6cd5\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002ECS\u3060\u3051\u3067\u306a\u304fKubernetes\u3092\u4f7f\u3046\u5834\u5408\u3067\u3082\u63a1\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"ECS\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u65b9\u6cd5\u306b\u306f\u8907\u6570\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002 \u4e07\u304c\u4e00\u4f55\u3089\u304b\u306e\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u3001\u305d\u306e\u4f5c\u696d\u306f\u5373\u5ea7\u306b\u5b8c\u4e86\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u3002 \u30ed\u30fc\u30ea\u30f3\u30b0\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8 ECS\u306e\u30c7\u30d7\u30ed\u30a4  [&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\/15403"}],"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=15403"}],"version-history":[{"count":7,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15403\/revisions"}],"predecessor-version":[{"id":20078,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15403\/revisions\/20078"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15403"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}