Open5
error log 通知 AWS Lambda 関数の更新
モチベ
現状、 log metrics で稼動しているが、 log filter で代替したい。
original
AWS CloudWatch Logs Subscription Filter
serverless framework
functions:
myCloudWatchLog:
handler: myCloudWatchLog.handler
events:
- cloudwatchLog:
logGroup: '/aws/lambda/hello'
filter: '{$.userIdentity.type = Root}'
ref.
with AWS ChatBot
TODO
add chatbot.amazonaws.com
to the trust relationship for arn:aws:iam::344384897107:role/service-role/chatbot-slack