@pulumi/command 0.0.1-alpha.100
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/LICENSE +202 -0
- package/README.md +400 -0
- package/index.d.ts +7 -0
- package/index.js +26 -0
- package/index.js.map +1 -0
- package/local/command.d.ts +404 -0
- package/local/command.js +164 -0
- package/local/command.js.map +1 -0
- package/local/index.d.ts +7 -0
- package/local/index.js +41 -0
- package/local/index.js.map +1 -0
- package/local/run.d.ts +391 -0
- package/local/run.js +46 -0
- package/local/run.js.map +1 -0
- package/package.json +29 -0
- package/package.json.dev +28 -0
- package/provider.d.ts +21 -0
- package/provider.js +38 -0
- package/provider.js.map +1 -0
- package/remote/command.d.ts +206 -0
- package/remote/command.js +141 -0
- package/remote/command.js.map +1 -0
- package/remote/copyFile.d.ts +70 -0
- package/remote/copyFile.js +79 -0
- package/remote/copyFile.js.map +1 -0
- package/remote/copyToRemote.d.ts +125 -0
- package/remote/copyToRemote.js +134 -0
- package/remote/copyToRemote.js.map +1 -0
- package/remote/index.d.ts +10 -0
- package/remote/index.js +46 -0
- package/remote/index.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/types/enums/index.d.ts +3 -0
- package/types/enums/index.js +11 -0
- package/types/enums/index.js.map +1 -0
- package/types/enums/local/index.d.ts +19 -0
- package/types/enums/local/index.js +24 -0
- package/types/enums/local/index.js.map +1 -0
- package/types/enums/remote/index.d.ts +19 -0
- package/types/enums/remote/index.js +24 -0
- package/types/enums/remote/index.js.map +1 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +13 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +98 -0
- package/types/input.js +27 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +97 -0
- package/types/output.js +26 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.CopyToRemote = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const inputs = require("../types/input");
|
|
8
|
+
const utilities = require("../utilities");
|
|
9
|
+
/**
|
|
10
|
+
* Copy an Asset or Archive to a remote host.
|
|
11
|
+
*
|
|
12
|
+
* ## Example usage
|
|
13
|
+
*
|
|
14
|
+
* This example copies a local directory to a remote host via SSH. For brevity, the remote server is assumed to exist, but it could also be provisioned in the same Pulumi program.
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import { remote, types } from "@pulumi/command";
|
|
19
|
+
* import * as fs from "fs";
|
|
20
|
+
* import * as os from "os";
|
|
21
|
+
* import * as path from "path";
|
|
22
|
+
*
|
|
23
|
+
* export = async () => {
|
|
24
|
+
* const config = new pulumi.Config();
|
|
25
|
+
*
|
|
26
|
+
* // Get the private key to connect to the server. If a key is
|
|
27
|
+
* // provided, use it, otherwise default to the standard id_rsa SSH key.
|
|
28
|
+
* const privateKeyBase64 = config.get("privateKeyBase64");
|
|
29
|
+
* const privateKey = privateKeyBase64 ?
|
|
30
|
+
* Buffer.from(privateKeyBase64, 'base64').toString('ascii') :
|
|
31
|
+
* fs.readFileSync(path.join(os.homedir(), ".ssh", "id_rsa")).toString("utf8");
|
|
32
|
+
*
|
|
33
|
+
* const serverPublicIp = config.require("serverPublicIp");
|
|
34
|
+
* const userName = config.require("userName");
|
|
35
|
+
*
|
|
36
|
+
* // The configuration of our SSH connection to the instance.
|
|
37
|
+
* const connection: types.input.remote.ConnectionArgs = {
|
|
38
|
+
* host: serverPublicIp,
|
|
39
|
+
* user: userName,
|
|
40
|
+
* privateKey: privateKey,
|
|
41
|
+
* };
|
|
42
|
+
*
|
|
43
|
+
* // Set up source and target of the remote copy.
|
|
44
|
+
* const from = config.require("payload")!;
|
|
45
|
+
* const archive = new pulumi.asset.FileArchive(from);
|
|
46
|
+
* const to = config.require("destDir")!;
|
|
47
|
+
*
|
|
48
|
+
* // Copy the files to the remote.
|
|
49
|
+
* const copy = new remote.CopyToRemote("copy", {
|
|
50
|
+
* connection,
|
|
51
|
+
* source: archive,
|
|
52
|
+
* remotePath: to,
|
|
53
|
+
* });
|
|
54
|
+
*
|
|
55
|
+
* // Verify that the expected files were copied to the remote.
|
|
56
|
+
* // We want to run this after each copy, i.e., when something changed,
|
|
57
|
+
* // so we use the asset to be copied as a trigger.
|
|
58
|
+
* const find = new remote.Command("ls", {
|
|
59
|
+
* connection,
|
|
60
|
+
* create: `find ${to}/${from} | sort`,
|
|
61
|
+
* triggers: [archive],
|
|
62
|
+
* }, { dependsOn: copy });
|
|
63
|
+
*
|
|
64
|
+
* return {
|
|
65
|
+
* remoteContents: find.stdout
|
|
66
|
+
* }
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
class CopyToRemote extends pulumi.CustomResource {
|
|
71
|
+
/**
|
|
72
|
+
* Get an existing CopyToRemote resource's state with the given name, ID, and optional extra
|
|
73
|
+
* properties used to qualify the lookup.
|
|
74
|
+
*
|
|
75
|
+
* @param name The _unique_ name of the resulting resource.
|
|
76
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
77
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
78
|
+
*/
|
|
79
|
+
static get(name, id, opts) {
|
|
80
|
+
return new CopyToRemote(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Returns true if the given object is an instance of CopyToRemote. This is designed to work even
|
|
84
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
85
|
+
*/
|
|
86
|
+
static isInstance(obj) {
|
|
87
|
+
if (obj === undefined || obj === null) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return obj['__pulumiType'] === CopyToRemote.__pulumiType;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Create a CopyToRemote resource with the given unique name, arguments, and options.
|
|
94
|
+
*
|
|
95
|
+
* @param name The _unique_ name of the resource.
|
|
96
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
97
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
98
|
+
*/
|
|
99
|
+
constructor(name, args, opts) {
|
|
100
|
+
let resourceInputs = {};
|
|
101
|
+
opts = opts || {};
|
|
102
|
+
if (!opts.id) {
|
|
103
|
+
if ((!args || args.connection === undefined) && !opts.urn) {
|
|
104
|
+
throw new Error("Missing required property 'connection'");
|
|
105
|
+
}
|
|
106
|
+
if ((!args || args.remotePath === undefined) && !opts.urn) {
|
|
107
|
+
throw new Error("Missing required property 'remotePath'");
|
|
108
|
+
}
|
|
109
|
+
if ((!args || args.source === undefined) && !opts.urn) {
|
|
110
|
+
throw new Error("Missing required property 'source'");
|
|
111
|
+
}
|
|
112
|
+
resourceInputs["connection"] = (args === null || args === void 0 ? void 0 : args.connection) ? pulumi.secret((args.connection ? pulumi.output(args.connection).apply(inputs.remote.connectionArgsProvideDefaults) : undefined)) : undefined;
|
|
113
|
+
resourceInputs["remotePath"] = args ? args.remotePath : undefined;
|
|
114
|
+
resourceInputs["source"] = args ? args.source : undefined;
|
|
115
|
+
resourceInputs["triggers"] = args ? args.triggers : undefined;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
resourceInputs["connection"] = undefined /*out*/;
|
|
119
|
+
resourceInputs["remotePath"] = undefined /*out*/;
|
|
120
|
+
resourceInputs["source"] = undefined /*out*/;
|
|
121
|
+
resourceInputs["triggers"] = undefined /*out*/;
|
|
122
|
+
}
|
|
123
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
124
|
+
const secretOpts = { additionalSecretOutputs: ["connection"] };
|
|
125
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
126
|
+
const replaceOnChanges = { replaceOnChanges: ["triggers[*]"] };
|
|
127
|
+
opts = pulumi.mergeOptions(opts, replaceOnChanges);
|
|
128
|
+
super(CopyToRemote.__pulumiType, name, resourceInputs, opts);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
exports.CopyToRemote = CopyToRemote;
|
|
132
|
+
/** @internal */
|
|
133
|
+
CopyToRemote.__pulumiType = 'command:remote:CopyToRemote';
|
|
134
|
+
//# sourceMappingURL=copyToRemote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copyToRemote.js","sourceRoot":"","sources":["../../remote/copyToRemote.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { CommandArgs } from "./command";
|
|
2
|
+
export type Command = import("./command").Command;
|
|
3
|
+
export declare const Command: typeof import("./command").Command;
|
|
4
|
+
export { CopyFileArgs } from "./copyFile";
|
|
5
|
+
export type CopyFile = import("./copyFile").CopyFile;
|
|
6
|
+
export declare const CopyFile: typeof import("./copyFile").CopyFile;
|
|
7
|
+
export { CopyToRemoteArgs } from "./copyToRemote";
|
|
8
|
+
export type CopyToRemote = import("./copyToRemote").CopyToRemote;
|
|
9
|
+
export declare const CopyToRemote: typeof import("./copyToRemote").CopyToRemote;
|
|
10
|
+
export * from "../types/enums/remote";
|
package/remote/index.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.CopyToRemote = exports.CopyFile = exports.Command = void 0;
|
|
20
|
+
const pulumi = require("@pulumi/pulumi");
|
|
21
|
+
const utilities = require("../utilities");
|
|
22
|
+
exports.Command = null;
|
|
23
|
+
utilities.lazyLoad(exports, ["Command"], () => require("./command"));
|
|
24
|
+
exports.CopyFile = null;
|
|
25
|
+
utilities.lazyLoad(exports, ["CopyFile"], () => require("./copyFile"));
|
|
26
|
+
exports.CopyToRemote = null;
|
|
27
|
+
utilities.lazyLoad(exports, ["CopyToRemote"], () => require("./copyToRemote"));
|
|
28
|
+
// Export enums:
|
|
29
|
+
__exportStar(require("../types/enums/remote"), exports);
|
|
30
|
+
const _module = {
|
|
31
|
+
version: utilities.getVersion(),
|
|
32
|
+
construct: (name, type, urn) => {
|
|
33
|
+
switch (type) {
|
|
34
|
+
case "command:remote:Command":
|
|
35
|
+
return new exports.Command(name, undefined, { urn });
|
|
36
|
+
case "command:remote:CopyFile":
|
|
37
|
+
return new exports.CopyFile(name, undefined, { urn });
|
|
38
|
+
case "command:remote:CopyToRemote":
|
|
39
|
+
return new exports.CopyToRemote(name, undefined, { urn });
|
|
40
|
+
default:
|
|
41
|
+
throw new Error(`unknown resource type ${type}`);
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
pulumi.runtime.registerResourceModule("command", "remote", _module);
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../remote/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAIxD,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC1E,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC;AAI1D,QAAA,YAAY,GAAiD,IAAW,CAAC;AACtF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAG/E,gBAAgB;AAChB,wDAAsC;AAEtC,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,wBAAwB;gBACzB,OAAO,IAAI,eAAO,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACrD,KAAK,yBAAyB;gBAC1B,OAAO,IAAI,gBAAQ,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACtD,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,oBAAY,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1D;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var childProcess = require("child_process");
|
|
3
|
+
|
|
4
|
+
var args = process.argv.slice(2);
|
|
5
|
+
var res = childProcess.spawnSync("pulumi", ["plugin", "install"].concat(args), {
|
|
6
|
+
stdio: ["ignore", "inherit", "inherit"]
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
if (res.error && res.error.code === "ENOENT") {
|
|
10
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
11
|
+
"It looks like `pulumi` is not installed on your system. " +
|
|
12
|
+
"Please visit https://pulumi.com/ to install the Pulumi CLI.\n" +
|
|
13
|
+
"You may try manually installing the plugin by running " +
|
|
14
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
15
|
+
} else if (res.error || res.status !== 0) {
|
|
16
|
+
console.error("\nThere was an error installing the resource provider plugin. " +
|
|
17
|
+
"You may try to manually installing the plugin by running " +
|
|
18
|
+
"`pulumi plugin install " + args.join(" ") + "`");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
process.exit(0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.remote = exports.local = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const local = require("./local");
|
|
8
|
+
exports.local = local;
|
|
9
|
+
const remote = require("./remote");
|
|
10
|
+
exports.remote = remote;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/enums/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const Logging: {
|
|
2
|
+
/**
|
|
3
|
+
* Capture stdout in logs but not stderr
|
|
4
|
+
*/
|
|
5
|
+
readonly Stdout: "stdout";
|
|
6
|
+
/**
|
|
7
|
+
* Capture stderr in logs but not stdout
|
|
8
|
+
*/
|
|
9
|
+
readonly Stderr: "stderr";
|
|
10
|
+
/**
|
|
11
|
+
* Capture stdout and stderr in logs
|
|
12
|
+
*/
|
|
13
|
+
readonly StdoutAndStderr: "stdoutAndStderr";
|
|
14
|
+
/**
|
|
15
|
+
* Capture no logs
|
|
16
|
+
*/
|
|
17
|
+
readonly None: "none";
|
|
18
|
+
};
|
|
19
|
+
export type Logging = (typeof Logging)[keyof typeof Logging];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.Logging = void 0;
|
|
6
|
+
exports.Logging = {
|
|
7
|
+
/**
|
|
8
|
+
* Capture stdout in logs but not stderr
|
|
9
|
+
*/
|
|
10
|
+
Stdout: "stdout",
|
|
11
|
+
/**
|
|
12
|
+
* Capture stderr in logs but not stdout
|
|
13
|
+
*/
|
|
14
|
+
Stderr: "stderr",
|
|
15
|
+
/**
|
|
16
|
+
* Capture stdout and stderr in logs
|
|
17
|
+
*/
|
|
18
|
+
StdoutAndStderr: "stdoutAndStderr",
|
|
19
|
+
/**
|
|
20
|
+
* Capture no logs
|
|
21
|
+
*/
|
|
22
|
+
None: "none",
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/enums/local/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,OAAO,GAAG;IACnB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM;CACN,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const Logging: {
|
|
2
|
+
/**
|
|
3
|
+
* Capture stdout in logs but not stderr
|
|
4
|
+
*/
|
|
5
|
+
readonly Stdout: "stdout";
|
|
6
|
+
/**
|
|
7
|
+
* Capture stderr in logs but not stdout
|
|
8
|
+
*/
|
|
9
|
+
readonly Stderr: "stderr";
|
|
10
|
+
/**
|
|
11
|
+
* Capture stdout and stderr in logs
|
|
12
|
+
*/
|
|
13
|
+
readonly StdoutAndStderr: "stdoutAndStderr";
|
|
14
|
+
/**
|
|
15
|
+
* Capture no logs
|
|
16
|
+
*/
|
|
17
|
+
readonly None: "none";
|
|
18
|
+
};
|
|
19
|
+
export type Logging = (typeof Logging)[keyof typeof Logging];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.Logging = void 0;
|
|
6
|
+
exports.Logging = {
|
|
7
|
+
/**
|
|
8
|
+
* Capture stdout in logs but not stderr
|
|
9
|
+
*/
|
|
10
|
+
Stdout: "stdout",
|
|
11
|
+
/**
|
|
12
|
+
* Capture stderr in logs but not stdout
|
|
13
|
+
*/
|
|
14
|
+
Stderr: "stderr",
|
|
15
|
+
/**
|
|
16
|
+
* Capture stdout and stderr in logs
|
|
17
|
+
*/
|
|
18
|
+
StdoutAndStderr: "stdoutAndStderr",
|
|
19
|
+
/**
|
|
20
|
+
* Capture no logs
|
|
21
|
+
*/
|
|
22
|
+
None: "none",
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/enums/remote/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,OAAO,GAAG;IACnB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM;CACN,CAAC"}
|
package/types/index.d.ts
ADDED
package/types/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.output = exports.input = exports.enums = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const enums = require("./enums");
|
|
8
|
+
exports.enums = enums;
|
|
9
|
+
const input = require("./input");
|
|
10
|
+
exports.input = input;
|
|
11
|
+
const output = require("./output");
|
|
12
|
+
exports.output = output;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAK7B,sBAAK;AAJT,iCAAiC;AAK7B,sBAAK;AAJT,mCAAmC;AAK/B,wBAAM"}
|
package/types/input.d.ts
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "../types/input";
|
|
3
|
+
export declare namespace remote {
|
|
4
|
+
/**
|
|
5
|
+
* Instructions for how to connect to a remote endpoint.
|
|
6
|
+
*/
|
|
7
|
+
interface ConnectionArgs {
|
|
8
|
+
/**
|
|
9
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
10
|
+
*/
|
|
11
|
+
agentSocketPath?: pulumi.Input<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
|
|
14
|
+
*/
|
|
15
|
+
dialErrorLimit?: pulumi.Input<number>;
|
|
16
|
+
/**
|
|
17
|
+
* The address of the resource to connect to.
|
|
18
|
+
*/
|
|
19
|
+
host: pulumi.Input<string>;
|
|
20
|
+
/**
|
|
21
|
+
* The password we should use for the connection.
|
|
22
|
+
*/
|
|
23
|
+
password?: pulumi.Input<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
|
|
26
|
+
*/
|
|
27
|
+
perDialTimeout?: pulumi.Input<number>;
|
|
28
|
+
/**
|
|
29
|
+
* The port to connect to. Defaults to 22.
|
|
30
|
+
*/
|
|
31
|
+
port?: pulumi.Input<number>;
|
|
32
|
+
/**
|
|
33
|
+
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
34
|
+
*/
|
|
35
|
+
privateKey?: pulumi.Input<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The password to use in case the private key is encrypted.
|
|
38
|
+
*/
|
|
39
|
+
privateKeyPassword?: pulumi.Input<string>;
|
|
40
|
+
/**
|
|
41
|
+
* The connection settings for the bastion/proxy host.
|
|
42
|
+
*/
|
|
43
|
+
proxy?: pulumi.Input<inputs.remote.ProxyConnectionArgs>;
|
|
44
|
+
/**
|
|
45
|
+
* The user that we should use for the connection.
|
|
46
|
+
*/
|
|
47
|
+
user?: pulumi.Input<string>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
|
|
51
|
+
*/
|
|
52
|
+
function connectionArgsProvideDefaults(val: ConnectionArgs): ConnectionArgs;
|
|
53
|
+
/**
|
|
54
|
+
* Instructions for how to connect to a remote endpoint via a bastion host.
|
|
55
|
+
*/
|
|
56
|
+
interface ProxyConnectionArgs {
|
|
57
|
+
/**
|
|
58
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
59
|
+
*/
|
|
60
|
+
agentSocketPath?: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
|
|
63
|
+
*/
|
|
64
|
+
dialErrorLimit?: pulumi.Input<number>;
|
|
65
|
+
/**
|
|
66
|
+
* The address of the bastion host to connect to.
|
|
67
|
+
*/
|
|
68
|
+
host: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The password we should use for the connection to the bastion host.
|
|
71
|
+
*/
|
|
72
|
+
password?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
|
|
75
|
+
*/
|
|
76
|
+
perDialTimeout?: pulumi.Input<number>;
|
|
77
|
+
/**
|
|
78
|
+
* The port of the bastion host to connect to.
|
|
79
|
+
*/
|
|
80
|
+
port?: pulumi.Input<number>;
|
|
81
|
+
/**
|
|
82
|
+
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
83
|
+
*/
|
|
84
|
+
privateKey?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The password to use in case the private key is encrypted.
|
|
87
|
+
*/
|
|
88
|
+
privateKeyPassword?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The user that we should use for the connection to the bastion host.
|
|
91
|
+
*/
|
|
92
|
+
user?: pulumi.Input<string>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* proxyConnectionArgsProvideDefaults sets the appropriate defaults for ProxyConnectionArgs
|
|
96
|
+
*/
|
|
97
|
+
function proxyConnectionArgsProvideDefaults(val: ProxyConnectionArgs): ProxyConnectionArgs;
|
|
98
|
+
}
|
package/types/input.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.remote = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const inputs = require("../types/input");
|
|
8
|
+
var remote;
|
|
9
|
+
(function (remote) {
|
|
10
|
+
/**
|
|
11
|
+
* connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
|
|
12
|
+
*/
|
|
13
|
+
function connectionArgsProvideDefaults(val) {
|
|
14
|
+
var _a, _b, _c, _d;
|
|
15
|
+
return Object.assign(Object.assign({}, val), { dialErrorLimit: (_a = (val.dialErrorLimit)) !== null && _a !== void 0 ? _a : 10, perDialTimeout: (_b = (val.perDialTimeout)) !== null && _b !== void 0 ? _b : 15, port: (_c = (val.port)) !== null && _c !== void 0 ? _c : 22, proxy: (val.proxy ? pulumi.output(val.proxy).apply(inputs.remote.proxyConnectionArgsProvideDefaults) : undefined), user: (_d = (val.user)) !== null && _d !== void 0 ? _d : "root" });
|
|
16
|
+
}
|
|
17
|
+
remote.connectionArgsProvideDefaults = connectionArgsProvideDefaults;
|
|
18
|
+
/**
|
|
19
|
+
* proxyConnectionArgsProvideDefaults sets the appropriate defaults for ProxyConnectionArgs
|
|
20
|
+
*/
|
|
21
|
+
function proxyConnectionArgsProvideDefaults(val) {
|
|
22
|
+
var _a, _b, _c, _d;
|
|
23
|
+
return Object.assign(Object.assign({}, val), { dialErrorLimit: (_a = (val.dialErrorLimit)) !== null && _a !== void 0 ? _a : 10, perDialTimeout: (_b = (val.perDialTimeout)) !== null && _b !== void 0 ? _b : 15, port: (_c = (val.port)) !== null && _c !== void 0 ? _c : 22, user: (_d = (val.user)) !== null && _d !== void 0 ? _d : "root" });
|
|
24
|
+
}
|
|
25
|
+
remote.proxyConnectionArgsProvideDefaults = proxyConnectionArgsProvideDefaults;
|
|
26
|
+
})(remote = exports.remote || (exports.remote = {}));
|
|
27
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAMzC,IAAiB,MAAM,CAiHtB;AAjHD,WAAiB,MAAM;IA8CnB;;OAEG;IACH,SAAgB,6BAA6B,CAAC,GAAmB;;QAC7D,uCACO,GAAG,KACN,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,KAAK,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACjH,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IATe,oCAA6B,gCAS5C,CAAA;IA2CD;;OAEG;IACH,SAAgB,kCAAkC,CAAC,GAAwB;;QACvE,uCACO,GAAG,KACN,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IARe,yCAAkC,qCAQjD,CAAA;AACL,CAAC,EAjHgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAiHtB"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as outputs from "../types/output";
|
|
2
|
+
export declare namespace remote {
|
|
3
|
+
/**
|
|
4
|
+
* Instructions for how to connect to a remote endpoint.
|
|
5
|
+
*/
|
|
6
|
+
interface Connection {
|
|
7
|
+
/**
|
|
8
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
9
|
+
*/
|
|
10
|
+
agentSocketPath?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
|
|
13
|
+
*/
|
|
14
|
+
dialErrorLimit?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The address of the resource to connect to.
|
|
17
|
+
*/
|
|
18
|
+
host: string;
|
|
19
|
+
/**
|
|
20
|
+
* The password we should use for the connection.
|
|
21
|
+
*/
|
|
22
|
+
password?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
|
|
25
|
+
*/
|
|
26
|
+
perDialTimeout?: number;
|
|
27
|
+
/**
|
|
28
|
+
* The port to connect to. Defaults to 22.
|
|
29
|
+
*/
|
|
30
|
+
port?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
33
|
+
*/
|
|
34
|
+
privateKey?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The password to use in case the private key is encrypted.
|
|
37
|
+
*/
|
|
38
|
+
privateKeyPassword?: string;
|
|
39
|
+
/**
|
|
40
|
+
* The connection settings for the bastion/proxy host.
|
|
41
|
+
*/
|
|
42
|
+
proxy?: outputs.remote.ProxyConnection;
|
|
43
|
+
/**
|
|
44
|
+
* The user that we should use for the connection.
|
|
45
|
+
*/
|
|
46
|
+
user?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* connectionProvideDefaults sets the appropriate defaults for Connection
|
|
50
|
+
*/
|
|
51
|
+
function connectionProvideDefaults(val: Connection): Connection;
|
|
52
|
+
/**
|
|
53
|
+
* Instructions for how to connect to a remote endpoint via a bastion host.
|
|
54
|
+
*/
|
|
55
|
+
interface ProxyConnection {
|
|
56
|
+
/**
|
|
57
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
58
|
+
*/
|
|
59
|
+
agentSocketPath?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Max allowed errors on trying to dial the remote host. -1 set count to unlimited. Default value is 10.
|
|
62
|
+
*/
|
|
63
|
+
dialErrorLimit?: number;
|
|
64
|
+
/**
|
|
65
|
+
* The address of the bastion host to connect to.
|
|
66
|
+
*/
|
|
67
|
+
host: string;
|
|
68
|
+
/**
|
|
69
|
+
* The password we should use for the connection to the bastion host.
|
|
70
|
+
*/
|
|
71
|
+
password?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Max number of seconds for each dial attempt. 0 implies no maximum. Default value is 15 seconds.
|
|
74
|
+
*/
|
|
75
|
+
perDialTimeout?: number;
|
|
76
|
+
/**
|
|
77
|
+
* The port of the bastion host to connect to.
|
|
78
|
+
*/
|
|
79
|
+
port?: number;
|
|
80
|
+
/**
|
|
81
|
+
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
82
|
+
*/
|
|
83
|
+
privateKey?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The password to use in case the private key is encrypted.
|
|
86
|
+
*/
|
|
87
|
+
privateKeyPassword?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The user that we should use for the connection to the bastion host.
|
|
90
|
+
*/
|
|
91
|
+
user?: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* proxyConnectionProvideDefaults sets the appropriate defaults for ProxyConnection
|
|
95
|
+
*/
|
|
96
|
+
function proxyConnectionProvideDefaults(val: ProxyConnection): ProxyConnection;
|
|
97
|
+
}
|
package/types/output.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
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.remote = void 0;
|
|
6
|
+
const outputs = require("../types/output");
|
|
7
|
+
var remote;
|
|
8
|
+
(function (remote) {
|
|
9
|
+
/**
|
|
10
|
+
* connectionProvideDefaults sets the appropriate defaults for Connection
|
|
11
|
+
*/
|
|
12
|
+
function connectionProvideDefaults(val) {
|
|
13
|
+
var _a, _b, _c, _d;
|
|
14
|
+
return Object.assign(Object.assign({}, val), { dialErrorLimit: (_a = (val.dialErrorLimit)) !== null && _a !== void 0 ? _a : 10, perDialTimeout: (_b = (val.perDialTimeout)) !== null && _b !== void 0 ? _b : 15, port: (_c = (val.port)) !== null && _c !== void 0 ? _c : 22, proxy: (val.proxy ? outputs.remote.proxyConnectionProvideDefaults(val.proxy) : undefined), user: (_d = (val.user)) !== null && _d !== void 0 ? _d : "root" });
|
|
15
|
+
}
|
|
16
|
+
remote.connectionProvideDefaults = connectionProvideDefaults;
|
|
17
|
+
/**
|
|
18
|
+
* proxyConnectionProvideDefaults sets the appropriate defaults for ProxyConnection
|
|
19
|
+
*/
|
|
20
|
+
function proxyConnectionProvideDefaults(val) {
|
|
21
|
+
var _a, _b, _c, _d;
|
|
22
|
+
return Object.assign(Object.assign({}, val), { dialErrorLimit: (_a = (val.dialErrorLimit)) !== null && _a !== void 0 ? _a : 10, perDialTimeout: (_b = (val.perDialTimeout)) !== null && _b !== void 0 ? _b : 15, port: (_c = (val.port)) !== null && _c !== void 0 ? _c : 22, user: (_d = (val.user)) !== null && _d !== void 0 ? _d : "root" });
|
|
23
|
+
}
|
|
24
|
+
remote.proxyConnectionProvideDefaults = proxyConnectionProvideDefaults;
|
|
25
|
+
})(remote = exports.remote || (exports.remote = {}));
|
|
26
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,2CAA2C;AAK3C,IAAiB,MAAM,CAkHtB;AAlHD,WAAiB,MAAM;IA8CnB;;OAEG;IACH,SAAgB,yBAAyB,CAAC,GAAe;;QACrD,uCACO,GAAG,KACN,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,KAAK,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EACzF,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IATe,gCAAyB,4BASxC,CAAA;IA2CD;;OAEG;IACH,SAAgB,8BAA8B,CAAC,GAAoB;;QAC/D,uCACO,GAAG,KACN,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,cAAc,EAAE,MAAA,CAAC,GAAG,CAAC,cAAc,CAAC,mCAAI,EAAE,EAC1C,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;IACN,CAAC;IARe,qCAA8B,iCAQ7C,CAAA;AAEL,CAAC,EAlHgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAkHtB"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
3
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
4
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
5
|
+
export declare function getVersion(): string;
|
|
6
|
+
export declare function callAsync<T>(tok: string, props: pulumi.Inputs, res?: pulumi.Resource, opts?: {
|
|
7
|
+
property?: string;
|
|
8
|
+
}): Promise<T>;
|