Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending an SNS Notification when Alarm state changes to OK

I have monitored the status of VPN tunnels in my account.I have created CloudWatch alarms and configured SNS notifications when they are down. At the moment, that is working fine. Now, I have got another requirement saying I have to send alarm whenever the state changes to OK.

This is the image of the alarm configuration :

enter image description here

There, in the snapshot, it says :

Whenever this alarm : STATE is ALARM

I would change that to :

Whenever this alarm : STATE is OK

But, by doing that, will the Cloud Watch send me notifications every 5 minutes until the state is in OK? I have this doubt because it is written STATE is OK instead of STATE changes to OK. Please let me know.

like image 778
prudhvi Avatar asked Feb 04 '23 11:02

prudhvi


1 Answers

An Amazon CloudWatch alarm only sends a notification on a change of state.

So, if your alarm is set to send a notification when State = OK: If the state is already OK, it will not send a notification. However, when the state changes to something else and the changes back to OK, it would send a notification.

like image 93
John Rotenstein Avatar answered Feb 07 '23 09:02

John Rotenstein