Write a lambda function!
It is cheaper than launching a micro-instance, and you can configure it for any period of time. You also get CloudWatch monitoring, so you donβt have to worry about checking the health of your micro-participant separately.
I am using ElasticBeanstalk, which offers the describeInstancesHealth
endpoint. Alternatively, you can use the ec2 endpoint of describeInstanceStatus
.
Then, if you find a bad instance, ec2 rebootInstances
allows rebootInstances
to restart one or more instances.
agmin source share