error validating app spec field "databases.version": "14" is not a supported database version

Here’s my spec.yml

name: zero2prod
region: nyc
  - name: zero2prod
    dockerfile_path: Dockerfile
    source_dir: .
      branch: main
      deploy_on_push: true
      repo: my_name/zero_to_prod
      http_path: /health_check
    http_port: 8000
    instance_count: 1
    instance_size_slug: basic-xxs
      - path: /
  - engine: PG
    name: newsletter
    num_nodes: 1
    size: db-s-dev-database
    version: "14"

Why is it saying 14 is not a valid version when I can create it from the UI?

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.

Bobby Iliev
Site Moderator
Site Moderator badge
May 9, 2023

Hi there,

I believe that the problem is due to the fact that you are using a dev database. With dev databases, you don’t get the complete version list available.

In case that you need Postgres 14 specifically, it is best to use a Managed database cluster rather than a dev database cluster:

Hope that this helps!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

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

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel