Skip to content

v1.0.0 - Create Prisma Postgres Database Action

Compare
Choose a tag to compare
@nurul3101 nurul3101 released this 22 Jul 14:59
· 2 commits to main since this release
2b8112c

GitHub Action for creating Prisma Postgres databases in CI/CD workflows. Enables automated database provisioning for testing, development, and deployment pipelines.

Repository: prisma/create-prisma-postgres-database-action

What's New

  • Database Creation: Programmatically create Prisma Postgres databases via GitHub Action
  • Smart Naming: Auto-generates names (pr_{number}_{branch} for PRs, test_{run_number} for other contexts) or accepts custom names
  • Multi-Region Support: Deploy databases in different regions (defaults to us-east-1)
  • Complete Integration: Returns database ID, name, and connection URL for immediate use in workflows

API Reference

Inputs

Parameter Required Description Default
service_token Yes Prisma Postgres service token -
project_id Yes Prisma project ID -
database_name No Custom database name Auto-generated
region No Database region us-east-1

Outputs

Parameter Description
database_id ID of the created database
database_name Name of the database
database_url Complete DATABASE_URL connection string

Use Cases

  • Databases for CI pipelines
  • PR-based database environments
  • Integration testing with isolated data
  • Database lifecycle management in GitHub workflows

Companion Action: Delete Prisma Postgres Database Action