UpdatePolicy in Autoscaling group not working correctly for AWS CloudFormation update

穿精又带淫゛_ 提交于 2020-01-14 13:37:08

问题


I am using AWS CloudFormation to launch my server stack. I have created a LaunchConfig and then AutoScaling group that uses the above launchconfig. I have set CreationPolicy which waits for signals from my EC2 instances which creating the CF stack.

Also, i have set UpdatePolicy to AutoScaling group to wait for the signals from new instances if i update the CF stack with more desired number of instances as follows:

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

According to the above, CF should wait for signals from newly launched instances (or get timed out) before setting the status of CF stack as "UPDATE_COMPLE".

But it is not working as explained above. The status of CF stack immediately changes to "UPDATE_COMPLE" w/o waiting for signals.

Please help.

来源:https://stackoverflow.com/questions/30525972/updatepolicy-in-autoscaling-group-not-working-correctly-for-aws-cloudformation-u

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!