Can AWS CloudWatch alarms be paused/disabled during specific hours?

前端 未结 4 920
野趣味
野趣味 2020-12-30 02:15

I want to automatically toggle alarms on/off during specific periods of time so that they do not fire during maintenance windows. I\'m doubting that an easy or direct method

4条回答
  •  盖世英雄少女心
    2020-12-30 02:51

    Yeah, just as above you can do it using CLI. Also, you can stop sending data from scripts INCASE of custom metrics so that will automatically stop the alarm.

    Another way is you can write a script where you can have defined alarm using put-alarm (CloudWatch CLI ). There could be a function that creates alarms and one that deletes them. Call them when needed.

提交回复
热议问题