New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pulumi/postgresql

Package Overview
Dependencies
Maintainers
2
Versions
432
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.15.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
362K
increased by17.46%
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

FAQs

Package last updated on 17 Jan 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc