Reputation: 2492
I using cloud formation template to auto scale application but i want to launch two instance with once scale up policy
like when i scale-up my web application along with that my data base instance also be launch with different user data in formation template
any one know about how to launch multiple instance in one launch config. please help me out if any body has already implemented
Upvotes: 0
Views: 225
Reputation: 4309
You can't. A Scaling Group is a group of the same resources for scaling, and a Launch configuration is a single configuration to launch an instance.
What you can do is trigger two policies from the one alarm. Go down that path.
Upvotes: 0
Reputation: 8543
It's the "adjustment" parameter of the scaling policy call, as-put-scaling-policy, see the reference
1 means scale up one per trigger, 2, scale up two, -2, scale down two, etc.
Upvotes: 1