This release is a pre-release and may not be stable for production use.
Pulumi Service Provider
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.
Metadata
Release files for pulumi-pulumiservice 0.1.3a1653594400
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pulumi_pulumiservice-0.1.3a1653594400.tar.gz | 12.1 kB | Without provenance | Details for pulumi_pulumiservice-0.1.3a1653594400.tar.gz |
Release files / pulumi_pulumiservice-0.1.3a1653594400.tar.gz
| Download URL | pulumi_pulumiservice-0.1.3a1653594400.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac1fd97899b97fe9d2b3beb613e0a03671834734dc3de96d40aa67ab4438eeee
|
|
BLAKE2b-256 checksum How to use checksums |
3c00240a9599e6f98ff2e0b323a329cc979de69a9466205763e524e1fd18c0f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.7.13
|
Security for pulumi-pulumiservice 0.1.3a1653594400
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.