r/webdev • u/codeb1ack • Oct 14 '26
What if you could completely destroy a cloud environment, then bring it back exactly when you need it?
I'm a developer exploring an idea and wanted to get some feedback before spending time building it.
One thing I've noticed with cloud providers like DigitalOcean is that you're still paying for servers even when they're powered off. For development and staging environments that are rarely used, that feels like a giant waste of money.
I am genuinely curious to know how other developers and infrastructure managers handle this
What if you could completely destroy an environment to stop compute charges, then recreate it on demand with the same configuration, application, and data? Essentially, a hibernate/wake system for cloud environments.
Would you use something like this? Or is this solving a problem that has been solved before.
Interested in hearing the technical objections too.
3
u/ShinobiX_Samurai Oct 14 '26
Can't you use serverless architectecture that way you only charges for the requests
9
u/pod_of_dolphins Oct 14 '26
Yes, anyone who sees this as a real problem can describe their infrastructure as code (i.e. Terraform) and create/destroy environments on demand.
9
u/shiny0metal0ass full-stack idiot Oct 14 '26
Lol buddy... Where have you been for the last ten years?
8
u/ian4tge Oct 14 '26
This is infrastructure as code. Lookup AWS CloudFormation templates. You can’t always take everything down (like storage or ALBs in the case of some work I did today) but you can turn off the heavy compute services
5
u/bunoso Oct 14 '26
yes this is the bread and butter of a DevOps engineer. terraform, cdk, cloudformation, etc
4
u/fiskfisk Oct 14 '26
You're describing Infrastructure as Code (IaC), like Terraform / opentofu, Polumi, etc.
It's a well-known concept where your definitions is the wanted state and the tools bring your platform in sync with that state.
1
u/Not_a_Cake_ Oct 14 '26
Doesn't sound too difficult to achieve, just take a snapshot of the volumes or configurations, delete them and recreate it when needed using IaC
1
u/Warm_Lobster_7900 Oct 14 '26
What's the actual number though? Every staging setup I've seen is one small droplet, so we're talking tens of dollars a month, and Terraform already tears the whole thing down and brings it back. The data is the part that's genuinely hard and the part nobody's solved with a sleep button.
1
u/zomerbk Oct 15 '26
The tricky part is what lives outside the server. If a recreated environment gets a new IP, allowlists and third-party integrations may break even when the app and data restore correctly. I’d consider it useful if waking also checked those connections and gave a predictable time until the environment was ready.
1
u/Practical_Band_4880 Oct 15 '26
honestly the bigger cost for us was forgotten load balancers and volumes, not the droplets. Would you handle those too or just compute?
1
u/[deleted] Oct 14 '26
[removed] — view removed comment
-3
u/[deleted] Oct 14 '26
[removed] — view removed comment