@pierskarsenbarg/sdm 1.5.0 → 1.7.0

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.
Files changed (49) hide show
  1. package/account.d.ts +1 -1
  2. package/account.js +1 -1
  3. package/accountAttachment.d.ts +1 -1
  4. package/accountAttachment.js +1 -1
  5. package/getWorkflow.d.ts +131 -0
  6. package/getWorkflow.js +57 -0
  7. package/getWorkflow.js.map +1 -0
  8. package/getWorkflowApprover.d.ts +91 -0
  9. package/getWorkflowApprover.js +50 -0
  10. package/getWorkflowApprover.js.map +1 -0
  11. package/getWorkflowRole.d.ts +93 -0
  12. package/getWorkflowRole.js +52 -0
  13. package/getWorkflowRole.js.map +1 -0
  14. package/index.d.ts +18 -0
  15. package/index.js +25 -1
  16. package/index.js.map +1 -1
  17. package/node.d.ts +1 -1
  18. package/node.js +1 -1
  19. package/package.json +2 -3
  20. package/package.json.bak +1 -2
  21. package/peeringGroup.d.ts +1 -1
  22. package/peeringGroup.js +1 -1
  23. package/peeringGroupNode.d.ts +1 -1
  24. package/peeringGroupNode.js +1 -1
  25. package/peeringGroupPeer.d.ts +1 -1
  26. package/peeringGroupPeer.js +1 -1
  27. package/peeringGroupResource.d.ts +1 -1
  28. package/peeringGroupResource.js +1 -1
  29. package/remoteIdentity.d.ts +1 -1
  30. package/remoteIdentity.js +1 -1
  31. package/resource.d.ts +22 -40
  32. package/resource.js +5 -1
  33. package/resource.js.map +1 -1
  34. package/role.d.ts +1 -1
  35. package/role.js +1 -1
  36. package/secretStore.d.ts +1 -1
  37. package/secretStore.js +1 -1
  38. package/types/input.d.ts +124 -0
  39. package/types/output.d.ts +316 -0
  40. package/workflow.d.ts +148 -0
  41. package/workflow.js +99 -0
  42. package/workflow.js.map +1 -0
  43. package/workflowApprover.d.ts +83 -0
  44. package/workflowApprover.js +80 -0
  45. package/workflowApprover.js.map +1 -0
  46. package/workflowRole.d.ts +84 -0
  47. package/workflowRole.js +81 -0
  48. package/workflowRole.js.map +1 -0
  49. package/scripts/install-pulumi-plugin.js +0 -26
@@ -0,0 +1,83 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * WorkflowApprover is an account with the ability to approve requests bound to a workflow.
4
+ * ## Example Usage
5
+ *
6
+ * ```typescript
7
+ * import * as pulumi from "@pulumi/pulumi";
8
+ * import * as sdm from "@pierskarsenbarg/sdm";
9
+ *
10
+ * const workflowApproverExample = new sdm.WorkflowApprover("workflowApproverExample", {
11
+ * approverId: "a-234605",
12
+ * workflowId: "aw-6799234",
13
+ * });
14
+ * ```
15
+ * This resource can be imported using the import command.
16
+ *
17
+ * ## Import
18
+ *
19
+ * A WorkflowApprover can be imported using the id, e.g.,
20
+ *
21
+ * ```sh
22
+ * $ pulumi import sdm:index/workflowApprover:WorkflowApprover example nt-12345678
23
+ * ```
24
+ */
25
+ export declare class WorkflowApprover extends pulumi.CustomResource {
26
+ /**
27
+ * Get an existing WorkflowApprover resource's state with the given name, ID, and optional extra
28
+ * properties used to qualify the lookup.
29
+ *
30
+ * @param name The _unique_ name of the resulting resource.
31
+ * @param id The _unique_ provider ID of the resource to lookup.
32
+ * @param state Any extra arguments used during the lookup.
33
+ * @param opts Optional settings to control the behavior of the CustomResource.
34
+ */
35
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkflowApproverState, opts?: pulumi.CustomResourceOptions): WorkflowApprover;
36
+ /**
37
+ * Returns true if the given object is an instance of WorkflowApprover. This is designed to work even
38
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
39
+ */
40
+ static isInstance(obj: any): obj is WorkflowApprover;
41
+ /**
42
+ * The approver id.
43
+ */
44
+ readonly approverId: pulumi.Output<string>;
45
+ /**
46
+ * The workflow id.
47
+ */
48
+ readonly workflowId: pulumi.Output<string>;
49
+ /**
50
+ * Create a WorkflowApprover resource with the given unique name, arguments, and options.
51
+ *
52
+ * @param name The _unique_ name of the resource.
53
+ * @param args The arguments to use to populate this resource's properties.
54
+ * @param opts A bag of options that control this resource's behavior.
55
+ */
56
+ constructor(name: string, args: WorkflowApproverArgs, opts?: pulumi.CustomResourceOptions);
57
+ }
58
+ /**
59
+ * Input properties used for looking up and filtering WorkflowApprover resources.
60
+ */
61
+ export interface WorkflowApproverState {
62
+ /**
63
+ * The approver id.
64
+ */
65
+ approverId?: pulumi.Input<string>;
66
+ /**
67
+ * The workflow id.
68
+ */
69
+ workflowId?: pulumi.Input<string>;
70
+ }
71
+ /**
72
+ * The set of arguments for constructing a WorkflowApprover resource.
73
+ */
74
+ export interface WorkflowApproverArgs {
75
+ /**
76
+ * The approver id.
77
+ */
78
+ approverId: pulumi.Input<string>;
79
+ /**
80
+ * The workflow id.
81
+ */
82
+ workflowId: pulumi.Input<string>;
83
+ }
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.WorkflowApprover = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * WorkflowApprover is an account with the ability to approve requests bound to a workflow.
10
+ * ## Example Usage
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as sdm from "@pierskarsenbarg/sdm";
15
+ *
16
+ * const workflowApproverExample = new sdm.WorkflowApprover("workflowApproverExample", {
17
+ * approverId: "a-234605",
18
+ * workflowId: "aw-6799234",
19
+ * });
20
+ * ```
21
+ * This resource can be imported using the import command.
22
+ *
23
+ * ## Import
24
+ *
25
+ * A WorkflowApprover can be imported using the id, e.g.,
26
+ *
27
+ * ```sh
28
+ * $ pulumi import sdm:index/workflowApprover:WorkflowApprover example nt-12345678
29
+ * ```
30
+ */
31
+ class WorkflowApprover extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing WorkflowApprover resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new WorkflowApprover(name, state, Object.assign(Object.assign({}, opts), { id: id }));
43
+ }
44
+ /**
45
+ * Returns true if the given object is an instance of WorkflowApprover. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj) {
49
+ if (obj === undefined || obj === null) {
50
+ return false;
51
+ }
52
+ return obj['__pulumiType'] === WorkflowApprover.__pulumiType;
53
+ }
54
+ constructor(name, argsOrState, opts) {
55
+ let resourceInputs = {};
56
+ opts = opts || {};
57
+ if (opts.id) {
58
+ const state = argsOrState;
59
+ resourceInputs["approverId"] = state ? state.approverId : undefined;
60
+ resourceInputs["workflowId"] = state ? state.workflowId : undefined;
61
+ }
62
+ else {
63
+ const args = argsOrState;
64
+ if ((!args || args.approverId === undefined) && !opts.urn) {
65
+ throw new Error("Missing required property 'approverId'");
66
+ }
67
+ if ((!args || args.workflowId === undefined) && !opts.urn) {
68
+ throw new Error("Missing required property 'workflowId'");
69
+ }
70
+ resourceInputs["approverId"] = args ? args.approverId : undefined;
71
+ resourceInputs["workflowId"] = args ? args.workflowId : undefined;
72
+ }
73
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
74
+ super(WorkflowApprover.__pulumiType, name, resourceInputs, opts);
75
+ }
76
+ }
77
+ exports.WorkflowApprover = WorkflowApprover;
78
+ /** @internal */
79
+ WorkflowApprover.__pulumiType = 'sdm:index/workflowApprover:WorkflowApprover';
80
+ //# sourceMappingURL=workflowApprover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowApprover.js","sourceRoot":"","sources":["../workflowApprover.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAmBD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;aAAM;YACH,MAAM,IAAI,GAAG,WAA+C,CAAC;YAC7D,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAjEL,4CAkEC;AApDG,gBAAgB;AACO,6BAAY,GAAG,6CAA6C,CAAC"}
@@ -0,0 +1,84 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of
4
+ * to request access to a resource via the workflow.
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as sdm from "@pierskarsenbarg/sdm";
10
+ *
11
+ * const workflowRoleExample = new sdm.WorkflowRole("workflowRoleExample", {
12
+ * roleId: "r-243561",
13
+ * workflowId: "aw-343865",
14
+ * });
15
+ * ```
16
+ * This resource can be imported using the import command.
17
+ *
18
+ * ## Import
19
+ *
20
+ * A WorkflowRole can be imported using the id, e.g.,
21
+ *
22
+ * ```sh
23
+ * $ pulumi import sdm:index/workflowRole:WorkflowRole example wr-12345678
24
+ * ```
25
+ */
26
+ export declare class WorkflowRole extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing WorkflowRole resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkflowRoleState, opts?: pulumi.CustomResourceOptions): WorkflowRole;
37
+ /**
38
+ * Returns true if the given object is an instance of WorkflowRole. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is WorkflowRole;
42
+ /**
43
+ * The role id.
44
+ */
45
+ readonly roleId: pulumi.Output<string>;
46
+ /**
47
+ * The workflow id.
48
+ */
49
+ readonly workflowId: pulumi.Output<string>;
50
+ /**
51
+ * Create a WorkflowRole resource with the given unique name, arguments, and options.
52
+ *
53
+ * @param name The _unique_ name of the resource.
54
+ * @param args The arguments to use to populate this resource's properties.
55
+ * @param opts A bag of options that control this resource's behavior.
56
+ */
57
+ constructor(name: string, args: WorkflowRoleArgs, opts?: pulumi.CustomResourceOptions);
58
+ }
59
+ /**
60
+ * Input properties used for looking up and filtering WorkflowRole resources.
61
+ */
62
+ export interface WorkflowRoleState {
63
+ /**
64
+ * The role id.
65
+ */
66
+ roleId?: pulumi.Input<string>;
67
+ /**
68
+ * The workflow id.
69
+ */
70
+ workflowId?: pulumi.Input<string>;
71
+ }
72
+ /**
73
+ * The set of arguments for constructing a WorkflowRole resource.
74
+ */
75
+ export interface WorkflowRoleArgs {
76
+ /**
77
+ * The role id.
78
+ */
79
+ roleId: pulumi.Input<string>;
80
+ /**
81
+ * The workflow id.
82
+ */
83
+ workflowId: pulumi.Input<string>;
84
+ }
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.WorkflowRole = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of
10
+ * to request access to a resource via the workflow.
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as sdm from "@pierskarsenbarg/sdm";
16
+ *
17
+ * const workflowRoleExample = new sdm.WorkflowRole("workflowRoleExample", {
18
+ * roleId: "r-243561",
19
+ * workflowId: "aw-343865",
20
+ * });
21
+ * ```
22
+ * This resource can be imported using the import command.
23
+ *
24
+ * ## Import
25
+ *
26
+ * A WorkflowRole can be imported using the id, e.g.,
27
+ *
28
+ * ```sh
29
+ * $ pulumi import sdm:index/workflowRole:WorkflowRole example wr-12345678
30
+ * ```
31
+ */
32
+ class WorkflowRole extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing WorkflowRole resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name, id, state, opts) {
43
+ return new WorkflowRole(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
+ }
45
+ /**
46
+ * Returns true if the given object is an instance of WorkflowRole. This is designed to work even
47
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
48
+ */
49
+ static isInstance(obj) {
50
+ if (obj === undefined || obj === null) {
51
+ return false;
52
+ }
53
+ return obj['__pulumiType'] === WorkflowRole.__pulumiType;
54
+ }
55
+ constructor(name, argsOrState, opts) {
56
+ let resourceInputs = {};
57
+ opts = opts || {};
58
+ if (opts.id) {
59
+ const state = argsOrState;
60
+ resourceInputs["roleId"] = state ? state.roleId : undefined;
61
+ resourceInputs["workflowId"] = state ? state.workflowId : undefined;
62
+ }
63
+ else {
64
+ const args = argsOrState;
65
+ if ((!args || args.roleId === undefined) && !opts.urn) {
66
+ throw new Error("Missing required property 'roleId'");
67
+ }
68
+ if ((!args || args.workflowId === undefined) && !opts.urn) {
69
+ throw new Error("Missing required property 'workflowId'");
70
+ }
71
+ resourceInputs["roleId"] = args ? args.roleId : undefined;
72
+ resourceInputs["workflowId"] = args ? args.workflowId : undefined;
73
+ }
74
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
75
+ super(WorkflowRole.__pulumiType, name, resourceInputs, opts);
76
+ }
77
+ }
78
+ exports.WorkflowRole = WorkflowRole;
79
+ /** @internal */
80
+ WorkflowRole.__pulumiType = 'sdm:index/workflowRole:WorkflowRole';
81
+ //# sourceMappingURL=workflowRole.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowRole.js","sourceRoot":"","sources":["../workflowRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAmBD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACnD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAjEL,oCAkEC;AApDG,gBAAgB;AACO,yBAAY,GAAG,qCAAqC,CAAC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var childProcess = require("child_process");
3
-
4
- var args = process.argv.slice(2);
5
-
6
- if (args.indexOf("${VERSION}") !== -1) {
7
- process.exit(0);
8
- }
9
-
10
- var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "github://api.github.com/pierskarsenbarg/pulumi-sdm"].concat(args), {
11
- stdio: ["ignore", "inherit", "inherit"]
12
- });
13
-
14
- if (res.error && res.error.code === "ENOENT") {
15
- console.error("\nThere was an error installing the resource provider plugin. " +
16
- "It looks like `pulumi` is not installed on your system. " +
17
- "Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
18
- "You may try manually installing the plugin by running " +
19
- "`pulumi plugin install " + args.join(" ") + "`");
20
- } else if (res.error || res.status !== 0) {
21
- console.error("\nThere was an error installing the resource provider plugin. " +
22
- "You may try to manually installing the plugin by running " +
23
- "`pulumi plugin install " + args.join(" ") + "`");
24
- }
25
-
26
- process.exit(0);