0

I am trying to create an alarm that triggers sns topic when vpn tunnels are up or down. According to documentation from AWS I created TunnelState alarm which triggers if tunnel goes down or condition hits 0. enter image description here

Now, I want to create an alarm that triggers when tunnels are up only once. Is there a way to do this? Because if I create a condition that says trigger SNS topic when the condition is 1. It will keep that in alarm status when the tunnel comes up.

NoviceMe
  • 3,126
  • 11
  • 57
  • 117

1 Answers1

0

I figured it out, posting a solution here might help someone in the future.

I created another notification on the same cloudwatch alarm which is for OK status. When the status is 'OK' trigger SNS topic again.

So now I have two notifications: One in Alarm -> hit sns topic One in OK -> hit sns topic

The above solution works perfectly.

NoviceMe
  • 3,126
  • 11
  • 57
  • 117