My terraform wey it went crazy last night
I had this auto-scaling group set up for a side project right, nothing fancy, just "if cpu > 70% add instance" simple stuff wey. But I forgot the downscale condition was commented out for "testing" (yeah right) and the scale-up trigger was checking every 30 seconds
Woke up to 200 instances running on Vultr
My bill wey its gonna be like my rent for a year
The logs show it looped: instance spins up, health check fails somehow (my bad config), instance stays, cpu still high (from all the health checks?), another spins up
How do I stop this from happening again? I already killed everything but the damage wey
Is there like a circuit breaker pattern for this or what