CloudFormation AutoScalingGroup not waiting for signal on update/scale-up

前端 未结 2 1860
遥遥无期
遥遥无期 2021-02-06 04:30

I\'m working with a CloudFormation template that brings up as many instances as I request, and want to wait for them to finish initialising (via User Data) before the stack crea

2条回答
  •  一个人的身影
    2021-02-06 05:02

    the rolling update only works for existing instances. The documentation says:

    Rolling updates enable you to specify whether AWS CloudFormation updates instances that are in an Auto Scaling group in batches or all at once.

    So to test this, create a stack based on your template. than make a small modification to the launch config (e.g. set sleep 120 to 121) and update the stack. now you should see a rolling update.

提交回复
热议问题