Turn on instance recovery – Create a CloudWatch alarm that monitors an EC2 instance and automatically recovers it if it becomes impaired for any reason. For more information, see Add recover actions to Amazon CloudWatch alarms .
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html