I want to modify the number of minimum/maximum/target instances of an autoscale group and see if there’s any instance on from this autoscale group, all dynamically using the AWS SDK for Python. How can I do it?
I’m unable to find it from literature.
2
Answers
First verify your time is sync with aws:
Read configuration:
Set desired/min/max:
I will help you by pointing out where you can find informaton about using AutoScaling and the AWS SDK for Python. Refer to the AWS SDK Code Examples Code Library.
This doc should be the reference point when you want to learn how to do tasks using a given AWS SDK.
See:
https://docs.aws.amazon.com/code-library/latest/ug/auto-scaling_example_auto-scaling_Scenario_GroupsAndInstances_section.html