Reputation: 365
In aws console or eb cli its possible to change time-base scaling settings to an application. Beanstalk auto scaling basically schedule actions to add or remove instances. I'm trying to change this settings programmatically, using aws-sdk maybe, but i couldn't find any options to achieve this. It's possible to change this setting programmatically or i really need to use aws console or eb cli to accomplish that?
Upvotes: 0
Views: 385
Reputation: 781
Unless beanstalk has added an option recently I don't know about, to do this programatically you'll have to modify the AutoScaling options properties within the beanstalk config, either through directly changing the options settings[1] in your environment, or by adding options files files in the .ebextensions folder at the root of your application[2]
Note: There's currently an issue with this specific option setting where the shorthand version doesn't work, so you'll have to use the long form version
Upvotes: 1
Reputation: 200562
Elastic Beanstalk is managing an AWS AutoScaling Group for you behind the scenes. That's what is actually doing the scaling. Using the AWS SDK you would need to use the put_scheduled_update_group_action
method to create a scheduled scaling policy.
I'm referencing the Python version of the SDK here because you didn't specify your programming language.
Upvotes: 1