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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则