Fast Launch automatically launch instances for ACG

0

Why does enabling fast launch for windows on an AMI connected to an automatic scaling group launch EC2 instances not initiated by the ASG?

It seems in the EC2 list that instances are popping up as soon as I enable the fast launch, but the ASG group is not in an alarm start or have scale-in actions

  • Can you check the Tags on one of the new instances to confirm its being launched by the AutoScaling Group? If yes, can you check the "Activity" tab of the Group and see what reason it gives for launching the new instances?

  • It's not started by the ASG. It seems it might be part of the provisioning of the Fast Launch that it starts EC2 instances. But the Fast Launch enabling always fails with the reasoning: Unable to stop instance (ID=i-xx) for snapshot creation.

Hansen
질문됨 4달 전183회 조회
1개 답변
0

The Fast Launch feature itself launches temporary instances, which are used to do the prep steps which happen on the first Windows boot. See the steps at the top of this doc for more details: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/win-ami-config-fast-launch.html

If you're using an ASG, then you could instead use a Warm Pool, which accomplishes a similar goal. It allows you to pre-provision instances, take care of the delays from the first Windows boot, as well as run any user-data you might want to get your application setup. After that's all done, you would complete the Lifecycle Hook on the ASG (as the last step in the userdata script), which tells the ASG to Stop that instance until its needed for a scale-out action

AWS
답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠