Skip to main content

A native Pulumi package for creating and managing Pulumi Service constructs

Project description

Pulumi Service Provider

Slack NPM version Python version NuGet version PkgGoDev License

A Pulumi Resource Provider for The Pulumi Service.

The Pulumi Service Provider is built on top of the Pulumi Service REST API which is another feature available to our customers to programmatically configuring the Pulumi Service. The Pulumi Service REST API includes functionality to interact with and manipulate any kind of metadata managed by Pulumi. That includes Projects and Stacks, Previews and Updates, Organizations and Audit Logs. We have already seen Cloud Engineering teams using the Pulumi REST API to build all sorts of custom functionality. These new capabilities are especially powerful when used in combination with the Automation API.

Supported Resources

For reference documentation, visit the Pulumi Service API Documentation on the Pulumi Registry

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/pulumiservice

or yarn:

$ yarn add @pulumi/pulumiservice

Python

To use from Python, install using pip:

$ pip install pulumi_pulumiservice

Go

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

$ go get github.com/pulumi/pulumi-pulumiservice/sdk/go

.NET

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

$ dotnet add package Pulumi.PulumiService

Setup

To provision resources with the Pulumi Service provider, you need to have Pulumi Service credentials. Pulumi Service maintains documentation on how to create access tokens here.

While you can use this provider to provision access tokens, you'll still need to have an access token available to generate an access token with the provider.

Set environment variables

Once you have an access token, its easy to set the environment variables. The Pulumi Service Provider uses the same environment variables as Pulumi does.

$ export PULUMI_ACCESS_TOKEN=<PULUMI_ACCESS_TOKEN>

$ export PULUMI_BACKEND_URL=<PULUMI_BACKEND_URL> # For self hosted customers. defaults to https://api.pulumi.com

Configuration Options

Use pulumi config set pulumiservice:<option> or pass options to the constructor of new pulumiservice.Provider.

Option Required/Optional Description
accessToken Required Pulumi Service Access Tokens
apiUrl Optional Allows overriding default Pulumi Service API URL for self hosted customers.

Examples

import * as aws from "@pulumi/awsx"
import * as pulumi from "@pulumi/pulumi";
import * as service from "@pulumi/pulumiservice";

const team = new service.Team("team", {
    name: "pulumi-up-team",
    displayName: "PulumiUP Team",
    description: "This was created with Pulumi",
    organizationName: "pulumi-up",
    teamType: "pulumi",
    members: [
        "piers",
        "myles",
        "meagan"
    ],
});

export const members = team.members;

Check out the examples/ directory for more examples.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

pulumi_pulumiservice-0.1.4a1658777680.tar.gz (12.1 kB view details)

Uploaded Source

File details

Details for the file pulumi_pulumiservice-0.1.4a1658777680.tar.gz.

File metadata

File hashes

Hashes for pulumi_pulumiservice-0.1.4a1658777680.tar.gz
Algorithm Hash digest
SHA256 f81b7ed0ef224e8d75320c7efec4f0b877541b31ebbbdf225e0898d186bd571c
MD5 f244d31500ccbd0d5b92cdc0fa28a7f5
BLAKE2b-256 a4967e856304ec6e27b4ebac273bb390356a3b5e9642fdc5afa1d5a2c414786d

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