@pulumi/pulumiservice 0.0.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,104 @@
|
|
|
1
1
|
# Pulumi Service Provider
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://slack.pulumi.com)
|
|
4
|
+
[](https://www.npmjs.com/package/@pulumi/pulumiservice)
|
|
5
|
+
[](https://pypi.org/project/pulumi-pulumiservice)
|
|
6
|
+
[](https://badge.fury.io/nu/pulumi.pulumiservice)
|
|
7
|
+
[](https://pkg.go.dev/github.com/pulumi/pulumi-pulumiservice/sdk/go)
|
|
8
|
+
[](https://github.com/pulumi/pulumi-pulumiservice/blob/main/LICENSE)
|
|
4
9
|
|
|
10
|
+
A Pulumi Resource Provider for The Pulumi Service.
|
|
11
|
+
|
|
12
|
+
The Pulumi Service Provider is built on top of the [Pulumi Service REST API](https://pulumi.com/docs/reference/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](https://pulumi.com/automation).
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
#### Supported Resources
|
|
16
|
+
|
|
17
|
+
* [Webhooks](https://pulumi.com/docs/intro/pulumi-service/webhooks)
|
|
18
|
+
* [Teams]({{https://pulumi.com/docs/intro/pulumi-service/teams)
|
|
19
|
+
* [StackTags](https://pulumi.com/docs/reference/cli/pulumi_stack_tag)
|
|
20
|
+
* [AccessTokens](https://pulumi.com/docs/intro/pulumi-service/accounts)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## Installing
|
|
24
|
+
|
|
25
|
+
This package is available in many languages in the standard packaging formats.
|
|
26
|
+
|
|
27
|
+
### Node.js (Java/TypeScript)
|
|
28
|
+
|
|
29
|
+
To use from JavaScript or TypeScript in Node.js, install using either `npm`:
|
|
30
|
+
|
|
31
|
+
$ npm install @pulumi/pulumiservice
|
|
32
|
+
|
|
33
|
+
or `yarn`:
|
|
34
|
+
|
|
35
|
+
$ yarn add @pulumi/pulumiservice
|
|
36
|
+
|
|
37
|
+
### Python
|
|
38
|
+
|
|
39
|
+
To use from Python, install using `pip`:
|
|
40
|
+
|
|
41
|
+
$ pip install pulumi_pulumiservice
|
|
42
|
+
|
|
43
|
+
### Go
|
|
44
|
+
|
|
45
|
+
To use from Go, use `go get` to grab the latest version of the library
|
|
46
|
+
|
|
47
|
+
$ go get github.com/pulumi/pulumi-pulumiservice/sdk/go
|
|
48
|
+
|
|
49
|
+
### .NET
|
|
50
|
+
|
|
51
|
+
To use from .NET, install using `dotnet add package`:
|
|
52
|
+
|
|
53
|
+
$ dotnet add package Pulumi.PulumiService
|
|
54
|
+
|
|
55
|
+
## Setup
|
|
56
|
+
|
|
57
|
+
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](https://www.pulumi.com/docs/intro/pulumi-service/accounts/#access-tokens).
|
|
58
|
+
|
|
59
|
+
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.
|
|
60
|
+
|
|
61
|
+
### Set environment variables
|
|
62
|
+
|
|
63
|
+
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.
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
$ export PULUMI_ACCESS_TOKEN=<PULUMI_ACCESS_TOKEN>
|
|
67
|
+
|
|
68
|
+
$ export PULUMI_BACKEND_URL=<PULUMI_BACKEND_URL> # For self hosted customers. defaults to https://api.pulumi.com
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Configuration Options
|
|
72
|
+
|
|
73
|
+
Use `pulumi config set pulumiservice:<option>` or pass options to the [constructor of `new pulumiservice.Provider`](https://pulumi.com/registry/packages/pulumiservice/api-docs/provider).
|
|
74
|
+
|
|
75
|
+
| Option | Required/Optional | Description |
|
|
76
|
+
|-----|------|----|
|
|
77
|
+
| `accessToken`| Required | [Pulumi Service Access Tokens](https://www.pulumi.com/docs/intro/pulumi-service/accounts/#access-tokens) |
|
|
78
|
+
| `apiUrl`| Optional | Allows overriding default [Pulumi Service API URL](https://www.pulumi.com/docs/reference/service-rest-api) for [self hosted customers](https://www.pulumi.com/docs/guides/self-hosted/).
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## Examples
|
|
82
|
+
```typescript
|
|
83
|
+
import * as aws from "@pulumi/awsx"
|
|
84
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
import * as service from "@pulumi/pulumiservice";
|
|
86
|
+
|
|
87
|
+
const team = new service.Team("team", {
|
|
88
|
+
name: "pulumi-up-team",
|
|
89
|
+
displayName: "PulumiUP Team",
|
|
90
|
+
description: "This was created with Pulumi",
|
|
91
|
+
organizationName: "pulumi-up",
|
|
92
|
+
teamType: "pulumi",
|
|
93
|
+
members: [
|
|
94
|
+
"piers",
|
|
95
|
+
"myles",
|
|
96
|
+
"meagan"
|
|
97
|
+
],
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
export const members = team.members;
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Check out the [examples/](examples/) directory for more examples.
|
|
5
104
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/pulumiservice",
|
|
3
|
-
"version": "v0.0.
|
|
3
|
+
"version": "v0.0.6",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"kind/native",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource pulumiservice v0.0.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource pulumiservice v0.0.6"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|