An EC2 instance cannot be launched with "InsufficientInstanceCapacity". What are your options?
IntermediateScenarioEC2, Auto Scaling and Load Balancing
Answer
Situation read → The AZ is out of that instance type right now.
What I'd do →
- Retry in another AZ or subnet
- Use a different instance type or size, or
price-capacity-optimizedflexibility - For critical capacity use On-Demand Capacity Reservations
- Use attribute-based instance type selection in the ASG
- Don't hardcode one type
Why → Flexibility across types and AZs is the best protection against capacity errors.
Interview tip → Reserve capacity ahead of events like a launch.