Open5

error log 通知 AWS Lambda 関数の更新

wintwint

AWS CloudWatch Logs Subscription Filter

https://docs.aws.amazon.com/ja_jp/AmazonCloudWatch/latest/logs/SubscriptionFilters.html

https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/services-cloudwatchlogs.html

serverless framework

functions:
  myCloudWatchLog:
    handler: myCloudWatchLog.handler
    events:
      - cloudwatchLog:
          logGroup: '/aws/lambda/hello'
          filter: '{$.userIdentity.type = Root}'

ref.

https://www.serverless.com/framework/docs/providers/aws/events/cloudwatch-log

https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html

wintwint

TODO

add chatbot.amazonaws.com to the trust relationship for arn:aws:iam::344384897107:role/service-role/chatbot-slack