@pulumi/pulumiservice 0.0.4 → 0.0.7-alpha.1652655785

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 CHANGED
@@ -1,5 +1,106 @@
1
1
  # Pulumi Service Provider
2
2
 
3
- Very much under construction.
3
+ [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com)
4
+ [![NPM version](https://badge.fury.io/js/%40pulumi%2Fpulumiservice.svg)](https://www.npmjs.com/package/@pulumi/pulumiservice)
5
+ [![Python version](https://badge.fury.io/py/pulumi-pulumiservice.svg)](https://pypi.org/project/pulumi-pulumiservice)
6
+ [![NuGet version](https://badge.fury.io/nu/pulumi.pulumiservice.svg)](https://badge.fury.io/nu/pulumi.pulumiservice)
7
+ [![PkgGoDev](https://pkg.go.dev/badge/github.com/pulumi/pulumi-pulumiservice/sdk/go/pulumiservice)](https://pkg.go.dev/github.com/pulumi/pulumi-pulumiservice/sdk/go)
8
+ [![License](https://img.shields.io/npm/l/%40pulumi%2Fpulumiservice.svg)](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
+ For reference documentation, visit the [Pulumi Service API Documentation](https://www.pulumi.com/registry/packages/pulumiservice/api-docs/) on the [Pulumi Registry](https://www.pulumi.com/registry/packages/pulumiservice/)
23
+
24
+
25
+ ## Installing
26
+
27
+ This package is available in many languages in the standard packaging formats.
28
+
29
+ ### Node.js (Java/TypeScript)
30
+
31
+ To use from JavaScript or TypeScript in Node.js, install using either `npm`:
32
+
33
+ $ npm install @pulumi/pulumiservice
34
+
35
+ or `yarn`:
36
+
37
+ $ yarn add @pulumi/pulumiservice
38
+
39
+ ### Python
40
+
41
+ To use from Python, install using `pip`:
42
+
43
+ $ pip install pulumi_pulumiservice
44
+
45
+ ### Go
46
+
47
+ To use from Go, use `go get` to grab the latest version of the library
48
+
49
+ $ go get github.com/pulumi/pulumi-pulumiservice/sdk/go
50
+
51
+ ### .NET
52
+
53
+ To use from .NET, install using `dotnet add package`:
54
+
55
+ $ dotnet add package Pulumi.PulumiService
56
+
57
+ ## Setup
58
+
59
+ 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).
60
+
61
+ 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.
62
+
63
+ ### Set environment variables
64
+
65
+ 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.
66
+
67
+ ```bash
68
+ $ export PULUMI_ACCESS_TOKEN=<PULUMI_ACCESS_TOKEN>
69
+
70
+ $ export PULUMI_BACKEND_URL=<PULUMI_BACKEND_URL> # For self hosted customers. defaults to https://api.pulumi.com
71
+ ```
72
+
73
+ ### Configuration Options
74
+
75
+ 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).
76
+
77
+ | Option | Required/Optional | Description |
78
+ |-----|------|----|
79
+ | `accessToken`| Required | [Pulumi Service Access Tokens](https://www.pulumi.com/docs/intro/pulumi-service/accounts/#access-tokens) |
80
+ | `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/).
81
+
82
+
83
+ ## Examples
84
+ ```typescript
85
+ import * as aws from "@pulumi/awsx"
86
+ import * as pulumi from "@pulumi/pulumi";
87
+ import * as service from "@pulumi/pulumiservice";
88
+
89
+ const team = new service.Team("team", {
90
+ name: "pulumi-up-team",
91
+ displayName: "PulumiUP Team",
92
+ description: "This was created with Pulumi",
93
+ organizationName: "pulumi-up",
94
+ teamType: "pulumi",
95
+ members: [
96
+ "piers",
97
+ "myles",
98
+ "meagan"
99
+ ],
100
+ });
101
+
102
+ export const members = team.members;
103
+ ```
104
+
105
+ Check out the [examples/](examples/) directory for more examples.
5
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/pulumiservice",
3
- "version": "v0.0.4",
3
+ "version": "v0.0.7-alpha.1652655785+bb4cfabf",
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.4"
14
+ "install": "node scripts/install-pulumi-plugin.js resource pulumiservice v0.0.7-alpha.1652655785+bb4cfabf"
15
15
  },
16
16
  "dependencies": {
17
17
  "@pulumi/pulumi": "^3.0.0"
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@pulumi/pulumiservice",
3
+ "version": "v0.0.7-alpha.1652655785+bb4cfabf",
4
+ "keywords": [
5
+ "pulumi",
6
+ "kind/native",
7
+ "category/infrastructure"
8
+ ],
9
+ "homepage": "https://pulumi.com",
10
+ "repository": "https://github.com/pulumi/pulumi-pulumiservice",
11
+ "license": "Apache-2.0",
12
+ "scripts": {
13
+ "build": "tsc",
14
+ "install": "node scripts/install-pulumi-plugin.js resource pulumiservice v0.0.7-alpha.1652655785+bb4cfabf"
15
+ },
16
+ "dependencies": {
17
+ "@pulumi/pulumi": "^3.0.0"
18
+ },
19
+ "devDependencies": {
20
+ "typescript": "^4.3.5"
21
+ },
22
+ "pulumi": {
23
+ "resource": true
24
+ }
25
+ }
@@ -2,11 +2,6 @@
2
2
  var childProcess = require("child_process");
3
3
 
4
4
  var args = process.argv.slice(2);
5
-
6
- if (args.indexOf("${VERSION}") !== -1) {
7
- process.exit(0);
8
- }
9
-
10
5
  var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
11
6
  stdio: ["ignore", "inherit", "inherit"]
12
7
  });