AWS - Start Second Instance Via Cloudwatch

Asked

Viewed 20 times

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 holds the load.

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

I checked and via EC2-Load Balance, or Cloudwatch, I only have the option to upload an AMI from the first instance (instance where high CPU usage was detected), but an AMI does not meet this scenario since they are somewhat different instances.

It would have some way, maybe via LAMBDA, for, when the event occurs (high CPU USE), I remotely startar the second instance?

Thank you.

1 answer

0

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.