Socket
Socket
Sign inDemoInstall

@pulumi/pulumi

Package Overview
Dependencies
34
Maintainers
0
Versions
4240
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pulumi/pulumi


Version published
Weekly downloads
615K
decreased by-0.61%
Maintainers
0
Created
Weekly downloads
 

Package description

What is @pulumi/pulumi?

@pulumi/pulumi is an infrastructure as code (IaC) tool that allows developers to define, deploy, and manage cloud infrastructure using familiar programming languages like JavaScript, TypeScript, Python, Go, and C#. It integrates with various cloud providers and services, enabling users to create, update, and manage cloud resources programmatically.

What are @pulumi/pulumi's main functionalities?

Defining Cloud Infrastructure

This feature allows you to define cloud infrastructure using code. In this example, an S3 bucket is created using the AWS provider.

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

const bucket = new aws.s3.Bucket('my-bucket');

exports.bucketName = bucket.id;

Managing Infrastructure State

Pulumi manages the state of your infrastructure, allowing you to respond to changes. This example sets up an event handler for when a new object is created in the S3 bucket.

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

const bucket = new aws.s3.Bucket('my-bucket');

bucket.onObjectCreated('onNewObject', async (event) => {
  console.log('New object created:', event);
});

Multi-Cloud Deployments

Pulumi supports multi-cloud deployments, allowing you to manage resources across different cloud providers. This example shows how to create an S3 bucket in AWS and a storage account in Azure.

const pulumi = require('@pulumi/pulumi');
const aws = require('@pulumi/aws');
const azure = require('@pulumi/azure');

const awsBucket = new aws.s3.Bucket('aws-bucket');
const azureStorageAccount = new azure.storage.Account('azure-storage', {
  resourceGroupName: 'my-resource-group',
  accountTier: 'Standard',
  accountReplicationType: 'LRS'
});

Other packages similar to @pulumi/pulumi

Changelog

Source

3.122.0 (2024-07-01)

Features

  • [cli] Set the --continue-on-error flag with PULUMI_CONTINUE_ON_ERROR environment variable #16442

  • [sdk/nodejs] Parallelize Construct and Call calls in the Node.js SDK #16428

  • [sdk/python] Support --exclude-protected for destroy in the Python automation SDK #16457

Bug Fixes

  • [auto] Protect access to transport.UnsupportedCapabilities inside repo.FetchContext #16517

  • [cli] Disable default Cobra completions in the CLI #16540

  • [engine] Fix an issue with asset archives not working with paths outside the working directory. #16455

  • [engine] Don't re-delete resources that are marked as pendingReplacement #16510

  • [cli/display] Print a fully qualified stack name on pulumi stack --show-name --fully-qualify-stack-names #16453

  • [cli/display] Display [retain] in all cases of delete retention #16506

  • [sdkgen/dotnet] Bump the default version range for the referenced Pulumi package to a version that supports Config.GetDouble #16483

  • [cli/new] Add not-found markers to missing executables for packagemanagers #16488

  • [sdk/go] Fix concurrent map write when registering transform callbacks #16444

  • [sdk/nodejs] Fix race condition when registering stack transforms #16443

  • [sdk/nodejs] Fix Construct and Call calls in the Node.js SDK sharing state #16487

  • [sdk/nodejs] Fix non-blocking stdout/err with nodejs #16504

  • [sdk/{nodejs,python}] Display an actionable error message when dependency installation fails #16489

  • [sdk/python] Wait for pending tasks before shutting down python programs. #16505

  • [sdk/python] Provide installation instructions for the python typechecker #16539

Miscellaneous

  • [sdk/nodejs] Migrate from Rome to Biome #16456

Readme

Source

Pulumi Node.js SDK

The Pulumi Node.js SDK lets you write cloud programs in JavaScript.

Installation

Using npm:

$ npm install --save @pulumi/pulumi

Using yarn:

$ yarn add @pulumi/pulumi

This SDK is meant for use with the Pulumi CLI. Visit Pulumi's Download & Install to install the CLI.

Building and Testing

For anybody who wants to build from source, here is how you do it.

Prerequisites

This SDK uses Node.js and we support any of the Current, Active and Maintenance LTS versions. We support both NPM and Yarn for package management.

At the moment, we only support building on macOS and Linux, where standard GNU tools like make are available.

Make Targets

To build the SDK, simply run make from the root directory (where this README lives, at sdk/nodejs/ from the repo's root). This will build the code, run tests, and install the package and its supporting artifacts.

At the moment, for local development, we install everything into $HOME/.dev-pulumi. You will want this on your $PATH.

The tests will verify that everything works, but feel free to try running pulumi preview and/or pulumi up from the examples/minimal/ directory. Remember to run tsc first, since pulumi expects JavaScript, not TypeScript.

FAQs

Last updated on 02 Jul 2024

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc