by web3-is-a-scam · 2y ago · 0 comments
We went even further than that and ditched kubernetes, and containers altogether and moved everything to just EC2/elastic beanstalk.
Took us 2 months to write everything in terraform initially. Took 2 days to shift everything back and maintenance is just so much easier for us. Much easier to find people that can manage infra this way too.
To this day I struggle to find a tangible benefit to the old stack. Everything is just “better” now and half the cost.
YMMV of course.
Everything sits behind application load balancer and API gateway, all basic stuff
We have about 100 boxes, but basically only 3 “environments” for our distributed monolith. Every box in a distinct environment is provisioned and configured in exactly the same way.
need to change some config? It’s at most a few extra clicks to do it in multiple environments. Then EB handles the rolling deployments and health check failover stuff. It’s very hands off, with another small benefit of not needing to bother with fudging around with terraform state, wasting compute on building containers and paying for registry storage.
IaC doesn't magically solve any of those problems but if you make a mistake once you can fix it once instead of fixing it N times.