{"id":1773,"date":"2024-12-18T14:35:14","date_gmt":"2024-12-18T06:35:14","guid":{"rendered":"https:\/\/aws-oncloudai.com\/?p=1773"},"modified":"2024-12-20T09:22:04","modified_gmt":"2024-12-20T01:22:04","slug":"for-serverless-architectures-aws-elastic-load-balancer","status":"publish","type":"post","link":"https:\/\/aws-oncloudai.com\/ja\/\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u5411\u3051aws-elastic-load-balancer\/","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u5411\u3051 AWS Elastic Load Balancer"},"content":{"rendered":"<p>\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u666e\u53ca\u306b\u3088\u308a\u30af\u30e9\u30a6\u30c9 \u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u767a\u5c55\u304c\u4fc3\u9032\u3055\u308c\u3001\u30ed\u30fc\u30c9 \u30d0\u30e9\u30f3\u30b5\u306f\u9ad8\u53ef\u7528\u6027\u3001\u81ea\u52d5\u62e1\u5f35\u3001\u67d4\u8edf\u306a\u5206\u6563\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u306a\u308a\u307e\u3057\u305f\u3002 AWS Elastic Load Balancer (ELB) \u306f\u3001\u5206\u6563\u74b0\u5883\u3067\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u5206\u6563\u3092\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8\u306b\u7ba1\u7406\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5b89\u5b9a\u6027\u3092\u78ba\u4fdd\u3067\u304d\u308b\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u5411\u3051\u306e\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 ELB \u306f\u3001AWS Lambda \u3084 API Gateway \u306a\u3069\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30b5\u30fc\u30d3\u30b9\u3068\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d71\u5408\u3059\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u8005\u306b\u52b9\u7387\u7684\u304b\u3064\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u8ca0\u8377\u7ba1\u7406\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-1786 size-large\" src=\"http:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/12\/free-cat6-cable-it-infrastructure-it-support-of-free-stock-images-stock-images-1024x681.jpg\" alt=\"\" width=\"1024\" height=\"681\" srcset=\"\" sizes=\"(max-width: 1024px) 100vw, 1024px\" data-srcset=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#what-is-elastic-load-balancer-elb\" name=\"what-is-elastic-load-balancer-elb\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>Elastic Load Balancer (ELB) \u3068\u306f\u4f55\u3067\u3059\u304b?<\/h3>\n<p>ELB \u306f\u3001AWS \u304c\u63d0\u4f9b\u3059\u308b\u8ca0\u8377\u5206\u6563 (LB) \u30b5\u30fc\u30d3\u30b9\u306e\u30bb\u30c3\u30c8\u3067\u3059\u3002\u3053\u308c\u3089\u306b\u306f<strong>\u30af\u30e9\u30b7\u30c3\u30af\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc<\/strong>\u3001<strong>\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc<\/strong>\u3001<strong>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5<\/strong>\u305d\u3057\u3066<strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5<\/strong>\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#each-of-these-lbs-covers-different-usecases\" name=\"each-of-these-lbs-covers-different-usecases\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>\u5404LB\u306f\u7570\u306a\u308b\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3092\u30ab\u30d0\u30fc\u3057\u307e\u3059<\/h3>\n<ul>\n<li>\u30af\u30e9\u30b7\u30c3\u30af\u00a0<strong>\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5<\/strong>EC2\u30d9\u30fc\u30b9\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u9069\u3057\u305f\u9078\u629e\u80a2<\/li>\n<li><strong>\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u30fc<\/strong>VPC\u5185\u306e\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u652f\u63f4\u3067\u304d\u307e\u3059<\/li>\n<li><strong>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5<\/strong>UPD\u30d9\u30fc\u30b9\u306e\u30b2\u30fc\u30e0\u3084IoT\u63a5\u7d9a\u306a\u3069\u306e\u9ad8\u6027\u80fd\u306a\u4f4e\u30ec\u30d9\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u7126\u70b9\u3092\u5f53\u3066\u308b<\/li>\n<li><strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5<\/strong>HTTP\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u5411\u3051\u306e\u9ad8\u5ea6\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3<\/li>\n<\/ul>\n<p>\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u5834\u5408\u3001\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d3\u30b9\u304c HTTP API \u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001ALB \u304c\u6700\u9069\u306a\u9078\u629e\u80a2\u3068\u306a\u308a\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f ALB \u306b\u7126\u70b9\u3092\u5f53\u3066\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#what-is-application-load-balancer-alb\" name=\"what-is-application-load-balancer-alb\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30ed\u30fc\u30c9 \u30d0\u30e9\u30f3\u30b5\u30fc (ALB) \u3068\u306f\u4f55\u3067\u3059\u304b?<\/h3>\n<p>ALB \u306f HTTP \u306b\u91cd\u70b9\u3092\u7f6e\u3044\u3066\u3044\u308b\u305f\u3081\u3001\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u4e00\u90e8\u3092\u4f7f\u7528\u3057\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u95a2\u3059\u308b\u6c7a\u5b9a\u3092\u4e0b\u3059\u3053\u3068\u304c\u3067\u304d\u3001Lambda \u306e\u5b9f\u884c\u6642\u9593\u3092\u7bc0\u7d04\u3067\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001Lambda \u95a2\u6570\u306f\u30ad\u30e3\u30c3\u30b7\u30e5 \u30d8\u30c3\u30c0\u30fc\u3092\u6b63\u3057\u304f\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#pricing\" name=\"pricing\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>\u4fa1\u683c<\/h3>\n<p>ALB \u306f Lambda \u3068\u7d71\u5408\u3067\u304d\u307e\u3059\u304c\u3001ALB \u306f\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30b5\u30fc\u30d3\u30b9\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5f93\u91cf\u8ab2\u91d1\u5236\u30e2\u30c7\u30eb\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u6642\u9593\u306b\u5bfe\u3057\u3066\u6599\u91d1\u3092\u652f\u6255\u3046\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3060\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u4e00\u5b9a\u304b\u3064\u5b89\u5b9a\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u9577\u671f\u7684\u306b\u306f API Gateway \u3088\u308a\u3082\u5b89\u4fa1\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#limits\" name=\"limits\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>\u5236\u9650<\/h3>\n<p>\u3055\u3089\u306b\u3001API Gateway \u3067\u306f\u63a5\u7d9a\u6570\u304c 10,000 \u306b\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001ALB \u306b\u306f\u5236\u9650\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001\u3088\u308a\u30de\u30a4\u30ca\u30fc\u306a\u6a5f\u80fd\u3092\u5099\u3048\u305f API \u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3067\u3059\u3002\u6a5f\u80fd\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u304c\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u512a\u308c\u3066\u3044\u307e\u3059\u3002\u5927\u898f\u6a21\u306b\u5c55\u958b\u3057\u305f\u3044\u5834\u5408\u3001ALB \u304c\u552f\u4e00\u306e\u89e3\u6c7a\u7b56\u3068\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#permissions\" name=\"permissions\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>\u6a29\u9650<\/h3>\n<p>ALB \u306f\u3001\u5f93\u6765\u306e\u300c\u30d1\u30d6\u30ea\u30c3\u30af HTTP \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306e\u524d\u306b\u30b9\u30c8\u30e9\u30c3\u30d7\u3092\u7f6e\u304f\u300d\u3088\u3046\u306a\u3082\u306e\u306b\u4f3c\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001Lambda \u3068\u7d71\u5408\u3057\u307e\u3059\u304c\u3001IAM \u30d9\u30fc\u30b9\u306e\u6a29\u9650\u306f\u63d0\u4f9b\u3055\u308c\u307e\u305b\u3093\u3002\u3053\u308c\u3092\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u95a2\u6570\u3067\u51e6\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#transformations\" name=\"transformations\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>\u5909\u8eab<\/h3>\n<p>\u3053\u306e\u5f93\u6765\u306e\u8ca0\u8377\u5206\u6563\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u306f\u3001ALB \u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5909\u63db\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u5358\u306b\u30c7\u30fc\u30bf\u3092\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306b\u6e21\u3059\u3060\u3051\u3067\u3059\u3002\u7e70\u308a\u8fd4\u3057\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306b\u3088\u308a ALB \u306e\u67d4\u8edf\u6027\u306f API Gateway \u3088\u308a\u3082\u4f4e\u304f\u306a\u308a\u3001\u3088\u308a\u591a\u304f\u306e\u4f5c\u696d\u304c Lambda \u306b\u79fb\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#multiregion\" name=\"multiregion\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>\u30de\u30eb\u30c1\u30ea\u30fc\u30b8\u30e7\u30f3<\/h3>\n<p>ALB \u306f\u4e00\u5ea6\u306b 1 \u3064\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3059\u3002\u7e70\u308a\u8fd4\u3057\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30b5\u30fc\u30d3\u30b9\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u3055\u3089\u306b\u4f5c\u696d\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u8907\u6570\u306e\u30be\u30fc\u30f3\u9593\u3067\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u5206\u6563\u3059\u308b\u306b\u306f\u3001Route53 \u306e DNS \u30d9\u30fc\u30b9\u306e\u5206\u6563\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#configurations-for-reliability-or-costs\" name=\"configurations-for-reliability-or-costs\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>\u4fe1\u983c\u6027\u307e\u305f\u306f\u30b3\u30b9\u30c8\u69cb\u6210<\/h3>\n<p>Lambda \u30bf\u30fc\u30b2\u30c3\u30c8\u3067 ALB \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Lambda \u306f\u81ea\u52d5\u7684\u306b\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3055\u308c\u308b\u305f\u3081\u3001\u901a\u5e38\u306f\u512a\u308c\u305f\u4fe1\u983c\u6027\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u3059\u3050\u306b\u4f7f\u7528\u3067\u304d\u308b\u4fe1\u983c\u6027\u4ee5\u4e0a\u306e\u3082\u306e\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001ALB \u3092\u8907\u6570\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3001Route53 \u306e\u80cc\u5f8c\u306b\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30b9\u30c8\u306b\u95a2\u3057\u3066\u8a00\u3048\u3070\u3001Lambda \u304c\u4e3b\u306a\u539f\u56e0\u3068\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5927\u5bb9\u91cf\u30e1\u30e2\u30ea\u69cb\u6210\u306e Lambda \u95a2\u6570\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u3068\u3001\u30b3\u30b9\u30c8\u304c\u3059\u3050\u306b\u9ad8\u304f\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u306b\u5f93\u3044\u3001Lambda \u95a2\u6570\u3092\u5c0f\u3055\u304f\u76ee\u7684\u6307\u5411\u306b\u4fdd\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u53ef\u80fd\u306a\u9650\u308a\u3001ALB \u30ea\u30b9\u30ca\u30fc\u304c\u30e1\u30e2\u30ea \u30d5\u30c3\u30c8\u30d7\u30ea\u30f3\u30c8\u306e\u5c0f\u3055\u3044\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u6761\u4ef6\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#health-check-best-practices\" name=\"health-check-best-practices\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h3>\n<p>EC2 \u30bf\u30fc\u30b2\u30c3\u30c8\u306f\u7c21\u5358\u306b\u904e\u8ca0\u8377\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001Lambda \u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u306f\u56fa\u6709\u306e\u81ea\u52d5\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u6a5f\u80fd\u304c\u3042\u308b\u305f\u3081\u3001\u3088\u308a\u591a\u304f\u306e\u30d0\u30c3\u30d5\u30a1\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30b7\u30b9\u30c6\u30e0\u3067\u3082\u3001\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>AWS \u306f\u3001Lambda \u30bf\u30fc\u30b2\u30c3\u30c8\u306e ALB \u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u7121\u52b9\u306b\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u30aa\u30d7\u30c8\u30a4\u30f3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u90e8\u306e\u554f\u984c\u306f Lambda \u306b\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u305f\u8aa4\u3063\u305f\u30b3\u30fc\u30c9\u306b\u3088\u3063\u3066\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u307b\u3068\u3093\u3069\u306e\u554f\u984c\u306f\u95a2\u6570\u3067\u4f7f\u7528\u3055\u308c\u308b\u30a2\u30c3\u30d7\u30b9\u30c8\u30ea\u30fc\u30e0 \u30b5\u30fc\u30d3\u30b9\u304b\u3089\u767a\u751f\u3057\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30d8\u30eb\u30b9\u30c1\u30a7\u30c3\u30af\u3092\u30d1\u30a4\u30d7\u3057\u3001\u30a2\u30c3\u30d7\u30b9\u30c8\u30ea\u30fc\u30e0 \u30b5\u30fc\u30d3\u30b9\u304b\u3089\u306e\u7d50\u679c\u3067\u5fdc\u7b54\u3059\u308b\u3088\u3046\u306b Lambda \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f55\u304b\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u552f\u4e00\u306e\u8fc5\u901f\u306a\u89e3\u6c7a\u7b56\u306f\u3001Route53 \u306b\u6b21\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5225\u306e\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u3088\u3046\u306b\u6307\u793a\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/dev.to\/vinothmohan\/aws-elastic-load-balancer-for-serverless-architecture-ede#log-analysis-in-aws\" name=\"log-analysis-in-aws\" rel=\"nofollow noopener\" target=\"_blank\"><\/a>AWS \u3067\u306e\u30ed\u30b0\u5206\u6790<\/h3>\n<p>AWS \u3067\u306f\u3001Amazon Athena \u3092\u4f7f\u7528\u3057\u3066 ALB \u30ed\u30b0\u3092\u5206\u6790\u3067\u304d\u307e\u3059\u3002 Athena \u306f\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30af\u30a8\u30ea \u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u30af\u30a8\u30ea \u30ed\u30b0\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3057\u3066 S3 \u306b\u4fdd\u5b58\u3057\u3001Athenas SQL \u30af\u30a8\u30ea\u3092\u4f7f\u7528\u3057\u3066\u8abf\u67fb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>AWS Elastic Load Balancer \u306f\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u304a\u3044\u3066\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u3001\u81ea\u52d5\u5316\u3055\u308c\u305f\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u7ba1\u7406\u3001\u67d4\u8edf\u306a\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3001\u4ed6\u306e AWS \u30b5\u30fc\u30d3\u30b9\u3068\u306e\u7dca\u5bc6\u306a\u7d71\u5408\u3092\u901a\u3058\u3066\u3001\u958b\u767a\u8005\u304c\u3055\u307e\u3056\u307e\u306a\u30d3\u30b8\u30cd\u30b9\u30cb\u30fc\u30ba\u3092\u7c21\u5358\u306b\u6e80\u305f\u305b\u308b\u3088\u3046\u652f\u63f4\u3057\u307e\u3059\u3002\u9ad8\u540c\u6642\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u3084\u30ea\u30bd\u30fc\u30b9\u4f7f\u7528\u7387\u306e\u6700\u9069\u5316\u306a\u3069\u3001ELB \u306f\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30b5\u30dd\u30fc\u30c8\u3092\u63d0\u4f9b\u3067\u304d\u308b\u305f\u3081\u3001\u958b\u767a\u8005\u306f\u30b3\u30a2 \u30ed\u30b8\u30c3\u30af\u306e\u5b9f\u88c5\u3068\u9769\u65b0\u306b\u96c6\u4e2d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1787 size-large\" src=\"http:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/12\/\u514d\u8d39-cli-CSS-devops-\u7684-\u514d\u8d39\u7d20\u6750\u56fe\u7247-\u7d20\u6750\u56fe\u7247-1024x683.jpg\" alt=\"\" width=\"1024\" height=\"683\" srcset=\"https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/12\/\u514d\u8d39-cli-CSS-devops-\u7684-\u514d\u8d39\u7d20\u6750\u56fe\u7247-\u7d20\u6750\u56fe\u7247-1024x683.jpg 1024w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/12\/\u514d\u8d39-cli-CSS-devops-\u7684-\u514d\u8d39\u7d20\u6750\u56fe\u7247-\u7d20\u6750\u56fe\u7247-300x200.jpg 300w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/12\/\u514d\u8d39-cli-CSS-devops-\u7684-\u514d\u8d39\u7d20\u6750\u56fe\u7247-\u7d20\u6750\u56fe\u7247-768x512.jpg 768w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/12\/\u514d\u8d39-cli-CSS-devops-\u7684-\u514d\u8d39\u7d20\u6750\u56fe\u7247-\u7d20\u6750\u56fe\u7247-1536x1024.jpg 1536w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/12\/\u514d\u8d39-cli-CSS-devops-\u7684-\u514d\u8d39\u7d20\u6750\u56fe\u7247-\u7d20\u6750\u56fe\u7247-2048x1365.jpg 2048w, https:\/\/aws-oncloudai.com\/wp-content\/uploads\/2024\/12\/\u514d\u8d39-cli-CSS-devops-\u7684-\u514d\u8d39\u7d20\u6750\u56fe\u7247-\u7d20\u6750\u56fe\u7247-18x12.jpg 18w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u666e\u53ca\u306b\u3088\u308a\u30af\u30e9\u30a6\u30c9 \u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u767a\u5c55\u304c\u4fc3\u9032\u3055\u308c\u3001\u30ed\u30fc\u30c9 \u30d0\u30e9\u30f3\u30b5\u306f\u9ad8\u53ef\u7528\u6027\u3001\u81ea\u52d5\u62e1\u5f35\u3001\u67d4\u8edf\u306a\u5206\u6563\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u91cd\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u306a\u308a\u307e\u3057\u305f\u3002 AWS Elastic Load Balancer (ELB) \u306f\u3001\u5206\u6563\u74b0\u5883\u3067\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u5206\u6563\u3092\u30a4\u30f3\u30c6\u30ea\u30b8\u30a7\u30f3\u30c8\u306b\u7ba1\u7406\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5b89\u5b9a\u6027\u3092\u78ba\u4fdd\u3067\u304d\u308b\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u5411\u3051\u306e\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 ELB \u306f\u3001AWS Lambda \u3084 API Gateway \u306a\u3069\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9 \u30b5\u30fc\u30d3\u30b9\u3068\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d71\u5408\u3059\u308b\u3053\u3068\u3067\u3001\u958b\u767a\u8005\u306b\u52b9\u7387\u7684\u304b\u3064\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u8ca0\u8377\u7ba1\u7406\u65b9\u6cd5\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>","protected":false},"author":1,"featured_media":1774,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-1773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical-sharing"],"_links":{"self":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts\/1773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/comments?post=1773"}],"version-history":[{"count":0,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/posts\/1773\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/media\/1774"}],"wp:attachment":[{"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/media?parent=1773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/categories?post=1773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aws-oncloudai.com\/ja\/wp-json\/wp\/v2\/tags?post=1773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}