3

I've got an ec2 autoscaling group that starts in the morning and finishes in the evening. I'd like to create a 'button' that people can click to warm up the autoscaling group to run jobs in the middle of the night (only on an on-demand basis).

My question is: What is the ec2 cli command to modify the minimum number of nodes in a scaling group?

hawkeye
  • 1,153
  • 1
  • 9
  • 14

1 Answers1

0

I'd go with aws autoscaling set-desired-capacity following the documentation

But if you're up to make a button you should look into the various AWS sdk (on top right is the list of them) to call the related API instead of forking to a system command.

Tensibai
  • 11,416
  • 2
  • 37
  • 63