@pulumi/command 0.6.1-alpha.1667595455 → 0.6.1-alpha.1669081206
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 +2 -2
- package/index.d.ts +1 -1
- package/local/command.d.ts +80 -2
- package/local/command.js +23 -21
- package/local/command.js.map +1 -1
- package/local/index.d.ts +1 -1
- package/local/run.d.ts +92 -7
- package/local/run.js +1 -4
- package/local/run.js.map +1 -1
- package/package.json +3 -2
- package/package.json.bak +1 -0
- package/package.json.dev +3 -2
- package/provider.js +10 -10
- package/provider.js.map +1 -1
- package/remote/command.d.ts +2 -2
- package/remote/command.js +23 -21
- package/remote/command.js.map +1 -1
- package/remote/copyFile.js +21 -21
- package/remote/copyFile.js.map +1 -1
- package/remote/index.d.ts +2 -2
- package/types/input.d.ts +1 -40
- package/types/input.js +1 -11
- package/types/input.js.map +1 -1
- package/types/output.d.ts +1 -39
- package/types/output.js +1 -11
- package/types/output.js.map +1 -1
- package/types/remote/index.d.ts +0 -0
- package/types/remote/index.js +4 -0
- package/types/remote/index.js.map +1 -0
- package/types/remote/input.d.ts +38 -0
- package/types/remote/input.js +14 -0
- package/types/remote/input.js.map +1 -0
- package/types/remote/output.d.ts +37 -0
- package/types/remote/output.js +14 -0
- package/types/remote/output.js.map +1 -0
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ import (
|
|
|
53
53
|
func main() {
|
|
54
54
|
pulumi.Run(func(ctx *pulumi.Context) error {
|
|
55
55
|
|
|
56
|
-
random, err := local.NewCommand(ctx, "my-bucket", &local.
|
|
56
|
+
random, err := local.NewCommand(ctx, "my-bucket", &local.CommandInput{
|
|
57
57
|
Create: pulumi.String("openssl rand -hex 16"),
|
|
58
58
|
})
|
|
59
59
|
if err != nil {
|
|
@@ -116,7 +116,7 @@ const server = new aws.ec2.Instance("server", {
|
|
|
116
116
|
|
|
117
117
|
// Now set up a connection to the instance and run some provisioning operations on the instance.
|
|
118
118
|
|
|
119
|
-
const connection: types.input.remote.
|
|
119
|
+
const connection: types.input.remote.ConnectionInput = {
|
|
120
120
|
host: server.publicIp,
|
|
121
121
|
user: "ec2-user",
|
|
122
122
|
privateKey: privateKey,
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ProviderArgs } from "./provider";
|
|
2
|
-
export
|
|
2
|
+
export type Provider = import("./provider").Provider;
|
|
3
3
|
export declare const Provider: typeof import("./provider").Provider;
|
|
4
4
|
import * as local from "./local";
|
|
5
5
|
import * as remote from "./remote";
|
package/local/command.d.ts
CHANGED
|
@@ -27,10 +27,84 @@ export declare class Command extends pulumi.CustomResource {
|
|
|
27
27
|
readonly archive: pulumi.Output<pulumi.asset.Archive | undefined>;
|
|
28
28
|
/**
|
|
29
29
|
* A list of path globs to return as a single archive asset after the command completes.
|
|
30
|
+
*
|
|
31
|
+
* When specifying glob patterns the following rules apply:
|
|
32
|
+
* - We only include files not directories for assets and archives.
|
|
33
|
+
* - Path separators are `/` on all platforms - including Windows.
|
|
34
|
+
* - Patterns starting with `!` are 'exclude' rules.
|
|
35
|
+
* - Rules are evaluated in order, so exclude rules should be after inclusion rules.
|
|
36
|
+
* - `*` matches anything except `/`
|
|
37
|
+
* - `**` matches anything, _including_ `/`
|
|
38
|
+
* - All returned paths are relative to the working directory (without leading `./`) e.g. `file.text` or `subfolder/file.txt`.
|
|
39
|
+
* - For full details of the globbing syntax, see [github.com/gobwas/glob](https://github.com/gobwas/glob)
|
|
40
|
+
*
|
|
41
|
+
* #### Example
|
|
42
|
+
*
|
|
43
|
+
* Given the rules:
|
|
44
|
+
* ```yaml
|
|
45
|
+
* - "assets/**"
|
|
46
|
+
* - "src/**.js"
|
|
47
|
+
* - "!**secret.*"
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* When evaluating against this folder:
|
|
51
|
+
*
|
|
52
|
+
* ```yaml
|
|
53
|
+
* - assets/
|
|
54
|
+
* - logos/
|
|
55
|
+
* - logo.svg
|
|
56
|
+
* - src/
|
|
57
|
+
* - index.js
|
|
58
|
+
* - secret.js
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* The following paths will be returned:
|
|
62
|
+
*
|
|
63
|
+
* ```yaml
|
|
64
|
+
* - assets/logos/logo.svg
|
|
65
|
+
* - src/index.js
|
|
66
|
+
* ```
|
|
30
67
|
*/
|
|
31
68
|
readonly archivePaths: pulumi.Output<string[] | undefined>;
|
|
32
69
|
/**
|
|
33
70
|
* A list of path globs to read after the command completes.
|
|
71
|
+
*
|
|
72
|
+
* When specifying glob patterns the following rules apply:
|
|
73
|
+
* - We only include files not directories for assets and archives.
|
|
74
|
+
* - Path separators are `/` on all platforms - including Windows.
|
|
75
|
+
* - Patterns starting with `!` are 'exclude' rules.
|
|
76
|
+
* - Rules are evaluated in order, so exclude rules should be after inclusion rules.
|
|
77
|
+
* - `*` matches anything except `/`
|
|
78
|
+
* - `**` matches anything, _including_ `/`
|
|
79
|
+
* - All returned paths are relative to the working directory (without leading `./`) e.g. `file.text` or `subfolder/file.txt`.
|
|
80
|
+
* - For full details of the globbing syntax, see [github.com/gobwas/glob](https://github.com/gobwas/glob)
|
|
81
|
+
*
|
|
82
|
+
* #### Example
|
|
83
|
+
*
|
|
84
|
+
* Given the rules:
|
|
85
|
+
* ```yaml
|
|
86
|
+
* - "assets/**"
|
|
87
|
+
* - "src/**.js"
|
|
88
|
+
* - "!**secret.*"
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* When evaluating against this folder:
|
|
92
|
+
*
|
|
93
|
+
* ```yaml
|
|
94
|
+
* - assets/
|
|
95
|
+
* - logos/
|
|
96
|
+
* - logo.svg
|
|
97
|
+
* - src/
|
|
98
|
+
* - index.js
|
|
99
|
+
* - secret.js
|
|
100
|
+
* ```
|
|
101
|
+
*
|
|
102
|
+
* The following paths will be returned:
|
|
103
|
+
*
|
|
104
|
+
* ```yaml
|
|
105
|
+
* - assets/logos/logo.svg
|
|
106
|
+
* - src/index.js
|
|
107
|
+
* ```
|
|
34
108
|
*/
|
|
35
109
|
readonly assetPaths: pulumi.Output<string[] | undefined>;
|
|
36
110
|
/**
|
|
@@ -61,7 +135,7 @@ export declare class Command extends pulumi.CustomResource {
|
|
|
61
135
|
} | undefined>;
|
|
62
136
|
/**
|
|
63
137
|
* The program and arguments to run the command.
|
|
64
|
-
*
|
|
138
|
+
* On Linux and macOS, defaults to: `["/bin/sh", "-c"]`. On Windows, defaults to: `["cmd", "/C"]`
|
|
65
139
|
*/
|
|
66
140
|
readonly interpreter: pulumi.Output<string[] | undefined>;
|
|
67
141
|
/**
|
|
@@ -188,7 +262,8 @@ export interface CommandArgs {
|
|
|
188
262
|
*/
|
|
189
263
|
delete?: pulumi.Input<string>;
|
|
190
264
|
/**
|
|
191
|
-
* The
|
|
265
|
+
* The directory from which to run the command from. If `dir` does not exist, then
|
|
266
|
+
* `Command` will fail.
|
|
192
267
|
*/
|
|
193
268
|
dir?: pulumi.Input<string>;
|
|
194
269
|
/**
|
|
@@ -206,6 +281,9 @@ export interface CommandArgs {
|
|
|
206
281
|
* Pass a string to the command's process as standard in
|
|
207
282
|
*/
|
|
208
283
|
stdin?: pulumi.Input<string>;
|
|
284
|
+
/**
|
|
285
|
+
* Trigger replacements on changes to this input.
|
|
286
|
+
*/
|
|
209
287
|
triggers?: pulumi.Input<any[]>;
|
|
210
288
|
/**
|
|
211
289
|
* The command to run on update, if empty, create will run again.
|
package/local/command.js
CHANGED
|
@@ -13,6 +13,27 @@ const utilities = require("../utilities");
|
|
|
13
13
|
* of the `Command` resource.
|
|
14
14
|
*/
|
|
15
15
|
class Command extends pulumi.CustomResource {
|
|
16
|
+
/**
|
|
17
|
+
* Get an existing Command resource's state with the given name, ID, and optional extra
|
|
18
|
+
* properties used to qualify the lookup.
|
|
19
|
+
*
|
|
20
|
+
* @param name The _unique_ name of the resulting resource.
|
|
21
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
22
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
23
|
+
*/
|
|
24
|
+
static get(name, id, opts) {
|
|
25
|
+
return new Command(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns true if the given object is an instance of Command. This is designed to work even
|
|
29
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
30
|
+
*/
|
|
31
|
+
static isInstance(obj) {
|
|
32
|
+
if (obj === undefined || obj === null) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
return obj['__pulumiType'] === Command.__pulumiType;
|
|
36
|
+
}
|
|
16
37
|
/**
|
|
17
38
|
* Create a Command resource with the given unique name, arguments, and options.
|
|
18
39
|
*
|
|
@@ -56,29 +77,10 @@ class Command extends pulumi.CustomResource {
|
|
|
56
77
|
resourceInputs["update"] = undefined /*out*/;
|
|
57
78
|
}
|
|
58
79
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
80
|
+
const replaceOnChanges = { replaceOnChanges: ["triggers[*]"] };
|
|
81
|
+
opts = pulumi.mergeOptions(opts, replaceOnChanges);
|
|
59
82
|
super(Command.__pulumiType, name, resourceInputs, opts);
|
|
60
83
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Get an existing Command resource's state with the given name, ID, and optional extra
|
|
63
|
-
* properties used to qualify the lookup.
|
|
64
|
-
*
|
|
65
|
-
* @param name The _unique_ name of the resulting resource.
|
|
66
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
67
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
68
|
-
*/
|
|
69
|
-
static get(name, id, opts) {
|
|
70
|
-
return new Command(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Returns true if the given object is an instance of Command. This is designed to work even
|
|
74
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
75
|
-
*/
|
|
76
|
-
static isInstance(obj) {
|
|
77
|
-
if (obj === undefined || obj === null) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
return obj['__pulumiType'] === Command.__pulumiType;
|
|
81
|
-
}
|
|
82
84
|
}
|
|
83
85
|
exports.Command = Command;
|
|
84
86
|
/** @internal */
|
package/local/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../local/command.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;GAMG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../local/command.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;GAMG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAwID;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAAmC;QAC7E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,cAAc,CAAC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AAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AA9ML,0BA+MC;AAlMG,gBAAgB;AACO,oBAAY,GAAG,uBAAuB,CAAC"}
|
package/local/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { CommandArgs } from "./command";
|
|
2
|
-
export
|
|
2
|
+
export type Command = import("./command").Command;
|
|
3
3
|
export declare const Command: typeof import("./command").Command;
|
|
4
4
|
export { RunArgs, RunResult, RunOutputArgs } from "./run";
|
|
5
5
|
export declare const run: typeof import("./run").run;
|
package/local/run.d.ts
CHANGED
|
@@ -92,7 +92,8 @@ export interface RunArgs {
|
|
|
92
92
|
*/
|
|
93
93
|
command: string;
|
|
94
94
|
/**
|
|
95
|
-
* The
|
|
95
|
+
* The directory from which to run the command from. If `dir` does not exist, then
|
|
96
|
+
* `Command` will fail.
|
|
96
97
|
*/
|
|
97
98
|
dir?: string;
|
|
98
99
|
/**
|
|
@@ -116,6 +117,88 @@ export interface RunResult {
|
|
|
116
117
|
* An archive asset containing files found after running the command.
|
|
117
118
|
*/
|
|
118
119
|
readonly archive?: pulumi.asset.Archive;
|
|
120
|
+
/**
|
|
121
|
+
* A list of path globs to return as a single archive asset after the command completes.
|
|
122
|
+
*
|
|
123
|
+
* When specifying glob patterns the following rules apply:
|
|
124
|
+
* - We only include files not directories for assets and archives.
|
|
125
|
+
* - Path separators are `/` on all platforms - including Windows.
|
|
126
|
+
* - Patterns starting with `!` are 'exclude' rules.
|
|
127
|
+
* - Rules are evaluated in order, so exclude rules should be after inclusion rules.
|
|
128
|
+
* - `*` matches anything except `/`
|
|
129
|
+
* - `**` matches anything, _including_ `/`
|
|
130
|
+
* - All returned paths are relative to the working directory (without leading `./`) e.g. `file.text` or `subfolder/file.txt`.
|
|
131
|
+
* - For full details of the globbing syntax, see [github.com/gobwas/glob](https://github.com/gobwas/glob)
|
|
132
|
+
*
|
|
133
|
+
* #### Example
|
|
134
|
+
*
|
|
135
|
+
* Given the rules:
|
|
136
|
+
* ```yaml
|
|
137
|
+
* - "assets/**"
|
|
138
|
+
* - "src/**.js"
|
|
139
|
+
* - "!**secret.*"
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* When evaluating against this folder:
|
|
143
|
+
*
|
|
144
|
+
* ```yaml
|
|
145
|
+
* - assets/
|
|
146
|
+
* - logos/
|
|
147
|
+
* - logo.svg
|
|
148
|
+
* - src/
|
|
149
|
+
* - index.js
|
|
150
|
+
* - secret.js
|
|
151
|
+
* ```
|
|
152
|
+
*
|
|
153
|
+
* The following paths will be returned:
|
|
154
|
+
*
|
|
155
|
+
* ```yaml
|
|
156
|
+
* - assets/logos/logo.svg
|
|
157
|
+
* - src/index.js
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
readonly archivePaths?: string[];
|
|
161
|
+
/**
|
|
162
|
+
* A list of path globs to read after the command completes.
|
|
163
|
+
*
|
|
164
|
+
* When specifying glob patterns the following rules apply:
|
|
165
|
+
* - We only include files not directories for assets and archives.
|
|
166
|
+
* - Path separators are `/` on all platforms - including Windows.
|
|
167
|
+
* - Patterns starting with `!` are 'exclude' rules.
|
|
168
|
+
* - Rules are evaluated in order, so exclude rules should be after inclusion rules.
|
|
169
|
+
* - `*` matches anything except `/`
|
|
170
|
+
* - `**` matches anything, _including_ `/`
|
|
171
|
+
* - All returned paths are relative to the working directory (without leading `./`) e.g. `file.text` or `subfolder/file.txt`.
|
|
172
|
+
* - For full details of the globbing syntax, see [github.com/gobwas/glob](https://github.com/gobwas/glob)
|
|
173
|
+
*
|
|
174
|
+
* #### Example
|
|
175
|
+
*
|
|
176
|
+
* Given the rules:
|
|
177
|
+
* ```yaml
|
|
178
|
+
* - "assets/**"
|
|
179
|
+
* - "src/**.js"
|
|
180
|
+
* - "!**secret.*"
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
183
|
+
* When evaluating against this folder:
|
|
184
|
+
*
|
|
185
|
+
* ```yaml
|
|
186
|
+
* - assets/
|
|
187
|
+
* - logos/
|
|
188
|
+
* - logo.svg
|
|
189
|
+
* - src/
|
|
190
|
+
* - index.js
|
|
191
|
+
* - secret.js
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
194
|
+
* The following paths will be returned:
|
|
195
|
+
*
|
|
196
|
+
* ```yaml
|
|
197
|
+
* - assets/logos/logo.svg
|
|
198
|
+
* - src/index.js
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
readonly assetPaths?: string[];
|
|
119
202
|
/**
|
|
120
203
|
* A map of assets found after running the command.
|
|
121
204
|
* The key is the relative path from the command dir
|
|
@@ -128,7 +211,8 @@ export interface RunResult {
|
|
|
128
211
|
*/
|
|
129
212
|
readonly command: string;
|
|
130
213
|
/**
|
|
131
|
-
* The directory from which the command
|
|
214
|
+
* The directory from which to run the command from. If `dir` does not exist, then
|
|
215
|
+
* `Command` will fail.
|
|
132
216
|
*/
|
|
133
217
|
readonly dir?: string;
|
|
134
218
|
/**
|
|
@@ -139,7 +223,7 @@ export interface RunResult {
|
|
|
139
223
|
};
|
|
140
224
|
/**
|
|
141
225
|
* The program and arguments to run the command.
|
|
142
|
-
*
|
|
226
|
+
* On Linux and macOS, defaults to: `["/bin/sh", "-c"]`. On Windows, defaults to: `["cmd", "/C"]`
|
|
143
227
|
*/
|
|
144
228
|
readonly interpreter?: string[];
|
|
145
229
|
/**
|
|
@@ -147,13 +231,13 @@ export interface RunResult {
|
|
|
147
231
|
*/
|
|
148
232
|
readonly stderr: string;
|
|
149
233
|
/**
|
|
150
|
-
*
|
|
234
|
+
* Pass a string to the command's process as standard in
|
|
151
235
|
*/
|
|
152
|
-
readonly stdin
|
|
236
|
+
readonly stdin?: string;
|
|
153
237
|
/**
|
|
154
238
|
* The standard output of the command's process
|
|
155
239
|
*/
|
|
156
|
-
readonly stdout
|
|
240
|
+
readonly stdout: string;
|
|
157
241
|
}
|
|
158
242
|
export declare function runOutput(args: RunOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<RunResult>;
|
|
159
243
|
export interface RunOutputArgs {
|
|
@@ -244,7 +328,8 @@ export interface RunOutputArgs {
|
|
|
244
328
|
*/
|
|
245
329
|
command: pulumi.Input<string>;
|
|
246
330
|
/**
|
|
247
|
-
* The
|
|
331
|
+
* The directory from which to run the command from. If `dir` does not exist, then
|
|
332
|
+
* `Command` will fail.
|
|
248
333
|
*/
|
|
249
334
|
dir?: pulumi.Input<string>;
|
|
250
335
|
/**
|
package/local/run.js
CHANGED
|
@@ -10,10 +10,7 @@ const utilities = require("../utilities");
|
|
|
10
10
|
* This command will always be run on any preview or deployment. Use `local.Command` to avoid duplicating executions.
|
|
11
11
|
*/
|
|
12
12
|
function run(args, opts) {
|
|
13
|
-
|
|
14
|
-
opts = {};
|
|
15
|
-
}
|
|
16
|
-
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
13
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
17
14
|
return pulumi.runtime.invoke("command:local:run", {
|
|
18
15
|
"archivePaths": args.archivePaths,
|
|
19
16
|
"assetPaths": args.assetPaths,
|
package/local/run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../local/run.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;GAGG;AACH,SAAgB,GAAG,CAAC,IAAa,EAAE,IAA2B;
|
|
1
|
+
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../local/run.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;GAGG;AACH,SAAgB,GAAG,CAAC,IAAa,EAAE,IAA2B;IAE1D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE;QAC9C,cAAc,EAAE,IAAI,CAAC,YAAY;QACjC,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAZD,kBAYC;AAyOD,SAAgB,SAAS,CAAC,IAAmB,EAAE,IAA2B;IACtE,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvD,CAAC;AAFD,8BAEC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/command",
|
|
3
|
-
"version": "v0.6.1-alpha.
|
|
3
|
+
"version": "v0.6.1-alpha.1669081206+d5746064",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"command",
|
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource command v0.6.1-alpha.
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource command v0.6.1-alpha.1669081206+d5746064"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.0.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
+
"@types/node": "^14",
|
|
21
22
|
"typescript": "^4.3.5"
|
|
22
23
|
},
|
|
23
24
|
"pulumi": {
|
package/package.json.bak
CHANGED
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/command",
|
|
3
|
-
"version": "v0.6.1-alpha.
|
|
3
|
+
"version": "v0.6.1-alpha.1669081206+d5746064",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"pulumi",
|
|
6
6
|
"command",
|
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource command v0.6.1-alpha.
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource command v0.6.1-alpha.1669081206+d5746064"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.0.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
+
"@types/node": "^14",
|
|
21
22
|
"typescript": "^4.3.5"
|
|
22
23
|
},
|
|
23
24
|
"pulumi": {
|
package/provider.js
CHANGED
|
@@ -6,6 +6,16 @@ exports.Provider = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
class Provider extends pulumi.ProviderResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
11
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
|
+
*/
|
|
13
|
+
static isInstance(obj) {
|
|
14
|
+
if (obj === undefined || obj === null) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
18
|
+
}
|
|
9
19
|
/**
|
|
10
20
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
11
21
|
*
|
|
@@ -21,16 +31,6 @@ class Provider extends pulumi.ProviderResource {
|
|
|
21
31
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
22
32
|
super(Provider.__pulumiType, name, resourceInputs, opts);
|
|
23
33
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Returns true if the given object is an instance of Provider. This is designed to work even
|
|
26
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
-
*/
|
|
28
|
-
static isInstance(obj) {
|
|
29
|
-
if (obj === undefined || obj === null) {
|
|
30
|
-
return false;
|
|
31
|
-
}
|
|
32
|
-
return obj['__pulumiType'] === Provider.__pulumiType;
|
|
33
|
-
}
|
|
34
34
|
}
|
|
35
35
|
exports.Provider = Provider;
|
|
36
36
|
/** @internal */
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAGD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAmB,EAAE,IAA6B;QACxE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;SACC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9BL,4BA+BC;AA9BG,gBAAgB;AACO,qBAAY,GAAG,SAAS,CAAC"}
|
package/remote/command.d.ts
CHANGED
|
@@ -21,9 +21,9 @@ export declare class Command extends pulumi.CustomResource {
|
|
|
21
21
|
*/
|
|
22
22
|
static isInstance(obj: any): obj is Command;
|
|
23
23
|
/**
|
|
24
|
-
* The parameters with which to connect to the remote host
|
|
24
|
+
* The parameters with which to connect to the remote host.
|
|
25
25
|
*/
|
|
26
|
-
readonly connection: pulumi.Output<outputs.remote.Connection
|
|
26
|
+
readonly connection: pulumi.Output<outputs.remote.Connection>;
|
|
27
27
|
/**
|
|
28
28
|
* The command to run on create.
|
|
29
29
|
*/
|
package/remote/command.js
CHANGED
|
@@ -11,6 +11,27 @@ const utilities = require("../utilities");
|
|
|
11
11
|
* The connection is established via ssh.
|
|
12
12
|
*/
|
|
13
13
|
class Command extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing Command resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
21
|
+
*/
|
|
22
|
+
static get(name, id, opts) {
|
|
23
|
+
return new Command(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns true if the given object is an instance of Command. This is designed to work even
|
|
27
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
28
|
+
*/
|
|
29
|
+
static isInstance(obj) {
|
|
30
|
+
if (obj === undefined || obj === null) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
return obj['__pulumiType'] === Command.__pulumiType;
|
|
34
|
+
}
|
|
14
35
|
/**
|
|
15
36
|
* Create a Command resource with the given unique name, arguments, and options.
|
|
16
37
|
*
|
|
@@ -49,29 +70,10 @@ class Command extends pulumi.CustomResource {
|
|
|
49
70
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
50
71
|
const secretOpts = { additionalSecretOutputs: ["connection"] };
|
|
51
72
|
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
73
|
+
const replaceOnChanges = { replaceOnChanges: ["triggers[*]"] };
|
|
74
|
+
opts = pulumi.mergeOptions(opts, replaceOnChanges);
|
|
52
75
|
super(Command.__pulumiType, name, resourceInputs, opts);
|
|
53
76
|
}
|
|
54
|
-
/**
|
|
55
|
-
* Get an existing Command resource's state with the given name, ID, and optional extra
|
|
56
|
-
* properties used to qualify the lookup.
|
|
57
|
-
*
|
|
58
|
-
* @param name The _unique_ name of the resulting resource.
|
|
59
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
60
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
61
|
-
*/
|
|
62
|
-
static get(name, id, opts) {
|
|
63
|
-
return new Command(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Returns true if the given object is an instance of Command. This is designed to work even
|
|
67
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
68
|
-
*/
|
|
69
|
-
static isInstance(obj) {
|
|
70
|
-
if (obj === undefined || obj === null) {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
return obj['__pulumiType'] === Command.__pulumiType;
|
|
74
|
-
}
|
|
75
77
|
}
|
|
76
78
|
exports.Command = Command;
|
|
77
79
|
/** @internal */
|
package/remote/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../remote/command.ts"],"names":[],"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C,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC7C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,MAAM,gBAAgB,GAAG,EAAE,gBAAgB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QACnD,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAxGL,0BAyGC;AA5FG,gBAAgB;AACO,oBAAY,GAAG,wBAAwB,CAAC"}
|
package/remote/copyFile.js
CHANGED
|
@@ -10,6 +10,27 @@ const utilities = require("../utilities");
|
|
|
10
10
|
* Copy a local file to a remote host.
|
|
11
11
|
*/
|
|
12
12
|
class CopyFile extends pulumi.CustomResource {
|
|
13
|
+
/**
|
|
14
|
+
* Get an existing CopyFile resource's state with the given name, ID, and optional extra
|
|
15
|
+
* properties used to qualify the lookup.
|
|
16
|
+
*
|
|
17
|
+
* @param name The _unique_ name of the resulting resource.
|
|
18
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name, id, opts) {
|
|
22
|
+
return new CopyFile(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of CopyFile. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj) {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === CopyFile.__pulumiType;
|
|
33
|
+
}
|
|
13
34
|
/**
|
|
14
35
|
* Create a CopyFile resource with the given unique name, arguments, and options.
|
|
15
36
|
*
|
|
@@ -46,27 +67,6 @@ class CopyFile extends pulumi.CustomResource {
|
|
|
46
67
|
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
47
68
|
super(CopyFile.__pulumiType, name, resourceInputs, opts);
|
|
48
69
|
}
|
|
49
|
-
/**
|
|
50
|
-
* Get an existing CopyFile resource's state with the given name, ID, and optional extra
|
|
51
|
-
* properties used to qualify the lookup.
|
|
52
|
-
*
|
|
53
|
-
* @param name The _unique_ name of the resulting resource.
|
|
54
|
-
* @param id The _unique_ provider ID of the resource to lookup.
|
|
55
|
-
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
56
|
-
*/
|
|
57
|
-
static get(name, id, opts) {
|
|
58
|
-
return new CopyFile(name, undefined, Object.assign(Object.assign({}, opts), { id: id }));
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Returns true if the given object is an instance of CopyFile. This is designed to work even
|
|
62
|
-
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
63
|
-
*/
|
|
64
|
-
static isInstance(obj) {
|
|
65
|
-
if (obj === undefined || obj === null) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
return obj['__pulumiType'] === CopyFile.__pulumiType;
|
|
69
|
-
}
|
|
70
70
|
}
|
|
71
71
|
exports.CopyFile = CopyFile;
|
|
72
72
|
/** @internal */
|
package/remote/copyFile.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copyFile.js","sourceRoot":"","sources":["../../remote/copyFile.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"copyFile.js","sourceRoot":"","sources":["../../remote/copyFile.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;OAOG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,IAAmC;QAC5F,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,SAAgB,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IAmBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAAmC;QAC7E,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACV,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,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;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9EL,4BA+EC;AAlEG,gBAAgB;AACO,qBAAY,GAAG,yBAAyB,CAAC"}
|
package/remote/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { CommandArgs } from "./command";
|
|
2
|
-
export
|
|
2
|
+
export type Command = import("./command").Command;
|
|
3
3
|
export declare const Command: typeof import("./command").Command;
|
|
4
4
|
export { CopyFileArgs } from "./copyFile";
|
|
5
|
-
export
|
|
5
|
+
export type CopyFile = import("./copyFile").CopyFile;
|
|
6
6
|
export declare const CopyFile: typeof import("./copyFile").CopyFile;
|
package/types/input.d.ts
CHANGED
|
@@ -1,40 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare namespace remote {
|
|
3
|
-
/**
|
|
4
|
-
* Instructions for how to connect to a remote endpoint.
|
|
5
|
-
*/
|
|
6
|
-
interface ConnectionArgs {
|
|
7
|
-
/**
|
|
8
|
-
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
9
|
-
*/
|
|
10
|
-
agentSocketPath?: pulumi.Input<string>;
|
|
11
|
-
/**
|
|
12
|
-
* The address of the resource to connect to.
|
|
13
|
-
*/
|
|
14
|
-
host: pulumi.Input<string>;
|
|
15
|
-
/**
|
|
16
|
-
* The password we should use for the connection.
|
|
17
|
-
*/
|
|
18
|
-
password?: pulumi.Input<string>;
|
|
19
|
-
/**
|
|
20
|
-
* The port to connect to.
|
|
21
|
-
*/
|
|
22
|
-
port?: pulumi.Input<number>;
|
|
23
|
-
/**
|
|
24
|
-
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
25
|
-
*/
|
|
26
|
-
privateKey?: pulumi.Input<string>;
|
|
27
|
-
/**
|
|
28
|
-
* The password to use in case the private key is encrypted.
|
|
29
|
-
*/
|
|
30
|
-
privateKeyPassword?: pulumi.Input<string>;
|
|
31
|
-
/**
|
|
32
|
-
* The user that we should use for the connection.
|
|
33
|
-
*/
|
|
34
|
-
user?: pulumi.Input<string>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
|
|
38
|
-
*/
|
|
39
|
-
function connectionArgsProvideDefaults(val: ConnectionArgs): ConnectionArgs;
|
|
40
|
-
}
|
|
1
|
+
export * as remote from "./remote/input";
|
package/types/input.js
CHANGED
|
@@ -3,15 +3,5 @@
|
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.remote = void 0;
|
|
6
|
-
|
|
7
|
-
(function (remote) {
|
|
8
|
-
/**
|
|
9
|
-
* connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
|
|
10
|
-
*/
|
|
11
|
-
function connectionArgsProvideDefaults(val) {
|
|
12
|
-
var _a, _b;
|
|
13
|
-
return Object.assign(Object.assign({}, val), { port: (_a = (val.port)) !== null && _a !== void 0 ? _a : 22, user: (_b = (val.user)) !== null && _b !== void 0 ? _b : "root" });
|
|
14
|
-
}
|
|
15
|
-
remote.connectionArgsProvideDefaults = connectionArgsProvideDefaults;
|
|
16
|
-
})(remote = exports.remote || (exports.remote = {}));
|
|
6
|
+
exports.remote = require("./remote/input");
|
|
17
7
|
//# sourceMappingURL=input.js.map
|
package/types/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAOjF,2CAAyC"}
|
package/types/output.d.ts
CHANGED
|
@@ -1,39 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
/**
|
|
3
|
-
* Instructions for how to connect to a remote endpoint.
|
|
4
|
-
*/
|
|
5
|
-
interface Connection {
|
|
6
|
-
/**
|
|
7
|
-
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
8
|
-
*/
|
|
9
|
-
agentSocketPath?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The address of the resource to connect to.
|
|
12
|
-
*/
|
|
13
|
-
host: string;
|
|
14
|
-
/**
|
|
15
|
-
* The password we should use for the connection.
|
|
16
|
-
*/
|
|
17
|
-
password?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The port to connect to.
|
|
20
|
-
*/
|
|
21
|
-
port?: number;
|
|
22
|
-
/**
|
|
23
|
-
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
24
|
-
*/
|
|
25
|
-
privateKey?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The password to use in case the private key is encrypted.
|
|
28
|
-
*/
|
|
29
|
-
privateKeyPassword?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The user that we should use for the connection.
|
|
32
|
-
*/
|
|
33
|
-
user?: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* connectionProvideDefaults sets the appropriate defaults for Connection
|
|
37
|
-
*/
|
|
38
|
-
function connectionProvideDefaults(val: Connection): Connection;
|
|
39
|
-
}
|
|
1
|
+
export * as remote from "./remote/output";
|
package/types/output.js
CHANGED
|
@@ -3,15 +3,5 @@
|
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.remote = void 0;
|
|
6
|
-
|
|
7
|
-
(function (remote) {
|
|
8
|
-
/**
|
|
9
|
-
* connectionProvideDefaults sets the appropriate defaults for Connection
|
|
10
|
-
*/
|
|
11
|
-
function connectionProvideDefaults(val) {
|
|
12
|
-
var _a, _b;
|
|
13
|
-
return Object.assign(Object.assign({}, val), { port: (_a = (val.port)) !== null && _a !== void 0 ? _a : 22, user: (_b = (val.user)) !== null && _b !== void 0 ? _b : "root" });
|
|
14
|
-
}
|
|
15
|
-
remote.connectionProvideDefaults = connectionProvideDefaults;
|
|
16
|
-
})(remote = exports.remote || (exports.remote = {}));
|
|
6
|
+
exports.remote = require("./remote/output");
|
|
17
7
|
//# sourceMappingURL=output.js.map
|
package/types/output.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAOjF,4CAA0C"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/remote/index.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Instructions for how to connect to a remote endpoint.
|
|
4
|
+
*/
|
|
5
|
+
export interface ConnectionArgs {
|
|
6
|
+
/**
|
|
7
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
8
|
+
*/
|
|
9
|
+
agentSocketPath?: pulumi.Input<string>;
|
|
10
|
+
/**
|
|
11
|
+
* The address of the resource to connect to.
|
|
12
|
+
*/
|
|
13
|
+
host: pulumi.Input<string>;
|
|
14
|
+
/**
|
|
15
|
+
* The password we should use for the connection.
|
|
16
|
+
*/
|
|
17
|
+
password?: pulumi.Input<string>;
|
|
18
|
+
/**
|
|
19
|
+
* The port to connect to.
|
|
20
|
+
*/
|
|
21
|
+
port?: pulumi.Input<number>;
|
|
22
|
+
/**
|
|
23
|
+
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
24
|
+
*/
|
|
25
|
+
privateKey?: pulumi.Input<string>;
|
|
26
|
+
/**
|
|
27
|
+
* The password to use in case the private key is encrypted.
|
|
28
|
+
*/
|
|
29
|
+
privateKeyPassword?: pulumi.Input<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The user that we should use for the connection.
|
|
32
|
+
*/
|
|
33
|
+
user?: pulumi.Input<string>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
|
|
37
|
+
*/
|
|
38
|
+
export declare function connectionArgsProvideDefaults(val: ConnectionArgs): ConnectionArgs;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi. ***
|
|
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.connectionArgsProvideDefaults = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* connectionArgsProvideDefaults sets the appropriate defaults for ConnectionArgs
|
|
8
|
+
*/
|
|
9
|
+
function connectionArgsProvideDefaults(val) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
return Object.assign(Object.assign({}, val), { port: (_a = (val.port)) !== null && _a !== void 0 ? _a : 22, user: (_b = (val.user)) !== null && _b !== void 0 ? _b : "root" });
|
|
12
|
+
}
|
|
13
|
+
exports.connectionArgsProvideDefaults = connectionArgsProvideDefaults;
|
|
14
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../types/remote/input.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAwCjF;;GAEG;AACH,SAAgB,6BAA6B,CAAC,GAAmB;;IAC7D,uCACO,GAAG,KACN,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;AACN,CAAC;AAND,sEAMC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Instructions for how to connect to a remote endpoint.
|
|
3
|
+
*/
|
|
4
|
+
export interface Connection {
|
|
5
|
+
/**
|
|
6
|
+
* SSH Agent socket path. Default to environment variable SSH_AUTH_SOCK if present.
|
|
7
|
+
*/
|
|
8
|
+
agentSocketPath?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The address of the resource to connect to.
|
|
11
|
+
*/
|
|
12
|
+
host: string;
|
|
13
|
+
/**
|
|
14
|
+
* The password we should use for the connection.
|
|
15
|
+
*/
|
|
16
|
+
password?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The port to connect to.
|
|
19
|
+
*/
|
|
20
|
+
port?: number;
|
|
21
|
+
/**
|
|
22
|
+
* The contents of an SSH key to use for the connection. This takes preference over the password if provided.
|
|
23
|
+
*/
|
|
24
|
+
privateKey?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The password to use in case the private key is encrypted.
|
|
27
|
+
*/
|
|
28
|
+
privateKeyPassword?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The user that we should use for the connection.
|
|
31
|
+
*/
|
|
32
|
+
user?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* connectionProvideDefaults sets the appropriate defaults for Connection
|
|
36
|
+
*/
|
|
37
|
+
export declare function connectionProvideDefaults(val: Connection): Connection;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi. ***
|
|
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.connectionProvideDefaults = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* connectionProvideDefaults sets the appropriate defaults for Connection
|
|
8
|
+
*/
|
|
9
|
+
function connectionProvideDefaults(val) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
return Object.assign(Object.assign({}, val), { port: (_a = (val.port)) !== null && _a !== void 0 ? _a : 22, user: (_b = (val.user)) !== null && _b !== void 0 ? _b : "root" });
|
|
12
|
+
}
|
|
13
|
+
exports.connectionProvideDefaults = connectionProvideDefaults;
|
|
14
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../../types/remote/output.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,iFAAiF;;;AAwCjF;;GAEG;AACH,SAAgB,yBAAyB,CAAC,GAAe;;IACrD,uCACO,GAAG,KACN,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,EAAE,EACtB,IAAI,EAAE,MAAA,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,MAAM,IAC5B;AACN,CAAC;AAND,8DAMC"}
|