I am deploying an AutoScalingGroup with AutoScalingPolicies (ScaleUp & ScaleDown) triggered by CloudWatch Alarm (CPU > 70%, CPU < 10%)
.
AutoScaling is working great but...Once the AutoScalingGroup has reached the minimal number of instance (2), the CPU < 10%
alarm stays in ALARM STATE
for hours...days...without resetting to OK STATE
.
Because the CPUs utilization stay under 10%, I know it is normal the alarm never back to OK STATE
.
I know it exists some AlarmActions
like:
arn:aws:automate:${AWS::Region}:ec2:recover
(for EC2)
I searched for similar Cloudwatch actions, did not find anything.
I have a custom solution: using a Lambda to change the Alarm State to OK
but I would like to know if a smarter/easier solution exists.
Does anybody know how to do that?
Thanks.