Not able to update the auto scaling group during after office hours
This issue was originally reported by Alex, a developer from CIB.
The original issue: Alex was not able to deploy his changes to the test/staging environment. He posted screenshots and links to his problem. I took note of the time that he executed the deployment job. Alex ran the deployment job during the after office hours. That's the period of scale_in schedule that we have set up for them.
I looked at the log of the deploy job, below is a screenshot of it:
The above error indicates that the function,
instances_with_asgs, was not able to return a list of instances inside an auto scaling group. Which makes sense because during the scale_in/after office hours period, there is no instances.
- Make the function
instances_with_asgsfallback to another function that returns the active auto scaling group. "Active" is defined as an auto scaling group that is attached to a target group, hence a load balancer.
- Make a new function that will skip the step that
instances_with_asgsis supposed to do.