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 Respostas
3
Resposta aceita

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
respondido há 9 meses
profile pictureAWS
ESPECIALISTA
avaliado há 9 meses
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
respondido há 9 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas