{"id":12584,"date":"2020-12-29T20:52:27","date_gmt":"2020-12-29T11:52:27","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=12584"},"modified":"2023-11-10T23:58:40","modified_gmt":"2023-11-10T14:58:40","slug":"%e3%80%90aws%e3%80%91%e3%80%8cecr%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=12584","title":{"rendered":"\u3010AWS\u3011\u300cECR\u300d\u3001\u300cApp Runner\u300d\u306a\u3069"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">ECR(Elastic Container Registroy)\u3068\u306f\uff1f<\/h2>\n\n\n\n<p>\u30b3\u30f3\u30c6\u30ca\u306e\u30a4\u30e1\u30fc\u30b8\u3092AWS\u3067\u697d\u306b\u7ba1\u7406\u3059\u308b\u30b5\u30fc\u30d3\u30b9(Git\u306e\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3001Docker Hub\u306eAWS\u7248\uff09\u3001<span style=\"color: #ff0000;\"><strong>\u30d5\u30eb\u30de\u30cd\u30fc\u30b8\u30c9\u306a\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u30ea\u30dd\u30b8\u30c8\u30ea<\/strong><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6ce8\u610f\u70b9<\/h2>\n\n\n\n<p>ECR\u306fVPC\u5185\u3067\u306f\u306a\u304f\u3001\u30ea\u30fc\u30b8\u30e7\u30f3\u3054\u3068\u306b\u5b58\u5728\u3059\u308b\u30ea\u30fc\u30b8\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\u306a\u306e\u3067VPC\u5185\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u5411\u3051\u306eOutbound\u901a\u4fe1\u304b\u3001VPC\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u3088\u308b\u5185\u90e8\u30a2\u30af\u30bb\u30b9\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ed5\u7d44\u307f<\/h2>\n\n\n\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u3044\u3046\u5358\u4f4d\u3067\u30a4\u30e1\u30fc\u30b8\u3092\u7a4d\u307f\u4e0a\u3052\u307e\u3059\u3002\u30ed\u30fc\u30ab\u30eb\u3067\u4f5c\u6210\u3057\u305fDocker\u30a4\u30e1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7279\u5fb4<\/h2>\n\n\n\n<ul>\n<li>\u4fdd\u7ba1\u30a4\u30e1\u30fc\u30b8\u306f\u81ea\u52d5\u7684\u306b\u6697\u53f7\u5316\u3055\u308c\u308b\u3002<\/li>\n\n\n\n<li>\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u304b\u3064\u9ad8\u3044\u53ef\u7528\u6027<\/li>\n\n\n\n<li>Docker Hub\u3068\u540c\u3058\u3088\u3046\u306bDocker CLI\u304b\u3089\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d7\u30c3\u30b7\u30e5\u30b3\u30de\u30f3\u30c9<\/h2>\n\n\n\n<p>AWS CLI\u3092\u5229\u7528\u3057\u3066ECR\uff08Docker\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8a8d\u8a3c\uff09\u306b\u63a5\u7d9a\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">aws ecr get-login-password --region\u3000xxx...<\/pre>\n\n\n\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u30d7\u30c3\u30b7\u30e5\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u30a4\u30e1\u30fc\u30b8\u306b\u30bf\u30b0\u3092\u7d10\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker tag ECR\u306e\u30ea\u30dd\u30b8\u30c8\u30ea:latest ECR\u306e\u30ea\u30dd\u30b8\u30c8\u30ea:latest<\/pre>\n\n\n\n<p>docker\u30a4\u30e1\u30fc\u30b8\u3092\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u306b\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker images ls<\/pre>\n\n\n\n<p>\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u30a4\u30e1\u30fc\u30b8\u30ec\u30b8\u30b9\u30c8\u30ea\u306bdocker\u30d7\u30c3\u30b7\u30e5\u3092\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker push ...<\/pre>\n\n\n\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u305f\u65e5\u6642\u304cECS\u4e0a\u306b\u8a18\u9332\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">App Runner<\/h2>\n\n\n\n<p>2021\u5e745\u6708\u306b\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u30ec\u30d9\u30eb\u3067\u30b9\u30b1\u30fc\u30eb\u53ef\u80fd\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7d20\u65e9\u304f\u5c55\u958b\u3059\u308b\u305f\u3081\u306e\u30de\u30cd\u30fc\u30b8\u30c9\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u8005\u304c\u3088\u308a\u7c21\u5358\u306b\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b\u3053\u3068\u3092\u4e3b\u773c\u3092\u7f6e\u3044\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3067\u304d\u308b\u3053\u3068<\/h3>\n\n\n\n<ul>\n<li>GitHub\u3068\u9023\u643a\u3057\u3066\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092App Runner\u4e0a\u306b\u30d3\u30eb\u30c9&amp;\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b\u3002<\/li>\n\n\n\n<li>ECR\u306e\u30d3\u30eb\u30c9\u6e08\u307f\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3082\u5373\u5ea7\u306b\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<p>ECS\u3068Fargate\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3001\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u3001CI\/CD\u8a2d\u5b9a\u7b49\u306e\u30a4\u30f3\u30d5\u30e9\u30ec\u30a4\u30e4\u5468\u308a\u306e\u8a2d\u5b9a\u3092\u6574\u3048\u308b\u5fc5\u8981\u6027\u304c\u3042\u308b\u3002\u3064\u307e\u308a\u3001\u30a4\u30f3\u30d5\u30e9\u5468\u308a\u306e\u30b9\u30ad\u30eb\u304c\u3042\u308b\u7a0b\u5ea6\u5fc5\u8981\u306b\u306a\u308b\u3002App Runner\u306f\u30a4\u30f3\u30d5\u30e9\u5468\u8fba\u306e\u77e5\u8b58\u3092\u30d6\u30e9\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u5316\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"ECR(Elastic Container Registroy)\u3068\u306f\uff1f \u30b3\u30f3\u30c6\u30ca\u306e\u30a4\u30e1\u30fc\u30b8\u3092AWS\u3067\u697d\u306b\u7ba1\u7406\u3059\u308b\u30b5\u30fc\u30d3\u30b9(Git\u306e\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3067\u3001Docker Hub\u306eAWS\u7248\uff09\u3001\u30d5\u30eb\u30de\u30cd\u30fc\u30b8\u30c9\u306a\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30b3\u30f3\u30c6\u30ca\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\/12584"}],"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=12584"}],"version-history":[{"count":12,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12584\/revisions"}],"predecessor-version":[{"id":23815,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/12584\/revisions\/23815"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12584"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}