Skip to main content

No project description provided

Project description

Pulumi Auto Deploy

Slack NPM version Python version NuGet version PkgGoDev License

A Pulumi Component for configuring automated updates of dependent stacks using Pulumi Deployments. It lets you simply express dependencies between stacks, and takes care of creating and updating the necessary Deployment Webhooks under the hood. Each stack that you configure must have Deployment Settings.

import * as autodeploy from "@pulumi/auto-deploy";
import * as pulumi from "@pulumi/pulumi";

/**
 *
 * The following example configures automatic deployment of stacks with the following dependency graph:
    a
    ├── b
    │   ├── d
    │   ├── e
    │   └── f
    └── c
 * Whenever a node in the graph is updated, 
 * all downstream nodes will be automatically updated via a webhook triggering Pulumi Deployments.
 */


const organization = pulumi.getOrganization();
const project = "dependency-example"

export const f = new autodeploy.AutoDeployer("auto-deployer-f", {
    organization,
    project,
    stack: "f",
    downstreamRefs: [],
});

export const e = new autodeploy.AutoDeployer("auto-deployer-e", {
    organization,
    project,
    stack: "e",
    downstreamRefs: [],
});

export const d = new autodeploy.AutoDeployer("auto-deployer-d", {
    organization,
    project,
    stack: "d",
    downstreamRefs: [],
});

export const c = new autodeploy.AutoDeployer("auto-deployer-c", {
    organization,
    project,
    stack: "c",
    downstreamRefs: [],
});

export const b = new autodeploy.AutoDeployer("auto-deployer-b", {
    organization,
    project,
    stack: "b",
    downstreamRefs: [d.ref, e.ref, f.ref],

});

export const a = new autodeploy.AutoDeployer("auto-deployer-a", {
    organization,
    project,
    stack: "a",
    downstreamRefs: [b.ref, c.ref],
});

Installing

This package is available in many languages in the standard packaging formats.

Node.js (Java/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either npm:

$ npm install @pulumi/auto-deploy

or yarn:

$ yarn add @pulumi/auto-deploy

Python

To use from Python, install using pip:

$ pip install pulumi-auto-deploy

Go

To use from Go, use go get to grab the latest version of the library

$ go get github.com/pulumi/pulumi-auto-deploy/sdk/go

.NET

To use from .NET, install using dotnet add package:

$ dotnet add package Pulumi.AutoDeploy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pulumi_auto_deploy-0.0.3a1687127619.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file pulumi_auto_deploy-0.0.3a1687127619.tar.gz.

File metadata

File hashes

Hashes for pulumi_auto_deploy-0.0.3a1687127619.tar.gz
Algorithm Hash digest
SHA256 03d5c320c842d87c25840d6885dc26ead54c4636da863d68425ee80fecd9260f
MD5 70d781c156b25d14d2d5044fc674f8bf
BLAKE2b-256 980dea5b345a16e3f0438b64508a974f54abfcbc2cfeec5b634ead6211106984

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page