How to receive only one sns notification triggered via autoscaling event.

0

I have registered SNS in AutoScalingGroup Activity notifications to receive notifications through messenger.

If 4 instances are scaled-out, 4 alarms are generated through SNS.

But I just want to know that it is scale-out. That is, I want to receive an alert only once.

How can I change the configuration?

preguntada hace 2 años388 visualizaciones
1 Respuesta
0
Respuesta aceptada

This isn't possible currently, but I've passed on this feedback to the internal AutoScaling team. The only workaround currently would be to aggregate the notifications via EventBridge, and then create your own mechanism to trigger an SNS notification once a threshold is breached. Ex, :

  • Have the Event notify Lambda which records the entries in a DB
  • Have the Event logged in a CloudWatch log group; which has a metric filter to create a custom metric; link an alarm to that custom metric

https://docs.aws.amazon.com/autoscaling/ec2/userguide/cloud-watch-events.html

AWS
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas