Skip to main content

Prisma Postgres

Prisma Postgres is a fully managed PostgreSQL database service designed for serverless applications.

Resources

Database

Creates and manages Prisma Postgres databases.

Props

Project | string
required
The project to create the database in. Can be a Project object or project ID string.
string
default:"${app}-${stage}-${id}"
The name of the database
string
The region to create the database in. Available regions:
  • us-east-1
  • us-west-1
  • eu-west-3
  • eu-central-1
  • ap-northeast-1
  • ap-southeast-1
boolean
default:"false"
Whether to delete the database if the resource is deleted
Secret
The service token to use for the API

Returns

string
The Prisma ID of the database
string
The name of the database
'failure' | 'provisioning' | 'ready' | 'recovering'
The status of the database
string
The region of the database
string
The timestamp of the database creation
string
The Prisma ID of the project the database belongs to