🟧

AWS CloudWatch Alarmsの状態を強制的に変更する

2023/05/16に公開
$ aws cloudwatch set-alarm-state --alarm-name ALARM_NAME --state-value STATE_VALUE --state-reason STATE_REASON
Key description
ALARM_NAME アラーム名
STATE_VALUE アラーム状態: OK | ALARM | INSUFFICIENT_DATA
STATE_REASON アラーム状態を変更する理由

https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html

https://docs.aws.amazon.com/cli/latest/reference/cloudwatch/set-alarm-state.html

Discussion