【AWS】Chatbotでslack通知時に channel_not_found が出る

概要

CodeBuildの通知設定中に以下のエラーが出てしまう

Encountered error while sending message to Slack: Slack Web API returned unsuccessful response ( ok: false, error code: channel_not_found, full response body: ChatPostMessageResponse(ok=false, warning=null, error=channel_not_found, needed=null, provided=null, deprecatedArgument=null, responseMetadata=null, channel=null, ts=null, message=null)).

解決策

private チャネルにメッセージを通知する場合、AWSを招待しないとメッセージが送信されない

対象のチャネルで以下を実行すれば招待出来る

/invite @aws

参考

Test notifications from AWS services to chat channels using CloudWatch - AWS Chatbot
Learn how to test your notifications for AWS Chatbot by using CloudWatch

コメント

タイトルとURLをコピーしました