Within AWS Lambda is it possible to run cloud formation code?
Basically, I want to watch some ec2 instances using CloudWatch. When the usage(CPU) of the EC2 has crossed a certain threshold for some time, I want a Cloudwatch event raised which would in turn trigger a lamba which would in turn provision few more ec2 instances.
Is this possible?
I know there are other services like Autoscaling groups, ECS etc, but just want to know the possibility of above.
(Any suggestions on what is the best approach to dynamically provision more ec2 instances based on load / cpu usage are welcome)