- Newest
- Most votes
- Most comments
Hello,
You need to remove 'spot' from the launch template options, since its incompatible with the multiple instance types feature in AutoScaling. Since you're selecting "100% spot" in the overrides all your instances will be spot (even though you don't have it selected in the LT).
Basically, when you're using the overrides option you need to let the AutoScaling logic take over for the spot or not decisions (which AutoScaling then passes on to EC2 Fleet in a CreateFleet call if you ever want to look in cloudtrail at what happens under the hood)
This behavior is mentioned here: https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html But I can see how the wording is a bit ambiguous, so I've reached out to the AutoScaling team to have it updated to be more clear that you MUST leave the 'request spot instances' box un-checked
Thank you for choosing launch templates :)
Relevant content
- asked a year ago
- asked 2 years ago
- asked 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Ok, got it! Thanks! However, I am unable to modify my auto-scaling template to undo the instance selection. Please see my other question which has not answer yet: https://repost.aws/questions/QUmDEIczs-TLCxt3Lvhdm-eg/unable-to-remove-instance-type-from-launch-template . Thanks!