UpdatePolicy in Autoscaling group does not work correctly to update CloudSormation AWS

I am using AWS CloudFormation to run my server stack. I created the LaunchConfig group, and then the AutoScaling group, which uses the startconfig above. I installed CreationPolicy, which waits for signals from my EC2 instances that create the CF stack.

In addition, I set the UpdatePolicy group to the AutoScaling group to wait for signals from new instances if I update the CF stack with a more desirable number of instances as follows:

"UpdatePolicy" : { "AutoScalingRollingUpdate" : { "PauseTime" : "PT10M", "WaitOnResourceSignals" : "true" } } 

In accordance with the foregoing, CF must wait for signals from newly launched instances (or get a timeout) before setting the status of the CF stack as "UPDATE_COMPLE".

But it does not work as described above. The state of the CF stack immediately goes to "UPDATE_COMPLE" without waiting for signals.

Please, help.

+3
source share

Source: https://habr.com/ru/post/1263769/


All Articles