
{"id":16,"date":"2021-04-13T12:00:00","date_gmt":"2021-04-13T03:00:00","guid":{"rendered":"https:\/\/techmania.rensa.jp.net\/?p=16"},"modified":"2023-08-02T11:56:10","modified_gmt":"2023-08-02T02:56:10","slug":"aws0002","status":"publish","type":"post","link":"https:\/\/techmania.jp\/blog\/aws0002\/","title":{"rendered":"\u3010AWS\u3011\u67d4\u8edf\u306a\u30ea\u30bd\u30fc\u30b9\u914d\u5206\u3092\u53ef\u80fd\u306b\u3059\u308bAuto Scaling"},"content":{"rendered":"\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u304c\u5897\u5927\u3057\u305f\u305f\u3081\u5897\u53f0\u3057\u305f\u3044\u304c\u3001\u30b3\u30b9\u30c8\u7684\u306b\u666e\u6bb5\u306f\u505c\u6b62\u3057\u3066\u304a\u304d\u305f\u3044\u3002<br>\u3057\u304b\u3057\u624b\u52d5\u3067\u64cd\u4f5c\u3057\u3066\u3044\u3066\u306f\u4eba\u7684\u30b3\u30b9\u30c8\u304c\u5897\u52a0\u3057\u3066\u3057\u307e\u3046\u3002<br><br>\u3053\u3046\u3044\u3063\u305f\u7d4c\u9a13\u306f\u7121\u3044\u3067\u3057\u3087\u3046\u304b\u3002<br>\u3082\u3057\u304b\u3057\u305f\u3089\u305d\u306e\u60a9\u307f\u3001<strong>AWS AutoScaling \u3067\u30b5\u30fc\u30d0\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/strong><br><br><\/p>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">\u305d\u3082\u305d\u3082AWS Auto Scaling\u3068\u306f\uff1f<\/h2>\n\n\n<p>AWS Auto Scaling \u306f\u3001\u8907\u6570\u306e\u30b5\u30fc\u30d3\u30b9\u306b\u307e\u305f\u304c\u308b\u8907\u6570\u306e AWS \u30ea\u30bd\u30fc\u30b9\u3092\u7c21\u5358\u304b\u3064\u5b89\u5168\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u7dad\u6301\u3067\u304d\u308b\u3088\u3046\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u76e3\u8996\u3057\u3001\u81ea\u52d5\u3067\u5bb9\u91cf\u306e\u5897\u6e1b\uff08\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\uff09\u3092\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002AWS Auto Scaling \u3092\u4f7f\u3048\u3070\u53ef\u80fd\u306a\u9650\u308a\u30b3\u30b9\u30c8\u3092\u524a\u6e1b\u3057\u3064\u3064\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316\u3092\u56f3\u308c\u307e\u3059\u3002<\/p>\n<p>AWS Auto Scaling \u306f\u3001\u4e3b\u306b\u6b21\u306e\u3088\u3046\u306a\u30ea\u30bd\u30fc\u30b9\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u30d7\u30e9\u30f3\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>Amazon EC2\u306b\u304a\u3051\u308b\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u30b9\u30dd\u30c3\u30c8\u30d5\u30ea\u30fc\u30c8 \uff08\u30b9\u30dd\u30c3\u30c8\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30bb\u30c3\u30c8\uff09<\/li>\n<li>Amazon ECS \u30bf\u30b9\u30af \uff08AWS\u4e0a\u3067Docker\u3092\u4f7f\u3046\u305f\u3081\u306e\u30b5\u30fc\u30d3\u30b9\uff09<\/li>\n<li>Amazon DynamoDB \uff08NoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\uff09 \u306b\u304a\u3051\u308b\u30c6\u30fc\u30d6\u30eb\u3068\u30a4\u30f3\u30c7\u30c3\u30af\u30b9<\/li>\n<li>Amazon Aurora \uff08Amazon RDS\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u306e\u4e00\u3064\uff09 \u306b\u304a\u3051\u308b\u30ec\u30d7\u30ea\u30ab<\/li>\n<\/ul>\n\n\n<h3 id=\"outline__1_1\" class=\"wp-block-heading\">AWS Auto Scaling\u3067\u3067\u304d\u308b\u3053\u3068<\/h3>\n\n\n<p>\u30a2\u30af\u30bb\u30b9\u3084\u9700\u8981\u306b\u5bfe\u3059\u308b\u5bb9\u91cf\u3092\u5e38\u306b\u6700\u5927\u5024\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3068\u3001\u4f59\u5206\u306a\u30b3\u30b9\u30c8\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u767a\u751f\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u6bce\u56de\u3001\u4eba\u9593\u304c\u5bb9\u91cf\u306e\u5897\u6e1b\u3092\u4e88\u6e2c\u3057\u3001\u9069\u5207\u306a\u5224\u65ad\u3092\u3059\u308b\u306e\u306f\u56f0\u96e3\u3067\u3059\u3057\u3001\u4e88\u6e2c\u304c\u5916\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002<br>\u3053\u3093\u306a\u5834\u5408\u3001AWS Auto Scaling \u3092\u6d3b\u7528\u3059\u308c\u3070\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5bb9\u91cf\u3092\u5897\u6e1b\u3067\u304d\u3001\u30b3\u30b9\u30c8\u3084\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6700\u9069\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<div style=\"margin-top:4%;\">\n<p style=\"text-align:center; text-decoration:underline blue; font-weight:bold;\"><a href=\"https:\/\/techmania.jp\/lp\/2\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e\u304b\u3089\u30b5\u30a4\u30c8\u5236\u4f5c\u307e\u3067<br>\u2193\u5b9f\u8df5\u529b\u304c\u8eab\u306b\u3064\u304f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u2193<\/a><\/p>\n<\/div>\n<div style=\"text-align:center; margin-top:1%;\"><a href=\"https:\/\/techmania.jp\/lp\/2\"><img decoding=\"async\" style=\"width:300px;\" alt=\"IT\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u6821 \u30c6\u30c3\u30af\u30de\u30cb\u30a2\u30b9\u30af\u30fc\u30eb\" src=\"https:\/\/techmania.jp\/blog\/wp-content\/uploads\/2023\/05\/sc4.jpg\"><\/a><\/div>\n<div style=\"margin-top:-0.3%;\">\n<p style=\"text-align:center; text-decoration:underline red; font-weight:bold;\"><a href=\"https:\/\/techmania.jp\/lp\/2\"><font color=\"red\">\u226b\u30e2\u30cb\u30bf\u30fc\u5272\u5f15\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u5b9f\u65bd\u4e2d\uff01\u226a<\/font><\/a><\/p>\n<\/div>\n\n\n<h3 id=\"outline__1_2\" class=\"wp-block-heading\">AWS Auto Scaling\u306e\u6599\u91d1<\/h3>\n\n\n<p>AWS Auto Scaling \u81ea\u4f53\u306e\u5229\u7528\u306f\u7121\u6599\u3067\u3059\u304c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u306e\u6599\u91d1\u3068 Amazon CloudWatch \u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306b\u306f\u6599\u91d1\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u3069\u3061\u3089\u3082\u4f7f\u7528\u91cf\u306b\u5fdc\u3058\u3066\u4fa1\u683c\u304c\u5909\u52d5\u3059\u308b\u5f93\u91cf\u8ab2\u91d1\u5236\u306a\u306e\u3067\u3001\u904e\u5ea6\u306a\u652f\u51fa\u3092\u6291\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\" id=\"\u3053\u306e\u8a18\u4e8b\u306e\u5bfe\u8c61\u8005\"><em>\u3053\u306e\u8a18\u4e8b\u306e\u5bfe\u8c61\u8005<\/em><\/h2>\n\n\n<ul>\n<li>\u65e2\u5b58\u306e\u30b5\u30fc\u30d0\u74b0\u5883\u306e\u904b\u7528\u3067\u60a9\u3093\u3067\u305f\u308a\u3001\u65b0\u3057\u304f\u30b5\u30fc\u30d0\u3092\u4f5c\u308b\u306b\u3042\u305f\u3063\u3066 AWS AutoScaling \u3092\u4f7f\u3044\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u308b\u65b9\u3002<\/li>\n<li>Web \u30b5\u30fc\u30d0\u306e\u69cb\u7bc9\u624b\u9806\u81ea\u4f53\u306f\u5272\u611b\u3059\u308b\u305f\u3081 Linux \u3092\u7528\u3044\u305f Apache \u3084 Nginx \u3067\u306e Web \u30b5\u30fc\u30d3\u30b9\u69cb\u7bc9\u7d4c\u9a13\u3092\u6709\u3059\u308b\u65b9\u3002<\/li>\n<\/ul>\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\" id=\"\u672c\u8a2d\u5b9a\u624b\u9806\u306e\u60f3\u5b9a\u4f5c\u696d\u6642\u9593\"><em>\u672c\u8a2d\u5b9a\u624b\u9806\u306e\u60f3\u5b9a\u4f5c\u696d\u6642\u9593<\/em><\/h2>\n\n\n\n<p>30 \u5206 ~ 1\u6642\u9593<\/p>\n\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\" id=\"aws-autoscaling-\u3068\u306f\"><em>\u6280\u8853\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u8996\u70b9\u3067\u306eAWS AutoScaling<\/em><\/h2>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p><br>AWS \u306e\u6280\u8853\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u7684\u6982\u8981\u3067\u8a00\u3048\u3070\u300cAuto Scaling\u30b0\u30eb\u30fc\u30d7\u3068\u547c\u3070\u308c\u308b EC2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u96c6\u5408\u4f53\u300d\u3068\u306a\u308a\u307e\u3059\u3002<br><br>\u305d\u308c\u3067\u306f\u5206\u304b\u308a\u306b\u304f\u3044\u306e\u3067\u8981\u7d04\u3057\u3066\u8aac\u660e\u3059\u308b\u3068\u69cb\u6210\u81ea\u4f53\u306f gw \u304b\u3089 app \u9593\u3067\u306e\u8ca0\u8377\u5206\u6563\u74b0\u5883\u3067\u3059\u304c\u3001<strong>AutoScaling \u3092\u5c0e\u5165\u3059\u308b\u3068 app \u30b5\u30fc\u30d0\u306e\u53f0\u6570\u3092\u3044\u3064\u3067\u3082\u5897\u6e1b\u3067\u304d\u308b<\/strong>\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br>\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u306f\u8ca0\u8377\u72b6\u6cc1\u306b\u5fdc\u3058\u305f\u81ea\u52d5\u5897\u6e1b\u3082\u53ef\u80fd\u3068\u306a\u308b\u3067\u3057\u3087\u3046\u3002<br><br>\u4fbf\u5229\u3067\u3059\u306d\uff01<\/p>\n<\/div><\/div>\n\n\n\n<h2 id=\"outline__5\" class=\"wp-block-heading\" id=\"\u5177\u4f53\u7684\u306a\u624b\u9806\"><em>\u5c0e\u5165\u624b\u9806<\/em><\/h2>\n\n\n\n<p>\u5c0e\u5165\u306b\u306f\u4ee5\u4e0b\u306e\u4f5c\u696d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"has-white-color has-text-color has-background wp-block-list\" style=\"background:linear-gradient(135deg,rgb(7,7,7) 3%,rgb(0,0,0) 50%,rgb(83,129,65) 100%)\">\n<li>\u30b5\u30fc\u30d0\u5897\u7bc9\u6642\u3001Template \u3068\u3059\u308b EC2 Instance \u306e\u69cb\u7bc9<\/li>\n\n\n\n<li>EC2 Instance \u306e AMI Image \u306e\u4f5c\u6210<\/li>\n\n\n\n<li>ELB(gw) \u306b\u9069\u7528\u3059\u308b target group \u306e\u4f5c\u6210<\/li>\n\n\n\n<li>ELB(gw) \u306e\u4f5c\u6210<\/li>\n\n\n\n<li>AutoScaling \u8d77\u52d5\u8a2d\u5b9a\u306e\u4f5c\u6210 ( Launch Configrations )<\/li>\n\n\n\n<li>AutoScalingGroup \u306e\u4f5c\u6210<\/li>\n\n\n\n<li>\u5b9f\u969b\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u65e9\u901f\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<br>\u5404\u30b9\u30c6\u30c3\u30d7\u306e\u89e3\u8aac\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<br><\/p>\n\n\n\n<h3 id=\"outline__5_1\" class=\"wp-block-heading\" id=\"\u624b\u98061-\u30b5\u30fc\u30d0\u5897\u7bc9\u6642-template-\u3068\u3059\u308b-ec2-instance-\u306e\u69cb\u7bc9\">\u624b\u98061. \u30b5\u30fc\u30d0\u5897\u7bc9\u6642\u3001Template \u3068\u3059\u308b EC2 Instance \u306e\u69cb\u7bc9<\/h3>\n\n\n\n<p>\u307e\u305a\u306f AWS Management Console \u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001EC2 Instance \u3092\u7acb\u3061\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002<br>EC2 Instance \u306e\u4f5c\u6210\u624b\u9806\u306b\u95a2\u3057\u3066\u306f\u672c\u8a18\u4e8b\u306e\u4e3b\u984c\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u7c21\u5358\u306a\u624b\u9806\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br><\/p>\n\n\n\n<ol class=\"has-white-color has-text-color has-background wp-block-list\" style=\"background:linear-gradient(135deg,rgb(0,0,0) 0%,rgb(0,0,0) 50%,rgb(0,107,24) 94%)\">\n<li>AWS Management Console \u306b\u63a5\u7d9a\u3059\u308b\u3002<\/li>\n\n\n\n<li>EC2 \u30b5\u30fc\u30d3\u30b9\u306e\u7ba1\u7406\u753b\u9762\u3092\u958b\u304f\u3002<\/li>\n\n\n\n<li>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4e00\u89a7\u753b\u9762\u3092\u958b\u304f\u3002<\/li>\n\n\n\n<li>\u300c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8d77\u52d5\u300d\u30dc\u30bf\u30f3\u3067 EC2 Instance \u306e\u4f5c\u6210\u30a6\u30a3\u30b6\u30fc\u30c9\u3092\u958b\u304f\u3002<\/li>\n\n\n\n<li>\u300cAMI \u306e\u9078\u629e\u300d\u3067\u3001\u7279\u6bb5\u6307\u5b9a\u304c\u306a\u3051\u308c\u3070\u300c<strong>Amazon Linux 2 AMI&nbsp;<\/strong>\u300d\u3092\u9078\u629e\u3059\u308b\u3002<\/li>\n\n\n\n<li>\u300c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30bf\u30a4\u30d7\u306e\u9078\u629e\u300d\u3067\u306f\u7121\u6599\u30d7\u30e9\u30f3\u5bfe\u8c61\u3067\u3042\u308b\u300ct2.micro\u300d\u3092\u9078\u629e\u3057\u3001\u300c\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u300d<\/li>\n\n\n\n<li>\u300c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u8a73\u7d30\u306e\u8a2d\u5b9a\u300d\u3067\u306f\u8a2d\u5b9a\u5909\u66f4\u306a\u3057\u3067\u300c\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u300d<\/li>\n\n\n\n<li>\u300c\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u8ffd\u52a0\u300d\u3067\u306f\u5fc5\u8981\u306a\u30b9\u30c8\u30ec\u30fc\u30b8\u5bb9\u91cf\u3092\u5165\u529b\u3057\u3001\u300c\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u300d<\/li>\n\n\n\n<li>\u300c\u30bf\u30b0\u306e\u8ffd\u52a0\u300d\u3067\u306f Management Console \u4e0a\u3067\u306e\u8868\u793a\u540d\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u3001\u30ad\u30fc\u300cName\u300d\u306e value \u3092\u8ffd\u52a0\u3001\u5024\u306b\u306f\u30b5\u30fc\u30d0\u540d\u3092\u5165\u529b\u3059\u308b\u3002Auto Scaling \u306e template \u3092\u4f5c\u308b\u305f\u3081\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u306a\u308b\u305f\u3081\u3001&lt;ServerName&gt;_base \u3068\u3044\u3063\u305f\u540d\u79f0\u3060\u3068\u7ba1\u7406\u3057\u3084\u3059\u3044\u3002<\/li>\n\n\n\n<li>\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u300d\u3067\u306f\u300c\u65b0\u3057\u3044\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b\u300d\u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u540d\u3001\u958b\u653e\u3057\u305f\u3044\u30dd\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u3001\u300c\u78ba\u8a8d\u3068\u4f5c\u6210\u300d<\/li>\n\n\n\n<li>\u300c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210\u306e\u78ba\u8a8d\u300d\u3067\u8a2d\u5b9a\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3001\u554f\u984c\u306a\u3051\u308c\u3070\u300c\u8d77\u52d5\u300d<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u308c\u306b\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210\u6642\u306b pem \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u304b\u78ba\u8a8d\u304c\u5165\u308b\u305f\u3081\u3001<strong>\u65e2\u5b58\u306e pem \u304c\u306a\u3051\u308c\u3070\u65b0\u898f\u4f5c\u6210\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304a\u304f\u3053\u3068\u3067 ssh \u63a5\u7d9a\u304c\u53ef\u80fd<\/strong>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306f web \u30b5\u30fc\u30d3\u30b9\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u308b\u305f\u3081 apache \u304b nginx \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001web \u30b5\u30fc\u30d3\u30b9\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u79fb\u884c\u306e\u624b\u9806\u306f\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br>\u5c55\u958b\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u306b\u5408\u308f\u305b\u3066\u9069\u5207\u306a\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u53ca\u3073\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_2\" class=\"wp-block-heading\" id=\"\u624b\u98062-ec2-instance-\u306e-ami-image-\u306e\u4f5c\u6210\">\u624b\u98062. EC2 Instance \u306e AMI Image \u306e\u4f5c\u6210<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img01.png\" class=\"post-img\">\n\n\n\n<p>\u5c55\u958b\u5143\u3068\u306a\u308b EC2 Instance \u306e\u69cb\u7bc9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u6b21\u306f AMI Image \u306e\u4f5c\u6210\u3067\u3059\u3002<br>\u3053\u3053\u3067\u4f5c\u6210\u3059\u308b AMI Image \u304c AutoScaling \u3067\u30b5\u30fc\u30d0\u3092\u5c55\u958b\u3059\u308b\u969b\u306e\u571f\u53f0\u3068\u306a\u308a\u307e\u3059\u3002<br><br>\u3067\u306f EC2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4e00\u89a7\u753b\u9762\u3092\u958b\u304d\u3001\u30b5\u30fc\u30d0\u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u300d-\u300c\u30a4\u30e1\u30fc\u30b8\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u300d-\u300c\u30a4\u30e1\u30fc\u30b8\u306e\u4f5c\u6210\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<p>\u300c<strong>\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210<\/strong>\u300d\u753b\u9762\u3067\u306f\u53d6\u5f97\u3059\u308b AMI Image \u306e\u540d\u524d\u3001\u8a2d\u5b9a\u3001\u30bf\u30b0\u3092\u8a2d\u5b9a\u3057\u3001\u753b\u9762\u53f3\u4e0b\u306e\u300c\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><br>\u540d\u524d\u306f\u5f8c\u304b\u3089\u5909\u66f4\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u3044\u3064\u4f5c\u3063\u305f\u306e\u304b\u4e00\u76ee\u3067\u5206\u304b\u308a\u4e14\u3064\u6df7\u4e71\u3057\u306a\u3044\u3088\u3046\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u4f8b\u306e\u3088\u3046\u306b\u672b\u5c3e\u306b\u65e5\u4ed8\u6642\u523b\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u4fbf\u5229\u3067\u3059\u3002<br><br>\u8a2d\u5b9a\u4f8b\u3000\uff1a\u3000ServerName_base_202104081136<br><br>fix \u3084 last \u3068\u3044\u3063\u305f\u66d6\u6627\u306a\u8868\u73fe\u306f\u5c06\u6765\u7684\u306b\u7ba1\u7406\u304c\u96e3\u3057\u304f\u306a\u308b\u305f\u3081\u4f7f\u308f\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_3\" class=\"wp-block-heading\" id=\"\u624b\u98063-elb-gw-\u306b\u9069\u7528\u3059\u308b-target-group-\u306e\u4f5c\u6210\">\u624b\u98063. ELB(gw) \u306b\u9069\u7528\u3059\u308b target group \u306e\u4f5c\u6210<\/h3>\n\n\n\n<p>EC2 \u30b5\u30fc\u30d3\u30b9\u306e\u7ba1\u7406\u753b\u9762\u3067 ELB \u3082\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<br><br>\u307e\u305a\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u304b\u3089\u4f5c\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br>\u5de6\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u300c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u300d\u306e\u300c\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img02.png\" class=\"post-img\">\n\n\n\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u4e00\u89a7\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u305f\u3081\u3001\u300cCreate target group\u300d\u304b\u3089\u65b0\u898f\u4f5c\u6210\u753b\u9762\u3092\u958b\u304d\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img03.png\" class=\"post-img\">\n\n\n\n<p>\u300cSpecify group details\u300d\u3067\u306f\u8a2d\u5b9a\u4f8b\u3092\u53c2\u8003\u306b\u5165\u529b\u3057\u3001\u6b21\u306e\u753b\u9762\u3078\u9032\u307f\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img04.png\" class=\"post-img\">\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">&#8211; \u8a2d\u5b9a\u4f8b &#8211;<br><br>Basic configuration<br>\u3000Choose a target type : Instances<br>\u3000Target group name : &lt;target group name&gt;<br>\u3000Protocol : http<br>\u3000Port : 80<br>\u3000VPC : \u81ea\u4f5c\u3057\u3066\u3044\u308b\u3082\u306e\u304c\u306a\u3051\u308c\u3070\u5909\u66f4\u4e0d\u8981<br>\u3000Protocol version : HTTP1<br>Health checks<br>\u3000Health check protocol : HTTP<br>\u3000Health check path : \/<br>\u3000Advanced health check settings : \u4efb\u610f<br>Tags\u3000<br>\u3000AddTag : Key\u300cName\u300d\u3000-\u3000Value\u300c&lt;target group name&gt;\u300d<\/p>\n\n\n\n<p>\u300cSpecify group details\u300d\u753b\u9762\u3067\u306e\u5165\u529b\u5b8c\u4e86\u5f8c\u8868\u793a\u3055\u308c\u308b\u300cRegister targets\u300d\u753b\u9762\u3067\u306f\u8a2d\u5b9a\u5909\u66f4\u305b\u305a\u3001\u753b\u9762\u53f3\u4e0b\u306e\u300cCreate target group\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img03.png\" class=\"post-img\">\n\n\n\n<p>\u3053\u308c\u306b\u3066 target group \u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_4\" class=\"wp-block-heading\" id=\"\u624b\u98064-elb-gw-\u306e\u4f5c\u6210\">\u624b\u98064. ELB(gw) \u306e\u4f5c\u6210<\/h3>\n\n\n\n<p>\u5de6\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u300c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b7\u30f3\u30b0\u300d\u306b\u304a\u3051\u308b\u300c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img05.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u4f5c\u6210\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img06.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u7a2e\u985e\u306e\u9078\u629e\u300d\u3067\u306f\u4e00\u756a\u5de6\u306e\u300cApplication Load Balancer\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img07.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u8a2d\u5b9a\u300d\u753b\u9762\u306e\u8a2d\u5b9a\u4f8b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">\u540d\u524d \uff1a\u3000\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u30b5\u30fc\u30d0\u540d\u3002\u4efb\u610f<br>\u30ea\u30b9\u30ca\u30fc\u3000\uff1a\u3000ssl \u901a\u4fe1\u3092\u69cb\u7bc9\u3059\u308b\u5834\u5408\u3001\u300cHTTPS\u300d\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u8ffd\u52a0<br>\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30fc\u30be\u30fc\u30f3\u3000\uff1a\u3000\u7279\u6bb5\u6307\u5b9a\u304c\u306a\u3051\u308c\u3070\u5168\u3066\u30c1\u30a7\u30c3\u30af<br>\u30a2\u30c9\u30aa\u30f3\u30b5\u30fc\u30d3\u30b9\u3000\uff1a\u3000\u8a2d\u5b9a\u4e0d\u8981<br>\u30bf\u30b0\u3000\uff1a\u3000\u8a2d\u5b9a\u4e0d\u8981<\/p>\n\n\n\n<p>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u753b\u9762\u53f3\u4e0b\u306e\u300c\u6b21\u306e\u624b\u9806\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img08.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u8a2d\u5b9a\u306e\u69cb\u6210\u300d\u753b\u9762\u3067\u306f HTTPS \u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u8ffd\u52a0\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u8a3c\u660e\u66f8\u306e\u8a2d\u5b9a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br>HTTP Only \u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br><br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img09.png\" class=\"post-img\">\n\n\n\n<p>HTTPS \u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u8a3c\u660e\u66f8\u306e\u9078\u629e\u3092\u884c\u3063\u3066\u304b\u3089\u300c\u6b21\u306e\u624b\u9806\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002<br>\u203b\u8a3c\u660e\u66f8\u306e\u767b\u9332\u306b\u95a2\u3057\u3066\u306f ACM \u3068\u547c\u3070\u308c\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u7528\u3044\u308b\u305f\u3081\u3001\u305d\u3061\u3089\u306f\u5225\u8a18\u4e8b\u306b\u3066\u7d39\u4ecb\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<br><br>\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u8a2d\u5b9a\u300d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300c\u65b0\u3057\u3044\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u306e\u540d\u524d\u3068\u8aac\u660e\u306f\u4efb\u610f\u306e\u3082\u306e\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<br>\u5fc5\u8981\u306a\u30a4\u30f3\u30d0\u30a6\u30f3\u30c9\u30eb\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u305f\u3089\u3001\u300c\u6b21\u306e\u624b\u9806\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img10.png\" class=\"post-img\">\n\n\n\n<p>\u30dc\u30bf\u30f3\u30af\u30ea\u30c3\u30af\u5f8c\u8868\u793a\u3055\u308c\u308b\u300c\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a\u300d\u3067\u306f\u300c<strong>\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7<\/strong>\u300d\u3067\u300c\u65e2\u5b58\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br>\u5bfe\u8c61\u306f\u624b\u9806\uff13\u3067\u4f5c\u6210\u3057\u305f\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u3068\u306a\u308a\u307e\u3059\u3002<br>\u300c\u6b21\u306e\u624b\u9806\u300d\u3092\u62bc\u3059\u3068\u65b0\u898f\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u3092\u767b\u9332\u3059\u308b\u5834\u5408\u306f Instance \u306e\u8a2d\u5b9a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u3001\u65e2\u5b58\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u305f\u3081\u8a2d\u5b9a\u753b\u9762\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<br><br>\u6700\u5f8c\u306b\u3053\u3053\u307e\u3067\u306e\u8a2d\u5b9a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u305f\u3081\u3001\u5185\u5bb9\u3092\u78ba\u8a8d\u3057 ELB(gw) \u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<br><br>\u4ee5\u4e0a\u3067 ELB (gw) \u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<blockquote class=\"wp-embedded-content\" data-secret=\"tVSet7zJCn\"><a href=\"https:\/\/techmania.jp\/blog\/aws0003\/\">AWS\uff5cELB\u3068\u306f\uff1f\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u7a2e\u985e\u3084\u7279\u5fb4\u3001\u5b9f\u4f8b\u3067\u8ca0\u8377\u5206\u6563\u3055\u305b\u308b\u65b9\u6cd5\u3092\u89e3\u8aac<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;AWS\uff5cELB\u3068\u306f\uff1f\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306e\u7a2e\u985e\u3084\u7279\u5fb4\u3001\u5b9f\u4f8b\u3067\u8ca0\u8377\u5206\u6563\u3055\u305b\u308b\u65b9\u6cd5\u3092\u89e3\u8aac&#8221; &#8212; TechMania\" src=\"https:\/\/techmania.jp\/blog\/aws0003\/embed\/#?secret=hhKnUzzI64#?secret=tVSet7zJCn\" data-secret=\"tVSet7zJCn\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n\n\n\n<h3 id=\"outline__5_5\" class=\"wp-block-heading\" id=\"\u624b\u98065-autoscaling-\u8d77\u52d5\u8a2d\u5b9a\u306e\u4f5c\u6210\">\u624b\u98065. AutoScaling \u8d77\u52d5\u8a2d\u5b9a\u306e\u4f5c\u6210<\/h3>\n\n\n\n<p><strong>\u203b \u672c\u9805\u76ee\u306f\u8d77\u52d5\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4f5c\u6210\u3067\u4ee3\u7528\u3057\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><br>\u5de6\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u300cAuto Scaling\u300d\u306b\u304a\u3051\u308b\u300c\u8d77\u52d5\u8a2d\u5b9a\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img11.png\" class=\"post-img\">\n\n\n\n<p>\u8d77\u52d5\u8a2d\u5b9a\u306e\u4e00\u89a7\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u300c\u8d77\u52d5\u8a2d\u5b9a\u306e\u4f5c\u6210\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img12.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u8d77\u52d5\u8a2d\u5b9a\u306e\u4f5c\u6210\u300d\u753b\u9762\u3067\u306f\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img13.png\" class=\"post-img\">\n\n\n\n<p class=\"has-text-align-left has-white-color has-black-background-color has-text-color has-background\">\u30fb\u8d77\u52d5\u8a2d\u5b9a\u540d : \u4efb\u610f<br><br>\u30fbAmazon \u30de\u30b7\u30f3\u30a4\u30e1\u30fc\u30b8 \uff1a \u624b\u9806\uff12\u3067\u4f5c\u6210\u3057\u305f AMI Image<br><br>\u30fb\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30bf\u30a4\u30d7 \uff1a \u8a2d\u5b9a\u3057\u305f\u3044\u30b9\u30da\u30c3\u30af\u3092\u8a2d\u5b9a(\u5f8c\u304b\u3089\u5909\u66f4\u4e0d\u53ef)<br><br>\u30fb\u8ffd\u52a0\u8a2d\u5b9a(\u57fa\u672c\u306f\u521d\u671f\u8a2d\u5b9a\u306e\u307e\u307e\u3067\u554f\u984c\u306a\u3057)<br>\u3000\u3000\u8cfc\u5165\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\uff1a\u4efb\u610f<br>\u3000\u3000IAM \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb \uff1a \u4efb\u610f<br>\u3000\u3000\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0 \uff1a \u4efb\u610f<br>\u3000\u3000\u9ad8\u5ea6\u306a\u8a2d\u5b9a \uff1a \u4efb\u610f<br>\u3000\u3000\u203b\u9ad8\u5ea6\u306a\u8a2d\u5b9a\u306b\u542b\u307e\u308c\u308b\u300c\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u300d\u306b\u3064\u3044\u3066\u3001\u56fa\u5b9a IP \u3092\u632f\u308a\u305f\u3044\u5834\u5408\u306f\u3053\u3053\u306b EC2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u8d77\u52d5\u6642\u306b\u5b9f\u884c\u3059\u308bshell \u3092\u7d44\u307f\u8fbc\u307f\u307e\u3057\u3087\u3046\u3002<br><br>\u30fb\u30b9\u30c8\u30ec\u30fc\u30b8 \uff1a AMI \u304b\u3089\u81ea\u52d5\u8a2d\u5b9a\u3055\u308c\u305f\u307e\u307e\u3067\u554f\u984c\u306a\u3057\u3002\u5897\u7bc9\u306f\u4efb\u610f<br><br>\u30fb\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7 \uff1a \u300c\u65e2\u5b58\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u9078\u629e\u3059\u308b\u300d\u3092\u9078\u629e\u3057\u624b\u9806\uff11\u3067\u4f5c\u6210\u3057\u305f EC2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3068\u540c\u3058\u3082\u306e\u3092\u8a2d\u5b9a<br><br>\u30fb\u30ad\u30fc\u30da\u30a2 \uff1a \u65e2\u5b58\u306e\u3067\u3082\u65b0\u898f\u3067\u3082\u3069\u3061\u3089\u3067\u3082\u3002\u4fdd\u5b58\u3092\u5fd8\u308c\u306a\u3044\u3053\u3068\u3002<\/p>\n\n\n\n<p>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u300c\u8d77\u52d5\u8a2d\u5b9a\u306e\u4f5c\u6210\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img14.png\" class=\"post-img\">\n\n\n\n<p>\u3053\u308c\u306b\u3066\u8d77\u52d5\u8a2d\u5b9a\u306e\u4f5c\u6210\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_6\" class=\"wp-block-heading\" id=\"\u624b\u98066-autoscalinggroup-\u306e\u4f5c\u6210\">\u624b\u98066. AutoScalingGroup \u306e\u4f5c\u6210<\/h3>\n\n\n\n<p>\u5de6\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u304a\u3051\u308b\u300cAUTO SCALING\u300d\u306e\u300cAuto Scaling Group\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img15.png\" class=\"post-img\">\n\n\n\n<p>\u300cAuto Scaling Group \u3092\u4f5c\u6210\u3059\u308b\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img16.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u8d77\u52d5\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u307e\u305f\u306f\u8d77\u52d5\u8a2d\u5b9a\u3092\u9078\u629e\u3059\u308b\u300d\u753b\u9762\u3067\u3001\u300c\u540d\u524d\u300d\u306b\u306f\u4f5c\u6210\u3059\u308b auto scaling group \u306e\u540d\u79f0\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u5f8c\u304b\u3089\u5909\u66f4\u3067\u304d\u306a\u3044\u305f\u3081\u9069\u5207\u306a\u540d\u524d\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<br><br>\u6b21\u306b\u8d77\u52d5\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u624b\u9806\uff15\u3067\u4f5c\u6210\u3057\u305f\u306e\u304c\u8d77\u52d5\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306a\u3089\u3070\u305d\u306e\u307e\u307e\u300c\u8d77\u52d5\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u300d\u306e\u9805\u76ee\u3067\u9078\u629e\u3001\u8d77\u52d5\u8a2d\u5b9a\u3067\u4f5c\u6210\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u300c\u8d77\u52d5\u8a2d\u5b9a\u306b\u5207\u308a\u66ff\u3048\u308b\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304b\u3089\u8a2d\u5b9a\u3092\u9069\u7528\u3057\u307e\u3057\u3087\u3046\u3002<br><br>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u300c\u6b21\u3078\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img17.png\" class=\"post-img\">\n\n\n\n<p>\u6b21\u306b\u300c\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u300d\u306e\u8a2d\u5b9a\u3067\u3059\u3002<br>\u300cVPC\u300d\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u3067\u554f\u984c\u306a\u3057\u3001\u300c\u30b5\u30d6\u30cd\u30c3\u30c8\u300d\u306f\u9078\u629e\u306b\u51fa\u3066\u304f\u308b\u3082\u306e\u3092\u5168\u3066\u767b\u9332\u3057\u3066\u304a\u3051\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img18.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u8a73\u7d30\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u300d\u753b\u9762\u3067\u306f\u3001\u307e\u305a\u6700\u521d\u306e\u9078\u629e\u9805\u76ee\u3067\u300c\u65e2\u5b58\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u306b\u30a2\u30bf\u30c3\u30c1\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br><br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img19.png\" class=\"post-img\">\n\n\n\n<p>\u9078\u629e\u304c\u5b8c\u4e86\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u305f\u3081\u3001\u300c\u65e2\u5b58\u306e\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc\u30bf\u30fc\u30b2\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u300d\u306b\u624b\u9806\uff13\u3067\u4f5c\u6210\u3057\u3066\u3044\u305f target group \u3092\u9078\u629e\u3057\u307e\u3059\u3002<br><br>\u300c\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u300d\u300c\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a\u300d\u306f\u76e3\u8996\u3084\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u6307\u5b9a\u304c\u3042\u308c\u3070\u9069\u5b9c\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u306e\u307e\u307e\u3067\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<br><br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img20.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u30b0\u30eb\u30fc\u30d7\u30b5\u30a4\u30ba\u3068\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u30dd\u30ea\u30b7\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u300d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u300c\u30b0\u30eb\u30fc\u30d7\u30b5\u30a4\u30ba&nbsp;\u300d\u306f\u5168\u3066 1 \u3067\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<br>\u3053\u306e\u8a2d\u5b9a\u306e\u5834\u5408\u30b5\u30fc\u30d0\u53f0\u6570\u306f 1 \u53f0\u3067\u56fa\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<br>\u6570\u5b57\u3092\u5168\u3066 2 \u306b\u3059\u308c\u3070 2 \u53f0\u3001 3 \u306b\u3059\u308c\u3070 3 \u53f0\u3068\u6319\u52d5\u3068\u306a\u308a\u307e\u3059\u3002<br><br>\u53f0\u6570\u56fa\u5b9a\u306e\u5834\u5408\u306f\u5168\u3066\u540c\u4e00\u306e\u6570\u5024\u306b\u3057\u307e\u3059\u304c\u3001EC2 Instance \u306e\u53f0\u6570\u3092\u81ea\u52d5\u8abf\u6574\u3057\u305f\u3044\u5834\u5408\u306f\u30a2\u30af\u30bb\u30b9\u60f3\u5b9a\u306b\u5fdc\u3058\u3066\u9069\u5b9c\u8abf\u6574\u304c\u5fc5\u8981\u3067\u3059\u3002<br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img21.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u30dd\u30ea\u30b7\u30fc\u300d\u3067\u306f\u30b0\u30eb\u30fc\u30d7\u30b5\u30a4\u30ba\u306e\u7bc4\u56f2\u5185\u3067\u3001\u8ca0\u8377\u72b6\u6cc1\u306b\u5fdc\u3058\u305f EC2 Instance \u306e\u81ea\u52d5\u5897\u6e1b\u3092\u81ea\u52d5\u3067\u52d5\u4f5c\u3055\u305b\u308b\u5834\u5408\u306e\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<br>\u300c\u5e73\u5747 CPU \u4f7f\u7528\u7387\u300d\u3084\u300c\u30a2\u30af\u30bb\u30b9\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u300d\u3067\u3082\u8a2d\u5b9a\u3067\u304d\u308b\u305f\u3081\u3001\u8981\u4ef6\u306b\u5408\u308f\u305b\u3066\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<br><br>\u300c\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u4fdd\u8b77\u300d\u306b\u95a2\u3057\u3066\u306f\u8ca0\u8377\u304c\u5b89\u5b9a\u3057\u305f\u969b\u306e\u30ea\u30bd\u30fc\u30b9\u8abf\u6574\u3067 Instance \u3092\u81ea\u52d5\u3067\u524a\u9664\u3059\u308b\u304b\u6c7a\u3081\u3089\u308c\u307e\u3059\u3002<br>\u30ed\u30b0\u7b49\u306e\u78ba\u8a8d\u3092\u3057\u305f\u3044\u5834\u5408\u306f\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304f\u3068\u4fbf\u5229\u3068\u8a00\u3048\u308b\u3067\u3057\u3087\u3046\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img22.png\" class=\"post-img\">\n\n\n\n<p>\u300c\u901a\u77e5\u306e\u8a2d\u5b9a\u300d\u306b\u95a2\u3057\u3066\u3001\u3053\u3061\u3089\u3067\u306f AutoScaling \u306b\u3088\u308a Instance \u304c\u7acb\u3061\u4e0a\u304c\u3063\u305f\u3001\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u3057\u305f\u3068\u3044\u3063\u305f\u60c5\u5831\u3092\u30e1\u30fc\u30eb\u3067\u53d7\u3051\u53d6\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002<br><br>\u901a\u77e5\u304c\u6b32\u3057\u3044\u5834\u5408\u306f\u300c\u901a\u77e5\u306e\u8ffd\u52a0\u300d\u304b\u3089\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<br><br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img23.png\" class=\"post-img\">\n\n\n\n<p>\u6700\u5f8c\u306b\u300c\u30bf\u30b0\u3092\u8ffd\u52a0\u300d\u306e\u753b\u9762\u3067\u3059\u3002<br>\u81ea\u52d5\u8d77\u52d5\u3057\u305f EC2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u7ba1\u7406\u753b\u9762\u4e0a\u306e\u540d\u524d\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3001\u904b\u7528\u7ba1\u7406\u4e0a\u3068\u3066\u3082\u4fbf\u5229\u306a\u306e\u3067\u6700\u4f4e\u9650 Name \u30ad\u30fc\u306f\u767b\u9332\u3057\u307e\u3057\u3087\u3046\u3002<br><br>\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u305f\u3089\u300c\u6b21\u3078\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img24.png\" class=\"post-img\">\n\n\n\n<p>\u4ee5\u4e0a\u3067\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\uff01<br>\u8a2d\u5b9a\u306e\u78ba\u8a8d\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u305f\u3081\u3001\u5185\u5bb9\u306b\u554f\u984c\u306a\u3051\u308c\u3070\u30b9\u30af\u30ed\u30fc\u30eb\u6700\u4e0b\u90e8\u306e\u300cAuto Scaling \u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u300d\u3067\u4f5c\u6210\u3092\u5b8c\u4e86\u3057\u307e\u3057\u3087\u3046\uff01<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img25.png\" class=\"post-img\">\n\n\n\n<p>\u4f5c\u6210\u304c\u5b8c\u4e86\u3059\u308b\u3068\u81ea\u52d5\u3067 EC2 Instance \u304c\u8d77\u52d5\u3055\u308c\u308b\u305f\u3081\u3001EC2 Instance \u306e\u4e00\u89a7\u753b\u9762\u3092\u958b\u3044\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 id=\"outline__5_7\" class=\"wp-block-heading\" id=\"\u624b\u98067-\u5b9f\u969b\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\">\u624b\u98067. \u5b9f\u969b\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u304d\u305f\u3089\u5f8c\u306f\u78ba\u8a8d\u3059\u308b\u3060\u3051\u3067\u3059\u3002<br>ELB \u306e DNS \u540d\u304b\u3089\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u306a\u305f\u3081\u3001\u5bfe\u8c61\u30b5\u30fc\u30d0\u306e\u6a5f\u80fd\u306b\u5fdc\u3058\u305f\u30a2\u30af\u30bb\u30b9\u3092\u691c\u8a3c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br><br><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/web-img.rensa.jp.net\/rensa\/images\/techmania\/post202104081205\/img26.png\" class=\"post-img\">\n\n\n\n<p>\u30a2\u30af\u30bb\u30b9\u306b\u6210\u529f\u3059\u308c\u3070\u5168\u3066\u306e\u624b\u9806\u304c\u5b8c\u4e86\u3067\u3059\u3002<br>\u3042\u3068\u306f\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u72b6\u6cc1\u3084\u4e00\u6642\u7684\u306b\u9ad8\u8ca0\u8377\u304c\u898b\u8fbc\u307e\u308c\u308b\u5834\u5408\u306b\u9069\u5b9c\u53f0\u6570\u3092\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br><br>\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u304c\u5897\u5927\u3057\u305f\u305f\u3081\u5897\u53f0\u3057\u305f\u3044\u304c\u3001\u30b3\u30b9\u30c8\u7684\u306b\u666e\u6bb5\u306f\u505c\u6b62\u3057\u3066\u304a\u304d\u305f\u3044\u3002\u3057\u304b\u3057\u624b\u52d5\u3067\u64cd\u4f5c\u3057\u3066\u3044\u3066\u306f\u4eba\u7684\u30b3\u30b9\u30c8\u304c\u5897\u52a0\u3057\u3066\u3057\u307e\u3046\u3002\u3053\u3046\u3044\u3063\u305f\u7d4c\u9a13\u306f\u7121\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3082\u3057\u304b\u3057\u305f\u3089\u305d\u306e\u60a9\u307f\u3001AWS AutoScaling \u3067\u30b5\u30fc\u30d0\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u305d\u3082\u305d\u3082AWS Auto Scaling\u3068\u306f\uff1f AWS Auto Scaling \u306f\u3001\u8907\u6570\u306e\u30b5\u30fc\u30d3\u30b9\u306b\u307e\u305f\u304c\u308b\u8907\u6570 [&hellip;]","protected":false},"author":2,"featured_media":215,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[8,6,7,9],"class_list":["post-16","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","tag-autoscaling","tag-aws","tag-ec2","tag-elb"],"_links":{"self":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":194,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":4193,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions\/4193"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techmania.jp\/blog\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}