To be fair, with a proper autoscaling scheme in place these services should scale down significantly when not in use.
That being said, a big reason for using AWS/GCP is all the additional services that are available on the platform.. If the workload being run isn't that complicated, the hyperscalers are probably overkill. Even DO or Linode would be a better option under those circumstances.
This. AWS architect here. There are a lot of ways to reduce pricing in AWS like horizontal scaling, serverless functions, reserved instances. Most people aren't aware of it and if you're going to dive in head first into something like cloud, you'll need to bear the consequences and then learn eventually.
AWS is perfect for large operations that value stability and elasticity over anything else.
It's very easy to just spin up a thousand extra servers for momentary demand or some new exciting project. It's also easy to locate multiple instances all over the world for low latency with your users.
If you know you're going to need a couple servers for years and have the hardware knowhow, then it's cheaper to do it yourself for sure.
It's also possible to use aws more efficiently if you know all of their services. I ran a small utils website for my friends and I on it a while ago and it was essentially free since the static files were tiny and on s3 and the backend was lambda which gives you quite a few free calls before charging.
If the average Web engineer's salary capable of running a site like this is ~$180,000, then a $30,000 difference in cost is only about 2 months salary. Learning and dealing with a new hosting environment can easily exceed that.
That, and like others mentioned their flexibility, plus the fact that they're fairly reliable (maybe less than some good Iaas providers but a fair bit more than your consumer vps places). Moments ago I went to the hetzner site to check them out and got:
Status Code 504
Gateway Timeout
The upstream server failed to send a request in the time allowed by the server. If you are the Administrator of the Upstream, check your server logs for errors.
Annoying if it's you nextloud instance down for a minutes, but a worthy trade off if you're paying 1/4 of the price. Extremely costly for big business or even risking peoples's lives for a few different very important systems.
I'm not a server admin, but I am a dev, and for many of us it's just what we know because it's what our employers use. So sadly, when it comes to setting up infrastructure on our own time, the path of least resistance is just to use what we're already used to.
Personally I'm off AWS now though, but it definitely took some extra work (which was worth it, to be clear).
AWS is mostly only useful for large companies who need one hosting provider for all their needs, with every single product tightly integrated into other products
The pricing scheme here is designed to gouge businesses for equal or more than the traditional non-cloud equivalent. Which happens to be completely unaffordable. Imagine buying a new enterprise grade server for your home setup.
I mean I'm sure Lemmy's server process is stateless, I'm sure it could use CloudRun/ECS pretty efficiently and that wouldn't really require a rewrite (unless the process is stateful for some reason)
On linode i can run a half dozen docker images on a little vm for ten bucks a month. And their s3 is a few bucks a month for 250 gigabytes. The vast majority of projects I deal with have a predictable compute requirement - I don't get the need to pay the ridiculous premiums associated with elasticity. But I'm not exactly running uber or Netflix over here.
Why don't you migrate to cheaper providers like Hetzner? I mean AWS is extremely expensive for what they are and I am pretty sure there are hundreds of people out here who will willingly help you set it up.
It's a great deal, if you stay small, the idea is a loss leader, they temp you in and you set up your service, then when you need to scale up, they charge the extras.