{"id":24587,"date":"2023-10-02T13:20:51","date_gmt":"2023-10-02T04:20:51","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=24587"},"modified":"2023-10-02T13:20:51","modified_gmt":"2023-10-02T04:20:51","slug":"1%e5%88%86%e3%82%88%e3%82%8a%e7%9f%ad%e3%81%84%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab%e3%81%a7%e5%ae%9a%e6%9c%9f%e7%9a%84%e3%81%ablambda%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/1%e5%88%86%e3%82%88%e3%82%8a%e7%9f%ad%e3%81%84%e3%82%b5%e3%82%a4%e3%82%af%e3%83%ab%e3%81%a7%e5%ae%9a%e6%9c%9f%e7%9a%84%e3%81%ablambda%e3%82%92%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b\/","title":{"rendered":"1\u5206\u3088\u308a\u77ed\u3044\u30b5\u30a4\u30af\u30eb\u3067\u5b9a\u671f\u7684\u306bLambda\u3092\u5b9f\u884c\u3059\u308b"},"content":{"rendered":"<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>Lambda\u30921\u5206\u3088\u308a\u77ed\u3044\u30b5\u30a4\u30af\u30eb\u3067\u5b9a\u671f\u7684\u306b\u52d5\u304b\u3057\u305f\u3044\u3068\u601d\u3063\u305f\u3053\u3068\u3001\u3042\u308a\u307e\u305b\u3093\u304b\uff1f<\/p>\n<p>Lambda\u3092\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u307e\u305a\u6700\u521d\u306b\u601d\u3044\u6d6e\u304b\u3076\u306e\u306fEventBridge\u3067\u3059\u3002\u305f\u3060\u3001EventBridge\u306e\u5834\u5408\u3001\u6700\u77ed\u3067\u30821\u5206\u30b5\u30a4\u30af\u30eb\u3067\u306e\u5b9f\u884c\u304c\u9650\u754c\u306b\u306a\u308a\u307e\u3059\u3002\u9577\u6642\u9593\u304b\u304b\u308b\u51e6\u7406\u306e\u72b6\u614b\u30921\u5206\u3088\u308a\u77ed\u3044\u30b5\u30a4\u30af\u30eb\u3067\u30dd\u30fc\u30ea\u30f3\u30b0\u3057\u305f\u3044...\u3068\u3044\u3046\u3068\u304d\u306b\u306fcron\u30d9\u30fc\u30b9\u306e\u6307\u5b9a\u3067\u306f\u3069\u3046\u3057\u3066\u3082\u9650\u754c\u304c\u3042\u308a\u307e\u3059\u306d\u3002\u305d\u3053\u3067\u3069\u3046\u3059\u308b\u304b\uff1f\u3068\u3044\u3046\u306e\u304c\u4eca\u56de\u306e\u304a\u984c\u3067\u3059\u3002<\/p>\n<h1>\u3069\u3046\u3059\u308b\u306e\u304b<\/h1>\n<p>\u4eca\u56de\u306fSQS\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8868\u793a\u9045\u5ef6\u79d2\u6570\u3092\u30bf\u30a4\u30de\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3057\u3001\u305d\u3053\u306bSQS+Lambda\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u30c8\u30ea\u30ac\u30fc\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u65b9\u6cd5\u3067\u3059\u3002\u305d\u3057\u3066Lambda\u81ea\u8eab\u304c\u65b0\u305f\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u5165\u3059\u308b\u3053\u3068\u3067\u5b9a\u671f\u5b9f\u884c\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u56f3\u306f\u30bf\u30a4\u30c8\u30eb\u753b\u50cf\u306e\u901a\u308a\u3067\u3059\u3002Lambda\u3068SQS\u306e\u9593\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u884c\u3063\u305f\u308a\u6765\u305f\u308a\u3001\u3068\u3044\u3046\u69cb\u56f3\u3067\u3059\u3002<\/p>\n<p>\u30ad\u30fc\u3068\u306a\u308b\u8a2d\u5b9a\u30dd\u30a4\u30f3\u30c8\u306f<code>DelaySeconds<\/code>\u3067\u3059\u3002\u3053\u308c\u306f<a href=\"https:\/\/docs.aws.amazon.com\/AWSSimpleQueueService\/latest\/SQSDeveloperGuide\/sqs-message-timers.html\">\u30e1\u30c3\u30bb\u30fc\u30b8\u30bf\u30a4\u30de\u30fc<\/a>\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3067\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u6295\u5165\u5f8c\u3001\u6295\u5165\u30bf\u30a4\u30df\u30f3\u30b0\u304b\u3089\u8d77\u7b97\u3057\u3066\u6307\u5b9a\u3057\u305f\u6642\u9593\u3060\u3051\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u6307\u5b9a\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u3059\u3002\u30e1\u30c3\u30bb\u30fc\u30b8\u5358\u4f4d\u3067\u5b9f\u73fe\u3059\u308b\u5834\u5408\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u30bf\u30a4\u30de\u30fc\u304c\u4f7f\u3048\u307e\u3059\u304c\u3001\u30ad\u30e5\u30fc\u5168\u4f53\u3067\u8868\u793a\u9045\u5ef6\u3092\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f<a href=\"https:\/\/docs.aws.amazon.com\/AWSSimpleQueueService\/latest\/SQSDeveloperGuide\/sqs-delay-queues.html\">\u9045\u5ef6\u30ad\u30e5\u30fc<\/a>\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u540c\u69d8\u306e\u8a2d\u5b9a\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u9045\u5ef6\u30ad\u30e5\u30fc\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u30bf\u30a4\u30de\u30fc\u306e\u4e21\u65b9\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u30bf\u30a4\u30de\u30fc\u306e\u5024\u304c\u512a\u5148\u3055\u308c\u307e\u3059\u3002\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3055\u308c\u308b\u6319\u52d5\u3068\u3057\u3066\u306f\u76f4\u611f\u7684\u3067\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u306d\u3002<\/p>\n<h1>\u4f5c\u3063\u3066\u307f\u308b<\/h1>\n<p>\u4eca\u56de\u306f\u4e0b\u8a18\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u3088\u3046\u306a\u69cb\u6210\u3067\u7d44\u3093\u3067\u307f\u307e\u3057\u305f\u3002\u4e3b\u8981\u306a\u30ea\u30bd\u30fc\u30b9\u306fLambda\u95a2\u6570(AWS::Lambda::Function)\u3068SQS\u30ad\u30e5\u30fc(AWS::SQS::Queue)\u306e\u3075\u305f\u3064\u3067\u3059\u3002\u307e\u305f\u3001SQS\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u30c8\u30ea\u30ac\u30fc\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u30a4\u30d9\u30f3\u30c8\u30bd\u30fc\u30b9\u30de\u30c3\u30d4\u30f3\u30b0(AWS::Lambda::EventSourceMapping)\u3092\u69cb\u6210\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nCloudWatch\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7(AWS::Logs::LogGroup)\u306f\u3001\u76f4\u63a5\u306f\u5fc5\u8981\u306a\u3044\u30ea\u30bd\u30fc\u30b9\u3067\u3059\u304c\u3042\u308f\u305b\u3066\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\u3092\u4e8b\u524d\u4f5c\u6210\u305b\u305a\u306bLambda\u3092\u5b9f\u884c\u3057\u305f\u5834\u5408\u306b\u304a\u3051\u308b\u8ab2\u984c\u3092\u89e3\u6c7a\u3059\u308b\u306e\u304c\u76ee\u7684\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u4fdd\u6301\u671f\u9593\u304c\u7121\u5236\u9650\u3068\u306a\u308b\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\u304c\u4f5c\u6210\u3055\u308c\u3066\u3057\u307e\u3046<br \/>\u2192\u3042\u3089\u304b\u3058\u3081\u4fdd\u5b58\u671f\u9650\u3092\u6307\u5b9a\u3057\u305f\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u308b\u3053\u3068\u3067\u3001\u30ed\u30b0\u306e\u80a5\u5927\u5316\u3092\u6291\u6b62\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\u304c\u307f\u306a\u3057\u3054\u30ea\u30bd\u30fc\u30b9\u306b\u306a\u3063\u3066\u3057\u307e\u3046<br \/>\u2192\u6700\u521d\u304b\u3089\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u7d44\u307f\u8fbc\u3093\u3067\u304a\u304f\u3053\u3068\u3067\u3001\u300c\u7acb\u3064\u9ce5\u8de1\u3092\u6fc1\u3055\u305a\u300d\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<pre>\nAWSTemplateFormatVersion: 2010-09-09\nDescription: ''\nParameters:\n  DelaySeconds:\n    Type: Number\n    MinValue: 10\n    Default: 60\nResources:\n  Role:\n    Type: 'AWS::IAM::Role'\n    Properties:\n      AssumeRolePolicyDocument:\n        Version: 2012-10-17\n        Statement:\n          - Effect: Allow\n            Principal:\n              Service:\n                - lambda.amazonaws.com\n            Action: 'sts:AssumeRole'\n      Path: \/\n      Policies:\n        - PolicyName: test\n          PolicyDocument:\n            Version: 2012-10-17\n            Statement:\n            - Effect: Allow\n              Action: 'sqs:*'\n              Resource: '*'\n      ManagedPolicyArns:\n        - 'arn:aws:iam::aws:policy\/service-role\/AWSLambdaBasicExecutionRole'\n  Queue:\n    Type: 'AWS::SQS::Queue'\n  EventSourceMapping:\n    Type: 'AWS::Lambda::EventSourceMapping'\n    Properties:\n      BatchSize: 1\n      EventSourceArn: !Sub \"${Queue.Arn}\" \n      FunctionName: !Ref Function\n  Function:\n    Type: 'AWS::Lambda::Function'\n    Properties:\n      Code:\n        ZipFile: |\n          import boto3\n          import json\n          import os\n          sqs = boto3.client('sqs')\n          def lambda_handler(event, context):\n              message = event['Records'][0]['body']\n              print(message)\n              res = sqs.send_message(QueueUrl = os.environ['QUEUEURL'], MessageBody = message, DelaySeconds = int(os.environ['DELAY']))\n              print(json.dumps(res))\n      Environment:\n        Variables:\n          QUEUEURL: !Ref Queue\n          DELAY: !Ref DelaySeconds\n      Handler: index.lambda_handler\n      MemorySize: 128\n      ReservedConcurrentExecutions: 1\n      Role: !GetAtt \n        - Role\n        - Arn\n      Runtime: python3.10\n      Timeout: 3\n  LogGroup:\n    Type: 'AWS::Logs::LogGroup'\n    Properties:\n      LogGroupName: !Sub \"\/aws\/lambda\/${Function}\"\n      RetentionInDays: 1\n<\/pre>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u306f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30bf\u30a4\u30de\u30fc\u3067\u9045\u5ef6\u3055\u305b\u308b\u79d2\u6570\u3092\u6307\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u4eca\u56de\u306f30(\u79d2)\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u306a\u304a\u3001\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u306fLambda\u95a2\u6570\u3068\u540c\u6642\u306b\u305d\u306e\u5b9f\u884c\u7528\u30ed\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u300cAWS CloudFormation \u306b\u3088\u3063\u3066 IAM \u30ea\u30bd\u30fc\u30b9\u304c\u4f5c\u6210\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308b\u3053\u3068\u3092\u627f\u8a8d\u3057\u307e\u3059\u3002\u300d\u306e\u30c1\u30a7\u30c3\u30af\u3092\u5fd8\u308c\u305a\u306b\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div id=\"attachment_24593\" style=\"width: 822px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-capability_iam.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24593\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-capability_iam.png\" alt=\"CAPABILITY_IAM\u306e\u78ba\u8a8d\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u308b\" width=\"812\" height=\"202\" class=\"size-full wp-image-24593\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-capability_iam.png 812w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-capability_iam-300x75.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-capability_iam-768x191.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-capability_iam-728x181.png 728w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/a><p id=\"caption-attachment-24593\" class=\"wp-caption-text\">CloudFormation CAPABILITY_IAM\u78ba\u8a8d\u753b\u9762<\/p><\/div>\n<h1>\u8a66\u3057\u3066\u307f\u308b<\/h1>\n<p>\u4f5c\u3063\u305f\u74b0\u5883\u306b\u306f\u307e\u3060\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3072\u3068\u3064\u3082\u306a\u304f\u3001Lambda\u3082\u52d5\u304b\u306a\u3044\u72b6\u614b\u3067\u3059\u306e\u3067\u3001\u3069\u3053\u304b\u3067\u300c\u7740\u706b\u300d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4f5c\u6210\u3055\u308c\u305f\u30ad\u30e5\u30fc\u306e\u753b\u9762\u3067\u3001\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u4fe1\u300d\u30dc\u30bf\u30f3\u304b\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u3063\u3066\u307f\u307e\u3059\u3002\u5185\u5bb9\u306f\u306a\u3093\u3067\u3082OK\u3067\u3059\u3002\u3053\u3053\u3067\u306f<code>TTEESSTT<\/code>\u306e\u6587\u5b57\u5217\u3092\u9001\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<div id=\"attachment_24594\" style=\"width: 1030px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-send-messazge.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24594\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-send-messazge.png\" alt=\"SQS\u306b\u300cTTEESSTT\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\" width=\"1020\" height=\"384\" class=\"size-full wp-image-24594\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-send-messazge.png 1020w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-send-messazge-300x113.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-send-messazge-768x289.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-send-messazge-728x274.png 728w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/a><p id=\"caption-attachment-24594\" class=\"wp-caption-text\">SQS\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u753b\u9762<\/p><\/div>\n<p>\u306a\u304a\u3001\u4eca\u56de\u4f5c\u3063\u305f\u4ed5\u7d44\u307f\u3067\u306f\u30ad\u30e5\u30fc\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u306a\u3044\u5834\u5408\u306e\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u306f\u884c\u3063\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001Lambda\u95a2\u6570\u306e\u30c6\u30b9\u30c8\u3067\u7740\u706b\u3059\u308b\u306e\u306f\u4e0d\u53ef\u80fd\u3067\u3059\u3002\u30c6\u30b9\u30c8\u3057\u305f\u5834\u5408\u3001\u5b9a\u7fa9\u95a2\u6570\u306e1\u884c\u76ee\u3067<code>KeyError<\/code>\u304c\u767a\u751f\u3057\u3066\u95a2\u6570\u304c\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3061\u3083\u3044\u307e\u3059\u3002<\/p>\n<p>\u5f53\u521d\u306e\u76ee\u7684\u306f\u300cLambda\u3092\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3057\u305f\u3044\u300d\u3067\u3057\u305f\u306d\u3002CloudFormation\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u6307\u5b9a\u3057\u305f<code>Delay<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u304c<code>sqs#send_message()<\/code>\u306e<code>DelaySeconds<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u6e21\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u306e\u9593\u9694\u3067\u5b9f\u884c\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002CloudWatch\u306e\u753b\u9762\u306b\u79fb\u52d5\u3057\u3001\u30ed\u30b0\u306e\u51fa\u529b\u9593\u9694\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div id=\"attachment_24595\" style=\"width: 826px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_tteesstt.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24595\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_tteesstt.png\" alt=\"CloudWatch Logs \u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\u3067\u300cTTEESSTT\u300d\u306e\u51fa\u529b\u3092\u78ba\u8a8d\" width=\"816\" height=\"350\" class=\"size-full wp-image-24595\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_tteesstt.png 816w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_tteesstt-300x129.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_tteesstt-768x329.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_tteesstt-728x312.png 728w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/a><p id=\"caption-attachment-24595\" class=\"wp-caption-text\">\u30ed\u30b0\u3092\u6587\u5b57\u5217\u300cTTEESSTT\u300d\u3067\u30d5\u30a3\u30eb\u30bf\u3057\u305f\u7d50\u679c<\/p><\/div>\n<p>\u6307\u5b9a\u3057\u305f\u901a\u308a\u306e\u983b\u5ea6\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n<p>\u3082\u3046\u3072\u3068\u3064\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u5165\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u6b21\u306f<code>HHOOGGEE<\/code>\u306e\u6587\u5b57\u5217\u3092\u9001\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<div id=\"attachment_24596\" style=\"width: 836px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_hhooggee.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-24596\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_hhooggee.png\" alt=\"CloudWatch Logs \u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\u3067\u300cHHOOGGEE\u300d\u306e\u51fa\u529b\u3092\u78ba\u8a8d\" width=\"826\" height=\"322\" class=\"size-full wp-image-24596\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_hhooggee.png 826w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_hhooggee-300x117.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_hhooggee-768x299.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2023\/09\/20230926okayama-log_hhooggee-728x284.png 728w\" sizes=\"auto, (max-width: 826px) 100vw, 826px\" \/><\/a><p id=\"caption-attachment-24596\" class=\"wp-caption-text\">\u30ed\u30b0\u3092\u6587\u5b57\u5217\u300cHHOOGGEE\u300d\u3067\u30d5\u30a3\u30eb\u30bf\u3057\u305f\u7d50\u679c<\/p><\/div>\n<p>\u5148\u307b\u3069\u306e<code>TTEESSTT<\/code>\u3068\u306f\u72ec\u7acb\u3057\u305f\u30b5\u30a4\u30af\u30eb\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u305d\u308c\u305e\u308c\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3054\u3068\u306b\u51e6\u7406\u304c\u5b9a\u671f\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001\u30b7\u30fc\u30b1\u30f3\u30b7\u30e3\u30eb\u3067\u51e6\u7406\u3059\u308b\u5834\u5408\u306b\u8d77\u3053\u308a\u304c\u3061\u306a\u300c\u524d\u306e\u51e6\u7406\u304c\u9577\u5f15\u304f\u3068\u5b9f\u884c\u304c\u9045\u5ef6\u3057\u3066\u3044\u304f\u300d\u3068\u3044\u3063\u305f\u4e8b\u8c61\u3068\u306f\u304a\u3055\u3089\u3070\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n<h1>\u5fdc\u7528<\/h1>\n<p>\u4eca\u56de\u4f5c\u6210\u3057\u305f\u69cb\u6210\u306fPoC\u306b\u8fd1\u3044\u30d0\u30e9\u30c3\u30af\u30ec\u30d9\u30eb\u306e\u74b0\u5883\u3067\u3059\u304c\u3001\u3044\u308d\u3044\u308d\u5fdc\u7528\u306e\u4f59\u5730\u304c\u3042\u308a\u305d\u3046\u306a\u306e\u3067\u8003\u3048\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>SQS\u3067\u4fdd\u6301\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u306b\u30ab\u30a6\u30f3\u30bf\u30fc\u3068\u306a\u308b\u5024\u3092\u4fdd\u6301\u3055\u305b\u308b<br \/>\u5b9a\u671f\u7684\u306a\u5b9f\u884c\u3092\u6709\u9650\u306a\u56de\u6570\u3067\u7d42\u308f\u3089\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<li>\u5b9f\u884c\u9593\u9694\u3092\u52d5\u7684\u306b\u5909\u66f4\u3059\u308b<br \/>\u4f55\u304b\u306e\u51e6\u7406\u306e\u9032\u6357\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30b1\u30fc\u30b9\u306b\u304a\u3044\u3066\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u306b\u9032\u884c\u7387\u3092\u6301\u3063\u3066\u3044\u308b\u5834\u5408\u300180%\u307e\u3067\u306f120\u79d2\u3054\u3068\u300180%\u3092\u8d85\u3048\u305f\u308960\u79d2\u3054\u3068\u306b\u30c1\u30a7\u30c3\u30af\u983b\u5ea6\u3092\u4e0a\u3052\u308b\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>\u4eca\u56de\u306fLambda\u3092\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3055\u305b\u308b\u305f\u3081\u306bSQS\u3092\u4f7f\u3063\u305f\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002SQS\u306e\u5b9a\u756a\u51e6\u7406\u3068\u3044\u3048\u3070\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u304c\u3001\u610f\u5916\u306a\u4f7f\u3044\u65b9\u3082\u3067\u304d\u308b\u3093\u3067\u3059\u306d\u3002\u3067\u306f\u307e\u305f\uff01<\/p>\n<p>\u3042\u3001\u30c6\u30b9\u30c8\u3057\u305f\u3042\u3068\u306f\u3061\u3083\u3093\u3068\u4f5c\u6210\u3057\u305f\u30b9\u30bf\u30c3\u30af\u3092\u524a\u9664\u3057\u307e\u3057\u3087\u3046\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Lambda\u30921\u5206\u3088\u308a\u77ed\u3044\u30b5\u30a4\u30af\u30eb\u3067\u5b9a\u671f\u7684\u306b\u52d5\u304b\u3057\u305f\u3044\u3068\u601d\u3063\u305f\u3053\u3068\u3001\u3042\u308a\u307e\u305b\u3093\u304b\uff1f Lambda\u3092\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066\u307e\u305a\u6700\u521d\u306b\u601d\u3044\u6d6e\u304b\u3076\u306e\u306fEventBridge\u3067\u3059\u3002\u305f\u3060\u3001EventBridge\u306e\u5834\u5408&#8230;<\/p>\n","protected":false},"author":205,"featured_media":24592,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=24587","footnotes":""},"categories":[1251],"tags":[678,549],"class_list":{"0":"post-24587","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-sqs","8":"tag-amazon-sqs","9":"tag-aws-lambda","10":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/24587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/205"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=24587"}],"version-history":[{"count":13,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/24587\/revisions"}],"predecessor-version":[{"id":24697,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/24587\/revisions\/24697"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/24592"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=24587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=24587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=24587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}