You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@pulumi/postgresql

Package Overview
Dependencies
Maintainers
2
Versions
481
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pulumi/postgresql

A Pulumi package for creating and managing postgresql cloud resources.

3.16.0-alpha.1747982048
Source
npmnpm
Version published
Weekly downloads
227K
46.96%
Maintainers
2
Weekly downloads
 
Created

What is @pulumi/postgresql?

@pulumi/postgresql is an npm package that allows you to manage PostgreSQL resources using Pulumi, a modern infrastructure as code platform. With this package, you can create, configure, and manage PostgreSQL databases, roles, extensions, and other related resources programmatically.

What are @pulumi/postgresql's main functionalities?

Create a PostgreSQL Database

This feature allows you to create a new PostgreSQL database. The code sample demonstrates how to create a database named 'mydatabase' using the @pulumi/postgresql package.

const pulumi = require('@pulumi/pulumi');
const postgresql = require('@pulumi/postgresql');

const db = new postgresql.Database('mydatabase', {
  name: 'mydatabase',
});

exports.dbName = db.name;

Create a PostgreSQL Role

This feature allows you to create a new PostgreSQL role. The code sample demonstrates how to create a role named 'myrole' with a specified password using the @pulumi/postgresql package.

const pulumi = require('@pulumi/pulumi');
const postgresql = require('@pulumi/postgresql');

const role = new postgresql.Role('myrole', {
  name: 'myrole',
  password: 'securepassword',
});

exports.roleName = role.name;

Create a PostgreSQL Extension

This feature allows you to create a new PostgreSQL extension. The code sample demonstrates how to create the 'uuid-ossp' extension in the 'mydatabase' database using the @pulumi/postgresql package.

const pulumi = require('@pulumi/pulumi');
const postgresql = require('@pulumi/postgresql');

const extension = new postgresql.Extension('myextension', {
  name: 'uuid-ossp',
  database: 'mydatabase',
});

exports.extensionName = extension.name;

Other packages similar to @pulumi/postgresql

Keywords

pulumi

FAQs

Package last updated on 23 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts