Zero Downtime Deployments with AWS CodeDeploy
Aleksandar Palic

When inserting the patch above we were getting an error that it was “”Unable to determine minimum and desired capacity for ASG” because $min_desired was not getting set. I had to add the following to call the ASG for a value…

local min_desired=$($AWS_CLI autoscaling describe-auto-scaling-groups \
 — auto-scaling-group-name $asg_name \
 — query ‘AutoScalingGroups[0].[MinSize, DesiredCapacity]’ \
 — output text)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.