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.

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
エキスパート
レビュー済み 8ヶ月前
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ