0.20.0 • Published 2 days ago

@pulumi/pulumiservice v0.20.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 days ago

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.

OptionRequired/OptionalDescription
accessTokenRequiredPulumi Service Access Tokens
apiUrlOptionalAllows 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.

0.20.0

14 days ago

0.19.0

22 days ago

0.18.1

29 days ago

0.17.0

5 months ago

0.11.0

9 months ago

0.13.0

8 months ago

0.15.0

6 months ago

0.10.1

9 months ago

0.14.0

7 months ago

0.16.0

6 months ago

0.10.0

10 months ago

0.9.0

11 months ago

0.7.2

12 months ago

0.7.1

12 months ago

0.7.0

12 months ago

0.8.0

11 months ago

0.3.0

1 year ago

0.2.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.0

2 years ago

0.1.2

2 years ago

0.0.5

2 years ago

0.1.3

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago