퍼블릭 클라우드

AWS Chatbot을 사용하여 Slack 채널에서 Amazon EventBridge 이벤트를 모니터링하고 알림을 받는 방법

변군Dev 2023. 8. 17. 11:15
728x90

AWS Chatbot을 사용하여 Slack 채널에서 Amazon EventBridge 이벤트를 모니터링하고 알림을 받는 방법

1. Slack Incoming Webhook 설정

2. AWS Chatbot 구성

  • Slack에 로그인한 상태에서 진행하면 로그인 과정이 필요 없다. 
  • AWS Management Console에서 Chatbot 서비스를 엽니다.
  • "Slack 연결"을 클릭하여 Slack과 Chatbot을 연결합니다.

c1
c2
c3

  • 구성 이름 : AWSChatbot-configuration

c4

  • 역할 이름 : AWSChatbot-role

c5

728x90

3. Amazon SNS 주제 생성

  • 이름 : AWSChatbottoSlackviaAmazonSNS
  • 표시 이름 : Send notifications from AWS Chatbot to Slack via Amazon SNS

s1
s2
s3

4. Amazon EventBridge 이벤트 규칙 생성

AWS Management Console에서 EventBridge 서비스를 엽니다.

  이름 설명/(-이벤트 패턴)
EC2 EC2InstanceState-NotificationsManagedRule EC2 Instance State Notifications Managed Rule
- EC2 Instance State-change Notification
Console Sign AWSConsoleSign-NotificationsManagedRule AWS Console Sign Notifications Managed Rule
- AWS Console Sign In via CloudTrail
RDS Event RDSDBInstanceEvent-NotificationsManagedRule RDS DB Instance Event Notifications Managed Rule
- RDS DB Instance Event

"규칙 -> 규칙 생성"을 선택합니다.

e1
e2
e3
e4

5. Amazon EventBridge 이벤트 및 알림 테스트

EventBridge 이벤트를 트리거하여 Slack 채널로 알림이 전송되는지 확인합니다. 테스트 이벤트를 생성하거나 이벤트를 발생시켜 Chatbot을 통해 Slack으로 알림이 도착하는지 확인합니다.

6. 추가 구성 및 모니터링

필요에 따라 AWS EventBridge 규칙 및 Chatbot 설정을 추가 구성하여 특정 이벤트에 대한 알림을 개인화하거나 필터링할 수 있습니다. 또한 CloudWatch 이벤트 및 Amazon CloudWatch Logs를 통해 이벤트의 로그 및 모니터링을 추가로 구성할 수 있습니다.


AWS Chatbot을 사용하여 Slack으로 Amazon EventBridge 이벤트를 모니터링하면 효과적인 알림 및 모니터링 시스템을 구축할 수 있습니다. 이를 통해 중요한 이벤트에 신속하게 대응하고 시스템을 모니터링할 수 있습니다.

 

참고URL

- Monitor Amazon EventBridge events in your Slack channels with AWS Chatbot

 

 

728x90