0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

cloudwatch alarmのアクションを一括で変更する

Last updated at Posted at 2023-03-13

cloudwatchアラームを止めたくてアクションを無効にしようとしたのだが、コンソールから無効は出来なかった。
現状CLIでしか出来ないみたい
なので以下コマンドで一括停止

aws cloudwatch describe-alarms | jq -r '.MetricAlarms[] | .AlarmName' | xargs aws cloudwatch disable-alarm-actions --alarm-names

再開したい時は以下を実行

aws cloudwatch describe-alarms | jq -r '.MetricAlarms[] | .AlarmName' | xargs aws cloudwatch enable-alarm-actions --alarm-names

追記: コンソールから出来るようになってた

対象のアラームを選択し、右上の Actions -> Alarm actions - new から有効・無効切り替えられるみたいです

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?