AWS - Start Second Instance Via Cloudwatch

0

Hello, I have a scenario with 2 instances, in a "load balance on iis - Windows Server", but most of the time, only one instance can handle the load.

Therefore, the client requested me to keep the second instance off and start it only when the first instance reaches 90% CPU usage.

I checked and via EC2-Load Balance, or CloudWatch, I only have the option of uploading an AMI from the first instance (instance where high CPU usage was detected), but an AMI does not meet this scenario since one little different.

Would there be some way, perhaps via LAMBDA, to, when the event occurs (High CPU Usage), would I remotely start the second instance?

Thank you.

    
asked by anonymous 17.06.2018 / 04:26

1 answer

0

It would be simpler to create a self-scaling group for the second instance with a minimum of 0 and a maximum of 1, changing in reaction to the alarm. The function would work as well, but it gives more work.

    
18.06.2018 / 12:31