Report this

What is the reason for this report?

Is there a way to limit monthly spending?

Posted on December 25, 2024

I want to make sure that i dont accidentally do something which makes the bill sky rocket, is there a way to put a limit on how much resource or money a project can spend before it shuts down? or something similar to that.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
0

Accepted Answer

Heya,

DigitalOcean does not currently offer an automated way to cap your usage and shut down your services once you reach a specific billing level.

What I personally do is to set up billing alerts to notify me when my spending reaches a certain threshold. You can set those thresholds pretty low so that you would get notified early.

You can also write a shell script to shutdown your Droplets so that you could do that quickly in case that you get an alert. You can use the doctl CLI to do that:

https://docs.digitalocean.com/reference/doctl/reference/compute/droplet-action/shutdown/

The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.

https://ideas.digitalocean.com/

Heya, @hampternt

You can set up billing alerts and we will email you if the monthly spending exceeds an amount you specify.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.