Search code examples
amazon-web-servicesamazon-ec2aws-lambdaaws-auto-scaling

Custom trigger AWS AutoScale


I have an EC2 server running on AWS (nonstop working). I want to trigger another server group in Auto-scale group if this EC2 server's CPU reaches 70. How can I do this?

My Idea: Cloudwatch > Lambda > Trigger AutScale

If is there any good solution, i would like to hear that.


Solution

  • An auto-scaling group can trigger off any CloudWatch Alarm. So just setup your CloudWatch alarm, and configure your auto-scaling group to use it. No need to use Lambda for this.