Question

How do I specify the managed database tier in the app.yaml file when using doctl for deployment?

My app is deployed with a yaml file and doctl, and it contains a managed database. In managed database I should be able to choose the size and the tier as said here However, I did not see any option to specify the database tier in the doc page. My app is small and basic tier is enough. How should I specify the database tier in the yaml file?

databases: -name engine version production cluster_name db_name db_user


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.

alexdo
Site Moderator
Site Moderator badge
February 17, 2025

Heya, @matthewhuang

I believe there isn’t a direct field to specify the database tier (e.g., Basic, Pro) within the YAML file.

To utilize a managed database with a specific tier, you should first create the database separately via the DigitalOcean Control Panel, where you can select the desired size and tier. Once the database is created, you can reference it in your app’s YAML spec using the cluster_name field to associate your app with the existing managed database.

docs.digitalocean.com

For small applications, if the Basic tier suffices, you can create a development (dev) database directly within the app spec. However, dev databases are limited in scalability and are not intended for production use. They also lack options to specify size or tier.

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.