@mavogel/cdk-vscode-server 0.0.16 → 0.0.17
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/.jsii +39 -30
- package/.prettierrc +0 -0
- package/API.md +25 -7
- package/CONTRIBUTING.md +2 -0
- package/assets/installer/installer.lambda/index.js +28 -9
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/installer/installer.d.ts +1 -1
- package/lib/installer/installer.js +220 -230
- package/lib/installer/installer.lambda.d.ts +2 -2
- package/lib/installer/installer.lambda.js +16 -16
- package/lib/mappings.d.ts +1 -1
- package/lib/mappings.js +25 -7
- package/lib/prefixlist-retriever/prefixlist-retriever.d.ts +2 -2
- package/lib/prefixlist-retriever/prefixlist-retriever.js +17 -16
- package/lib/secret-retriever/secret-retriever.d.ts +2 -2
- package/lib/secret-retriever/secret-retriever.js +30 -24
- package/lib/secret-retriever/secret-retriever.lambda.d.ts +1 -1
- package/lib/secret-retriever/secret-retriever.lambda.js +6 -6
- package/lib/suppress-nags.d.ts +1 -1
- package/lib/suppress-nags.js +3 -3
- package/lib/vscode-server.d.ts +30 -3
- package/lib/vscode-server.js +175 -150
- package/mavogelcdkvscodeserver/jsii/jsii.go +2 -2
- package/mavogelcdkvscodeserver/version +1 -1
- package/package.json +6 -2
package/.jsii
CHANGED
|
@@ -4063,18 +4063,20 @@
|
|
|
4063
4063
|
"kind": "enum",
|
|
4064
4064
|
"locationInModule": {
|
|
4065
4065
|
"filename": "src/vscode-server.ts",
|
|
4066
|
-
"line":
|
|
4066
|
+
"line": 126
|
|
4067
4067
|
},
|
|
4068
4068
|
"members": [
|
|
4069
4069
|
{
|
|
4070
4070
|
"docs": {
|
|
4071
|
-
"stability": "stable"
|
|
4071
|
+
"stability": "stable",
|
|
4072
|
+
"summary": "ARM architecture."
|
|
4072
4073
|
},
|
|
4073
4074
|
"name": "ARM"
|
|
4074
4075
|
},
|
|
4075
4076
|
{
|
|
4076
4077
|
"docs": {
|
|
4077
|
-
"stability": "stable"
|
|
4078
|
+
"stability": "stable",
|
|
4079
|
+
"summary": "AMD64 architecture."
|
|
4078
4080
|
},
|
|
4079
4081
|
"name": "AMD64"
|
|
4080
4082
|
}
|
|
@@ -4092,24 +4094,27 @@
|
|
|
4092
4094
|
"kind": "enum",
|
|
4093
4095
|
"locationInModule": {
|
|
4094
4096
|
"filename": "src/vscode-server.ts",
|
|
4095
|
-
"line":
|
|
4097
|
+
"line": 106
|
|
4096
4098
|
},
|
|
4097
4099
|
"members": [
|
|
4098
4100
|
{
|
|
4099
4101
|
"docs": {
|
|
4100
|
-
"stability": "stable"
|
|
4102
|
+
"stability": "stable",
|
|
4103
|
+
"summary": "Ubuntu 22."
|
|
4101
4104
|
},
|
|
4102
4105
|
"name": "UBUNTU_22"
|
|
4103
4106
|
},
|
|
4104
4107
|
{
|
|
4105
4108
|
"docs": {
|
|
4106
|
-
"stability": "stable"
|
|
4109
|
+
"stability": "stable",
|
|
4110
|
+
"summary": "Ubuntu 24."
|
|
4107
4111
|
},
|
|
4108
4112
|
"name": "UBUNTU_24"
|
|
4109
4113
|
},
|
|
4110
4114
|
{
|
|
4111
4115
|
"docs": {
|
|
4112
|
-
"stability": "stable"
|
|
4116
|
+
"stability": "stable",
|
|
4117
|
+
"summary": "Amazon Linux 2023."
|
|
4113
4118
|
},
|
|
4114
4119
|
"name": "AMAZON_LINUX_2023"
|
|
4115
4120
|
}
|
|
@@ -4121,7 +4126,8 @@
|
|
|
4121
4126
|
"assembly": "@mavogel/cdk-vscode-server",
|
|
4122
4127
|
"base": "constructs.Construct",
|
|
4123
4128
|
"docs": {
|
|
4124
|
-
"stability": "stable"
|
|
4129
|
+
"stability": "stable",
|
|
4130
|
+
"summary": "VSCodeServer - spin it up in under 10 minutes."
|
|
4125
4131
|
},
|
|
4126
4132
|
"fqn": "@mavogel/cdk-vscode-server.VSCodeServer",
|
|
4127
4133
|
"initializer": {
|
|
@@ -4130,7 +4136,7 @@
|
|
|
4130
4136
|
},
|
|
4131
4137
|
"locationInModule": {
|
|
4132
4138
|
"filename": "src/vscode-server.ts",
|
|
4133
|
-
"line":
|
|
4139
|
+
"line": 152
|
|
4134
4140
|
},
|
|
4135
4141
|
"parameters": [
|
|
4136
4142
|
{
|
|
@@ -4157,18 +4163,19 @@
|
|
|
4157
4163
|
"kind": "class",
|
|
4158
4164
|
"locationInModule": {
|
|
4159
4165
|
"filename": "src/vscode-server.ts",
|
|
4160
|
-
"line":
|
|
4166
|
+
"line": 141
|
|
4161
4167
|
},
|
|
4162
4168
|
"name": "VSCodeServer",
|
|
4163
4169
|
"properties": [
|
|
4164
4170
|
{
|
|
4165
4171
|
"docs": {
|
|
4166
|
-
"stability": "stable"
|
|
4172
|
+
"stability": "stable",
|
|
4173
|
+
"summary": "The name of the domain the server is reachable."
|
|
4167
4174
|
},
|
|
4168
4175
|
"immutable": true,
|
|
4169
4176
|
"locationInModule": {
|
|
4170
4177
|
"filename": "src/vscode-server.ts",
|
|
4171
|
-
"line":
|
|
4178
|
+
"line": 145
|
|
4172
4179
|
},
|
|
4173
4180
|
"name": "domainName",
|
|
4174
4181
|
"type": {
|
|
@@ -4177,12 +4184,13 @@
|
|
|
4177
4184
|
},
|
|
4178
4185
|
{
|
|
4179
4186
|
"docs": {
|
|
4180
|
-
"stability": "stable"
|
|
4187
|
+
"stability": "stable",
|
|
4188
|
+
"summary": "The password to login to the server."
|
|
4181
4189
|
},
|
|
4182
4190
|
"immutable": true,
|
|
4183
4191
|
"locationInModule": {
|
|
4184
4192
|
"filename": "src/vscode-server.ts",
|
|
4185
|
-
"line":
|
|
4193
|
+
"line": 150
|
|
4186
4194
|
},
|
|
4187
4195
|
"name": "password",
|
|
4188
4196
|
"type": {
|
|
@@ -4196,13 +4204,14 @@
|
|
|
4196
4204
|
"assembly": "@mavogel/cdk-vscode-server",
|
|
4197
4205
|
"datatype": true,
|
|
4198
4206
|
"docs": {
|
|
4199
|
-
"stability": "stable"
|
|
4207
|
+
"stability": "stable",
|
|
4208
|
+
"summary": "Properties for the VSCodeServer construct."
|
|
4200
4209
|
},
|
|
4201
4210
|
"fqn": "@mavogel/cdk-vscode-server.VSCodeServerProps",
|
|
4202
4211
|
"kind": "interface",
|
|
4203
4212
|
"locationInModule": {
|
|
4204
4213
|
"filename": "src/vscode-server.ts",
|
|
4205
|
-
"line":
|
|
4214
|
+
"line": 17
|
|
4206
4215
|
},
|
|
4207
4216
|
"name": "VSCodeServerProps",
|
|
4208
4217
|
"properties": [
|
|
@@ -4216,7 +4225,7 @@
|
|
|
4216
4225
|
"immutable": true,
|
|
4217
4226
|
"locationInModule": {
|
|
4218
4227
|
"filename": "src/vscode-server.ts",
|
|
4219
|
-
"line":
|
|
4228
|
+
"line": 100
|
|
4220
4229
|
},
|
|
4221
4230
|
"name": "additionalInstanceRolePolicies",
|
|
4222
4231
|
"optional": true,
|
|
@@ -4239,7 +4248,7 @@
|
|
|
4239
4248
|
"immutable": true,
|
|
4240
4249
|
"locationInModule": {
|
|
4241
4250
|
"filename": "src/vscode-server.ts",
|
|
4242
|
-
"line":
|
|
4251
|
+
"line": 86
|
|
4243
4252
|
},
|
|
4244
4253
|
"name": "devServerBasePath",
|
|
4245
4254
|
"optional": true,
|
|
@@ -4257,7 +4266,7 @@
|
|
|
4257
4266
|
"immutable": true,
|
|
4258
4267
|
"locationInModule": {
|
|
4259
4268
|
"filename": "src/vscode-server.ts",
|
|
4260
|
-
"line":
|
|
4269
|
+
"line": 93
|
|
4261
4270
|
},
|
|
4262
4271
|
"name": "devServerPort",
|
|
4263
4272
|
"optional": true,
|
|
@@ -4275,7 +4284,7 @@
|
|
|
4275
4284
|
"immutable": true,
|
|
4276
4285
|
"locationInModule": {
|
|
4277
4286
|
"filename": "src/vscode-server.ts",
|
|
4278
|
-
"line":
|
|
4287
|
+
"line": 79
|
|
4279
4288
|
},
|
|
4280
4289
|
"name": "homeFolder",
|
|
4281
4290
|
"optional": true,
|
|
@@ -4293,7 +4302,7 @@
|
|
|
4293
4302
|
"immutable": true,
|
|
4294
4303
|
"locationInModule": {
|
|
4295
4304
|
"filename": "src/vscode-server.ts",
|
|
4296
|
-
"line":
|
|
4305
|
+
"line": 51
|
|
4297
4306
|
},
|
|
4298
4307
|
"name": "instanceClass",
|
|
4299
4308
|
"optional": true,
|
|
@@ -4311,7 +4320,7 @@
|
|
|
4311
4320
|
"immutable": true,
|
|
4312
4321
|
"locationInModule": {
|
|
4313
4322
|
"filename": "src/vscode-server.ts",
|
|
4314
|
-
"line":
|
|
4323
|
+
"line": 72
|
|
4315
4324
|
},
|
|
4316
4325
|
"name": "instanceCpuArchitecture",
|
|
4317
4326
|
"optional": true,
|
|
@@ -4329,7 +4338,7 @@
|
|
|
4329
4338
|
"immutable": true,
|
|
4330
4339
|
"locationInModule": {
|
|
4331
4340
|
"filename": "src/vscode-server.ts",
|
|
4332
|
-
"line":
|
|
4341
|
+
"line": 37
|
|
4333
4342
|
},
|
|
4334
4343
|
"name": "instanceName",
|
|
4335
4344
|
"optional": true,
|
|
@@ -4347,7 +4356,7 @@
|
|
|
4347
4356
|
"immutable": true,
|
|
4348
4357
|
"locationInModule": {
|
|
4349
4358
|
"filename": "src/vscode-server.ts",
|
|
4350
|
-
"line":
|
|
4359
|
+
"line": 65
|
|
4351
4360
|
},
|
|
4352
4361
|
"name": "instanceOperatingSystem",
|
|
4353
4362
|
"optional": true,
|
|
@@ -4365,7 +4374,7 @@
|
|
|
4365
4374
|
"immutable": true,
|
|
4366
4375
|
"locationInModule": {
|
|
4367
4376
|
"filename": "src/vscode-server.ts",
|
|
4368
|
-
"line":
|
|
4377
|
+
"line": 58
|
|
4369
4378
|
},
|
|
4370
4379
|
"name": "instanceSize",
|
|
4371
4380
|
"optional": true,
|
|
@@ -4383,7 +4392,7 @@
|
|
|
4383
4392
|
"immutable": true,
|
|
4384
4393
|
"locationInModule": {
|
|
4385
4394
|
"filename": "src/vscode-server.ts",
|
|
4386
|
-
"line":
|
|
4395
|
+
"line": 44
|
|
4387
4396
|
},
|
|
4388
4397
|
"name": "instanceVolumeSize",
|
|
4389
4398
|
"optional": true,
|
|
@@ -4401,7 +4410,7 @@
|
|
|
4401
4410
|
"immutable": true,
|
|
4402
4411
|
"locationInModule": {
|
|
4403
4412
|
"filename": "src/vscode-server.ts",
|
|
4404
|
-
"line":
|
|
4413
|
+
"line": 30
|
|
4405
4414
|
},
|
|
4406
4415
|
"name": "vscodePassword",
|
|
4407
4416
|
"optional": true,
|
|
@@ -4419,7 +4428,7 @@
|
|
|
4419
4428
|
"immutable": true,
|
|
4420
4429
|
"locationInModule": {
|
|
4421
4430
|
"filename": "src/vscode-server.ts",
|
|
4422
|
-
"line":
|
|
4431
|
+
"line": 23
|
|
4423
4432
|
},
|
|
4424
4433
|
"name": "vscodeUser",
|
|
4425
4434
|
"optional": true,
|
|
@@ -4431,6 +4440,6 @@
|
|
|
4431
4440
|
"symbolId": "src/vscode-server:VSCodeServerProps"
|
|
4432
4441
|
}
|
|
4433
4442
|
},
|
|
4434
|
-
"version": "0.0.
|
|
4435
|
-
"fingerprint": "
|
|
4443
|
+
"version": "0.0.17",
|
|
4444
|
+
"fingerprint": "XZcOeSonCyNwBoAj2hvha02opSURKTwe/TR/rQGBTb4="
|
|
4436
4445
|
}
|
package/.prettierrc
ADDED
|
File without changes
|
package/API.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
### VSCodeServer <a name="VSCodeServer" id="@mavogel/cdk-vscode-server.VSCodeServer"></a>
|
|
6
6
|
|
|
7
|
+
VSCodeServer - spin it up in under 10 minutes.
|
|
8
|
+
|
|
7
9
|
#### Initializers <a name="Initializers" id="@mavogel/cdk-vscode-server.VSCodeServer.Initializer"></a>
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -85,8 +87,8 @@ Any object.
|
|
|
85
87
|
| **Name** | **Type** | **Description** |
|
|
86
88
|
| --- | --- | --- |
|
|
87
89
|
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServer.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
|
|
88
|
-
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServer.property.domainName">domainName</a></code> | <code>string</code> |
|
|
89
|
-
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServer.property.password">password</a></code> | <code>string</code> |
|
|
90
|
+
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServer.property.domainName">domainName</a></code> | <code>string</code> | The name of the domain the server is reachable. |
|
|
91
|
+
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServer.property.password">password</a></code> | <code>string</code> | The password to login to the server. |
|
|
90
92
|
|
|
91
93
|
---
|
|
92
94
|
|
|
@@ -110,6 +112,8 @@ public readonly domainName: string;
|
|
|
110
112
|
|
|
111
113
|
- *Type:* string
|
|
112
114
|
|
|
115
|
+
The name of the domain the server is reachable.
|
|
116
|
+
|
|
113
117
|
---
|
|
114
118
|
|
|
115
119
|
##### `password`<sup>Required</sup> <a name="password" id="@mavogel/cdk-vscode-server.VSCodeServer.property.password"></a>
|
|
@@ -120,6 +124,8 @@ public readonly password: string;
|
|
|
120
124
|
|
|
121
125
|
- *Type:* string
|
|
122
126
|
|
|
127
|
+
The password to login to the server.
|
|
128
|
+
|
|
123
129
|
---
|
|
124
130
|
|
|
125
131
|
|
|
@@ -127,6 +133,8 @@ public readonly password: string;
|
|
|
127
133
|
|
|
128
134
|
### VSCodeServerProps <a name="VSCodeServerProps" id="@mavogel/cdk-vscode-server.VSCodeServerProps"></a>
|
|
129
135
|
|
|
136
|
+
Properties for the VSCodeServer construct.
|
|
137
|
+
|
|
130
138
|
#### Initializer <a name="Initializer" id="@mavogel/cdk-vscode-server.VSCodeServerProps.Initializer"></a>
|
|
131
139
|
|
|
132
140
|
```typescript
|
|
@@ -322,18 +330,22 @@ The architecture of the cpu you want to run vscode server on.
|
|
|
322
330
|
|
|
323
331
|
| **Name** | **Description** |
|
|
324
332
|
| --- | --- |
|
|
325
|
-
| <code><a href="#@mavogel/cdk-vscode-server.LinuxArchitectureType.ARM">ARM</a></code> |
|
|
326
|
-
| <code><a href="#@mavogel/cdk-vscode-server.LinuxArchitectureType.AMD64">AMD64</a></code> |
|
|
333
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxArchitectureType.ARM">ARM</a></code> | ARM architecture. |
|
|
334
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxArchitectureType.AMD64">AMD64</a></code> | AMD64 architecture. |
|
|
327
335
|
|
|
328
336
|
---
|
|
329
337
|
|
|
330
338
|
##### `ARM` <a name="ARM" id="@mavogel/cdk-vscode-server.LinuxArchitectureType.ARM"></a>
|
|
331
339
|
|
|
340
|
+
ARM architecture.
|
|
341
|
+
|
|
332
342
|
---
|
|
333
343
|
|
|
334
344
|
|
|
335
345
|
##### `AMD64` <a name="AMD64" id="@mavogel/cdk-vscode-server.LinuxArchitectureType.AMD64"></a>
|
|
336
346
|
|
|
347
|
+
AMD64 architecture.
|
|
348
|
+
|
|
337
349
|
---
|
|
338
350
|
|
|
339
351
|
|
|
@@ -345,23 +357,29 @@ The flavor of linux you want to run vscode server on.
|
|
|
345
357
|
|
|
346
358
|
| **Name** | **Description** |
|
|
347
359
|
| --- | --- |
|
|
348
|
-
| <code><a href="#@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_22">UBUNTU_22</a></code> |
|
|
349
|
-
| <code><a href="#@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_24">UBUNTU_24</a></code> |
|
|
350
|
-
| <code><a href="#@mavogel/cdk-vscode-server.LinuxFlavorType.AMAZON_LINUX_2023">AMAZON_LINUX_2023</a></code> |
|
|
360
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_22">UBUNTU_22</a></code> | Ubuntu 22. |
|
|
361
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_24">UBUNTU_24</a></code> | Ubuntu 24. |
|
|
362
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxFlavorType.AMAZON_LINUX_2023">AMAZON_LINUX_2023</a></code> | Amazon Linux 2023. |
|
|
351
363
|
|
|
352
364
|
---
|
|
353
365
|
|
|
354
366
|
##### `UBUNTU_22` <a name="UBUNTU_22" id="@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_22"></a>
|
|
355
367
|
|
|
368
|
+
Ubuntu 22.
|
|
369
|
+
|
|
356
370
|
---
|
|
357
371
|
|
|
358
372
|
|
|
359
373
|
##### `UBUNTU_24` <a name="UBUNTU_24" id="@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_24"></a>
|
|
360
374
|
|
|
375
|
+
Ubuntu 24.
|
|
376
|
+
|
|
361
377
|
---
|
|
362
378
|
|
|
363
379
|
|
|
364
380
|
##### `AMAZON_LINUX_2023` <a name="AMAZON_LINUX_2023" id="@mavogel/cdk-vscode-server.LinuxFlavorType.AMAZON_LINUX_2023"></a>
|
|
365
381
|
|
|
382
|
+
Amazon Linux 2023.
|
|
383
|
+
|
|
366
384
|
---
|
|
367
385
|
|
package/CONTRIBUTING.md
CHANGED
|
@@ -42,6 +42,8 @@ rm -rf node_modules
|
|
|
42
42
|
yarn install
|
|
43
43
|
# now build it
|
|
44
44
|
yarn run build
|
|
45
|
+
# also check for awscdk linting, which checks the API.md
|
|
46
|
+
yarn post-eslint
|
|
45
47
|
```
|
|
46
48
|
6. Commit to your fork using clear commit messages.
|
|
47
49
|
7. Send us a pull request, answering any default questions in the pull request interface.
|
|
@@ -50,7 +50,10 @@ var handler = async (event, context) => {
|
|
|
50
50
|
if (resourcePropertiesPartial.PhysicalResourceId) {
|
|
51
51
|
delete resourcePropertiesPartial.PhysicalResourceId;
|
|
52
52
|
}
|
|
53
|
-
console.log(
|
|
53
|
+
console.log(
|
|
54
|
+
"ResourceProperties filtered after: %j",
|
|
55
|
+
resourcePropertiesPartial
|
|
56
|
+
);
|
|
54
57
|
const parameters = {};
|
|
55
58
|
for (const [key, value] of Object.entries(resourcePropertiesPartial)) {
|
|
56
59
|
parameters[key] = [value];
|
|
@@ -58,10 +61,14 @@ var handler = async (event, context) => {
|
|
|
58
61
|
console.log("mapped parameters: %j", parameters);
|
|
59
62
|
let attemptNo = 0;
|
|
60
63
|
let timeRemaining = context.getRemainingTimeInMillis();
|
|
61
|
-
console.log(
|
|
64
|
+
console.log(
|
|
65
|
+
`Running SSM Document '${documentName}' on EC2 instance '${instanceId}'. Logging to '${cloudWatchLogGroupName}' with parameters: '${JSON.stringify(parameters)}'`
|
|
66
|
+
);
|
|
62
67
|
while (true) {
|
|
63
68
|
attemptNo += 1;
|
|
64
|
-
console.log(
|
|
69
|
+
console.log(
|
|
70
|
+
`Attempt: ${attemptNo}. Time Remaining: ${timeRemaining / 1e3}s`
|
|
71
|
+
);
|
|
65
72
|
try {
|
|
66
73
|
const response = await ssm.sendCommand({
|
|
67
74
|
DocumentName: documentName,
|
|
@@ -81,23 +88,35 @@ var handler = async (event, context) => {
|
|
|
81
88
|
case "InProgress":
|
|
82
89
|
timeRemaining = context.getRemainingTimeInMillis();
|
|
83
90
|
if (timeRemaining > SLEEP_MS) {
|
|
84
|
-
console.log(
|
|
91
|
+
console.log(
|
|
92
|
+
`Instance ${instanceId} not ready: 'InProgress'. Sleeping: ${SLEEP_MS / 1e3}s`
|
|
93
|
+
);
|
|
85
94
|
await new Promise((resolve) => setTimeout(resolve, SLEEP_MS));
|
|
86
95
|
break;
|
|
87
96
|
} else {
|
|
88
|
-
throw new Error(
|
|
97
|
+
throw new Error(
|
|
98
|
+
`SSM Document ${documentName} on EC2 instance ${instanceId} timed out while lambda in progress`
|
|
99
|
+
);
|
|
89
100
|
}
|
|
90
101
|
case "Success":
|
|
91
102
|
console.log(`Instance ${instanceId} successfully bootstrapped`);
|
|
92
103
|
return { Data: responseData };
|
|
93
104
|
case "TimedOut":
|
|
94
|
-
throw new Error(
|
|
105
|
+
throw new Error(
|
|
106
|
+
`SSM Document ${documentName} on EC2 instance ${instanceId} timed out`
|
|
107
|
+
);
|
|
95
108
|
case "Cancelled":
|
|
96
|
-
throw new Error(
|
|
109
|
+
throw new Error(
|
|
110
|
+
`SSM Document ${documentName} on EC2 instance ${instanceId} cancelled`
|
|
111
|
+
);
|
|
97
112
|
case "Failed":
|
|
98
|
-
throw new Error(
|
|
113
|
+
throw new Error(
|
|
114
|
+
`SSM Document ${documentName} on EC2 instance ${instanceId} failed`
|
|
115
|
+
);
|
|
99
116
|
default:
|
|
100
|
-
throw new Error(
|
|
117
|
+
throw new Error(
|
|
118
|
+
`SSM Document ${documentName} on EC2 instance ${instanceId} status ${command.Status}`
|
|
119
|
+
);
|
|
101
120
|
}
|
|
102
121
|
return { Data: responseData };
|
|
103
122
|
} catch (error) {
|
package/lib/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./vscode-server";
|
package/lib/index.js
CHANGED
|
@@ -15,4 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./vscode-server"), exports);
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLGtEQUFnQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL3ZzY29kZS1zZXJ2ZXJcIjtcbiJdfQ==
|