PostgreSQL

The PostgreSQL provider for Pulumi can be used to provision any of the resources available for PostgreSQL. The PostgreSQL provider must be configured with credentials to deploy and update resources in PostgreSQL.
See the full API documentation for complete details of the available PostgreSQL provider APIs.
Setup
The PostgreSQL provider supports several options for providing access to PostgreSQL credentials. See the PostgreSQL setup page for details.
Example
typescript
import * as postgresql from "@pulumi/postgresql";
const myDb = new postgresql.Database("my-database");Libraries
The following packages are available in packager managers:
- JavaScript/TypeScript:
@pulumi/postgresql - Python:
pulumi-postgresql - Go:
github.com/pulumi/pulumi-postgresql/sdk/v3/go/postgresql - .NET:
Pulumi.Postgresql
The PostgreSQL provider is open source and available in the pulumi/pulumi-postgresql repo.