Question

Is there a way to limit monthly spending?

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.


Submit an answer


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!

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
December 27, 2024
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/

alexdo
Site Moderator
Site Moderator badge
December 29, 2024

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!

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.