0

I am new on AWS Elastic Beanstalk and I have deployed an application via eb cli. For me scale up or down my application via eb cli I have found the following command

eb scale number-of-instances

but in my scenario I would like to scape up or down only once instance per time.

What I am looking for is a way to scale it by using its cli with some command like

eb scale up/down 

but this kind of command is not supported.

Is there a way in which I am able to scale my application this way via eb cli, or I must always set the number of instances that I want?

Sathyajith Bhat
  • 21,321
  • 22
  • 95
  • 134
Augusto Accorsi
  • 317
  • 5
  • 21
  • Please explain in more detail what you mean by "only one instance per time". – Mark B Jan 25 '21 at 15:55
  • Hello Mark, what I want is to be able to increment or decrement only one instance, assuming I do not know how many instances my application has – Augusto Accorsi Jan 25 '21 at 15:59

1 Answers1

0

I have solved this problem by getting the instance number via

eb status - v

and than based on the value of Running instances I execute the command

eb scale number-of-instances

I know that this is not the best solution, but this is how I solved my issue

Augusto Accorsi
  • 317
  • 5
  • 21