I am using a
CPUCreditBalance Cloudwatch alarm to alert me whenever
CPUCreditBalance goes below a threshold (e.g <50).
However, the problem is when instance is just launched it starts with base
credits (~20) or
sometime even 0.
Is there a way I can prevent alarm from alerting when instance has just launched?
Update: One possible solution that I can think of is writing a custom lambda function that checks if the instance has just started and suppress the alarms for such cases.