How to configure EventBridge to run a powershell document on target machines when ever a CloudWatch alarm is triggered.

0

When I receive an Amazon CloudWatch alarm notification for memory high, high cpu and high disk utilization, I want to run a powershell document that will capture the processes or files using the most resources and email that information or dump in an s3 bucket for review. I will like to leverage EventBridge for this solution.

rasangs
已提問 9 個月前檢視次數 354 次
2 個答案
3
已接受的答案

Hello ,

You need to use SSM Automation document as target of your EventBridge event.

https://docs.aws.amazon.com/systems-manager/latest/userguide/running-automations-event-bridge.html

AWS
Nabil
已回答 9 個月前
profile pictureAWS
專家
已審閱 9 個月前
0

Thanks Nabil. Additionally, worth mentioning that all CloudWatch alarms are set in one account and the machines are in a different AWS account. I am certain that I can configure a cross region/account event bridge, but not so sure how I can feed the alarm status into event bus in account A, then pass that on to event bus in account B to then execute the Powershell document. So what would be your opinion of a high level design in this case?

rasangs
已回答 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南