Hacker News new | ask | show | jobs
by alexbilbie 3202 days ago
You can implement this with a simple auto-scaling group or write a small Lambda function which runs at a certain time to start/stop the instance
2 comments

Autoscaling groups can be scheduled without a lambda function.

http://docs.aws.amazon.com/autoscaling/latest/userguide/sche...

You typically want exactly 0 or 1 instances for testing instances. I don't recall autoscaling groups able to do that.
This is entirely possible. Scheduled actions can make this happen on a schedule (simply schedule desired-capacity=1 when you want it on and desired-capacity=0 when you want it off). Or you can simply run a command to do it on demand.
I have an autoscaling group that goes from 0 to 1 every day for some batch processing. It took a bit of finagling but it's definitely possible.