How do I debug a failed Cloudwatch Alarm action

0

I have the following Cloudwatch alarm set on my instances:

aws cloudwatch put-metric-alarm \
    --alarm-name stop-when-idle \
    --namespace AWS/EC2 \
    --metric-name CPUUtilization \
    --statistic Maximum \
    --period 300  \
    --evaluation-periods 3 \
    --threshold 10 \
    --comparison-operator LessThanThreshold \
    --unit Percent \
    --dimensions "Name=InstanceId,Value=$INSTANCE_ID" \
    --alarm-actions arn:aws:automate:$AWS_REGION:ec2:stop

However, it recently failed to run; it triggered successfully, and two seconds later attempted to run the stop action, but it says:

Failed to execute action arn:aws:automate:us-east-1:ec2:stop. Received error: ""

Looking at the full details, I see:

{
  "alarmName": "stop-when-idle",
  "alarmType": "MetricAlarm",
  "timestamp": "2023-03-16T07:01:07.187Z",
  "historyItemType": "Action",
  "historySummary": "Stop EC2 Instance 'i-REDACTED' failed",
  "historyData": {
    "actionState": "Failed",
    "stateUpdateTimestamp": 1678950065929,
    "notificationResource": "arn:aws:automate:us-east-1:ec2:stop",
    "publishedMessage": null,
    "error": null
  }
}

With no error listed. What can I do to figure out why this didn't work?

mikeage
질문됨 일 년 전114회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인