amazon-cloudwatch-auto-alarms icon indicating copy to clipboard operation
amazon-cloudwatch-auto-alarms copied to clipboard

Update and refresh alarms when an alarm tag is updated

Open mpechner-akasa opened this issue 3 years ago • 1 comments

If the alert tag is changed, or the defaults are changed, then new alerts are created. But the current alerts that are meant to be replaced are left as is.

There is a scan function, possibly a refresh that will delete alerts and re add them.

Possibly allow args and the function to run with parameters. So as a lambda lambda handler is called. From main another function. I've had code used as lambda and called from CLI.

mpechner-akasa avatar Apr 10 '23 04:04 mpechner-akasa

Hi @mpechner-akasa, thanks for opening this issue and feature request. You are correct, if you change the tag it is additive and doesn't eliminate the previous alarm tag. I will work on the solution for this so that it will do a true "rescan" of tags and also remove alarms that are present for which no corresponding tag now exists.

knizami avatar Apr 10 '23 11:04 knizami