Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pulumi/pulumi

Package Overview
Dependencies
Maintainers
2
Versions
4421
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pulumi/pulumi

Pulumi's Node.js SDK

  • 3.135.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
737K
decreased by-4.38%
Maintainers
2
Weekly downloads
 
Created

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

FAQs

Package last updated on 01 Oct 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc