When trying to create my DO App Platform infrastructure with Terraform, I receive the following error:
error validating app spec field “databases.version”: “15” is not a supported database version
The database section of the app spec file is as follows:
database {
name = "${var.pg_edgedb_service_name}-${terraform.workspace}"
engine = "PG"
version = var.pg_edgedb_ver
production = terraform.workspace == "prod" ? true : false
cluster_name = "edgedb-postgres-cluster-${terraform.workspace}"
}
I receive the same error whether I pass in 15 , 14, or 13 for the version attribute. 12 seems to work–there is at least not an immediate field validation error. If I create a DB manually in the UI, versions 13, 14, and 15 are available for selection, and I can’t find any documentation to suggest that at least 13 shouldn’t work, so this has me pretty confused.
What versions are actually supported? Where can I find relevant documentation?
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!
Hi there,
I believe that this could be related to the production flag, does it work if you set this to true and then try it again?
I believe that the default version for the dev databases is 12 hence it is failing when production is set to false.
Let me know how it goes!
Best,
Bobby
Im having an identical issue, following along with the zero to production in Rust book. My spec.yaml file’s database section looks very similar, just with more hard coded values:
name: zero2prod
region: sfo
services:
- name: zero2prod
dockerfile_path: ./Dockerfile
source_dir: .
github:
branch: master
deploy_on_push: true
repo: voidKandy/zero2prod
health_check:
http_path: /health_check
http_port: 8000
instance_count: 1
instance_size_slug: basic-xxs
routes:
- path: /
databases:
- engine: PG
name: newsletter
num_nodes: 1
size: db-s-dev-database
version: "15"
I’m getting the identical error message:
error validating app spec field "databases.version": "15" is not a supported database version
This happens regardless of the number I set the version to. This is very confusing, I would love to be directed to some relevant documentation as nothing I’ve found in the DO docs have been of any help
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.