@mavogel/cdk-vscode-server 0.0.16 → 0.0.18
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 +62 -30
- package/.prettierrc +0 -0
- package/API.md +39 -7
- package/CONTRIBUTING.md +3 -1
- package/assets/installer/installer.lambda/index.js +28 -9
- package/integ-tests/integ.al2023.ts +4 -0
- 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 +38 -3
- package/lib/vscode-server.js +190 -150
- package/mavogelcdkvscodeserver/LinuxArchitectureType.go +2 -0
- package/mavogelcdkvscodeserver/LinuxFlavorType.go +3 -0
- package/mavogelcdkvscodeserver/VSCodeServer.go +3 -0
- package/mavogelcdkvscodeserver/VSCodeServerProps.go +1 -0
- 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": 140
|
|
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": 120
|
|
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": 166
|
|
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": 155
|
|
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": 159
|
|
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": 164
|
|
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": 24
|
|
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": 107
|
|
4220
4229
|
},
|
|
4221
4230
|
"name": "additionalInstanceRolePolicies",
|
|
4222
4231
|
"optional": true,
|
|
@@ -4229,6 +4238,29 @@
|
|
|
4229
4238
|
}
|
|
4230
4239
|
}
|
|
4231
4240
|
},
|
|
4241
|
+
{
|
|
4242
|
+
"abstract": true,
|
|
4243
|
+
"docs": {
|
|
4244
|
+
"default": "- {}",
|
|
4245
|
+
"stability": "stable",
|
|
4246
|
+
"summary": "Additional tags to add to the instance."
|
|
4247
|
+
},
|
|
4248
|
+
"immutable": true,
|
|
4249
|
+
"locationInModule": {
|
|
4250
|
+
"filename": "src/vscode-server.ts",
|
|
4251
|
+
"line": 114
|
|
4252
|
+
},
|
|
4253
|
+
"name": "additionalTags",
|
|
4254
|
+
"optional": true,
|
|
4255
|
+
"type": {
|
|
4256
|
+
"collection": {
|
|
4257
|
+
"elementtype": {
|
|
4258
|
+
"primitive": "string"
|
|
4259
|
+
},
|
|
4260
|
+
"kind": "map"
|
|
4261
|
+
}
|
|
4262
|
+
}
|
|
4263
|
+
},
|
|
4232
4264
|
{
|
|
4233
4265
|
"abstract": true,
|
|
4234
4266
|
"docs": {
|
|
@@ -4239,7 +4271,7 @@
|
|
|
4239
4271
|
"immutable": true,
|
|
4240
4272
|
"locationInModule": {
|
|
4241
4273
|
"filename": "src/vscode-server.ts",
|
|
4242
|
-
"line":
|
|
4274
|
+
"line": 93
|
|
4243
4275
|
},
|
|
4244
4276
|
"name": "devServerBasePath",
|
|
4245
4277
|
"optional": true,
|
|
@@ -4257,7 +4289,7 @@
|
|
|
4257
4289
|
"immutable": true,
|
|
4258
4290
|
"locationInModule": {
|
|
4259
4291
|
"filename": "src/vscode-server.ts",
|
|
4260
|
-
"line":
|
|
4292
|
+
"line": 100
|
|
4261
4293
|
},
|
|
4262
4294
|
"name": "devServerPort",
|
|
4263
4295
|
"optional": true,
|
|
@@ -4275,7 +4307,7 @@
|
|
|
4275
4307
|
"immutable": true,
|
|
4276
4308
|
"locationInModule": {
|
|
4277
4309
|
"filename": "src/vscode-server.ts",
|
|
4278
|
-
"line":
|
|
4310
|
+
"line": 86
|
|
4279
4311
|
},
|
|
4280
4312
|
"name": "homeFolder",
|
|
4281
4313
|
"optional": true,
|
|
@@ -4293,7 +4325,7 @@
|
|
|
4293
4325
|
"immutable": true,
|
|
4294
4326
|
"locationInModule": {
|
|
4295
4327
|
"filename": "src/vscode-server.ts",
|
|
4296
|
-
"line":
|
|
4328
|
+
"line": 58
|
|
4297
4329
|
},
|
|
4298
4330
|
"name": "instanceClass",
|
|
4299
4331
|
"optional": true,
|
|
@@ -4311,7 +4343,7 @@
|
|
|
4311
4343
|
"immutable": true,
|
|
4312
4344
|
"locationInModule": {
|
|
4313
4345
|
"filename": "src/vscode-server.ts",
|
|
4314
|
-
"line":
|
|
4346
|
+
"line": 79
|
|
4315
4347
|
},
|
|
4316
4348
|
"name": "instanceCpuArchitecture",
|
|
4317
4349
|
"optional": true,
|
|
@@ -4329,7 +4361,7 @@
|
|
|
4329
4361
|
"immutable": true,
|
|
4330
4362
|
"locationInModule": {
|
|
4331
4363
|
"filename": "src/vscode-server.ts",
|
|
4332
|
-
"line":
|
|
4364
|
+
"line": 44
|
|
4333
4365
|
},
|
|
4334
4366
|
"name": "instanceName",
|
|
4335
4367
|
"optional": true,
|
|
@@ -4347,7 +4379,7 @@
|
|
|
4347
4379
|
"immutable": true,
|
|
4348
4380
|
"locationInModule": {
|
|
4349
4381
|
"filename": "src/vscode-server.ts",
|
|
4350
|
-
"line":
|
|
4382
|
+
"line": 72
|
|
4351
4383
|
},
|
|
4352
4384
|
"name": "instanceOperatingSystem",
|
|
4353
4385
|
"optional": true,
|
|
@@ -4365,7 +4397,7 @@
|
|
|
4365
4397
|
"immutable": true,
|
|
4366
4398
|
"locationInModule": {
|
|
4367
4399
|
"filename": "src/vscode-server.ts",
|
|
4368
|
-
"line":
|
|
4400
|
+
"line": 65
|
|
4369
4401
|
},
|
|
4370
4402
|
"name": "instanceSize",
|
|
4371
4403
|
"optional": true,
|
|
@@ -4383,7 +4415,7 @@
|
|
|
4383
4415
|
"immutable": true,
|
|
4384
4416
|
"locationInModule": {
|
|
4385
4417
|
"filename": "src/vscode-server.ts",
|
|
4386
|
-
"line":
|
|
4418
|
+
"line": 51
|
|
4387
4419
|
},
|
|
4388
4420
|
"name": "instanceVolumeSize",
|
|
4389
4421
|
"optional": true,
|
|
@@ -4401,7 +4433,7 @@
|
|
|
4401
4433
|
"immutable": true,
|
|
4402
4434
|
"locationInModule": {
|
|
4403
4435
|
"filename": "src/vscode-server.ts",
|
|
4404
|
-
"line":
|
|
4436
|
+
"line": 37
|
|
4405
4437
|
},
|
|
4406
4438
|
"name": "vscodePassword",
|
|
4407
4439
|
"optional": true,
|
|
@@ -4419,7 +4451,7 @@
|
|
|
4419
4451
|
"immutable": true,
|
|
4420
4452
|
"locationInModule": {
|
|
4421
4453
|
"filename": "src/vscode-server.ts",
|
|
4422
|
-
"line":
|
|
4454
|
+
"line": 30
|
|
4423
4455
|
},
|
|
4424
4456
|
"name": "vscodeUser",
|
|
4425
4457
|
"optional": true,
|
|
@@ -4431,6 +4463,6 @@
|
|
|
4431
4463
|
"symbolId": "src/vscode-server:VSCodeServerProps"
|
|
4432
4464
|
}
|
|
4433
4465
|
},
|
|
4434
|
-
"version": "0.0.
|
|
4435
|
-
"fingerprint": "
|
|
4466
|
+
"version": "0.0.18",
|
|
4467
|
+
"fingerprint": "coYVkP79pe4GNqDe5OQZI6Ivb0ddPM3kkIeaezGSbq8="
|
|
4436
4468
|
}
|
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
|
|
@@ -140,6 +148,7 @@ const vSCodeServerProps: VSCodeServerProps = { ... }
|
|
|
140
148
|
| **Name** | **Type** | **Description** |
|
|
141
149
|
| --- | --- | --- |
|
|
142
150
|
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServerProps.property.additionalInstanceRolePolicies">additionalInstanceRolePolicies</a></code> | <code>aws-cdk-lib.aws_iam.PolicyStatement[]</code> | Additional instance role policies. |
|
|
151
|
+
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServerProps.property.additionalTags">additionalTags</a></code> | <code>{[ key: string ]: string}</code> | Additional tags to add to the instance. |
|
|
143
152
|
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServerProps.property.devServerBasePath">devServerBasePath</a></code> | <code>string</code> | Base path for the application to be added to Nginx sites-available list. |
|
|
144
153
|
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServerProps.property.devServerPort">devServerPort</a></code> | <code>number</code> | Port for the DevServer. |
|
|
145
154
|
| <code><a href="#@mavogel/cdk-vscode-server.VSCodeServerProps.property.homeFolder">homeFolder</a></code> | <code>string</code> | Folder to open in VS Code server. |
|
|
@@ -167,6 +176,19 @@ Additional instance role policies.
|
|
|
167
176
|
|
|
168
177
|
---
|
|
169
178
|
|
|
179
|
+
##### `additionalTags`<sup>Optional</sup> <a name="additionalTags" id="@mavogel/cdk-vscode-server.VSCodeServerProps.property.additionalTags"></a>
|
|
180
|
+
|
|
181
|
+
```typescript
|
|
182
|
+
public readonly additionalTags: {[ key: string ]: string};
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
- *Type:* {[ key: string ]: string}
|
|
186
|
+
- *Default:* {}
|
|
187
|
+
|
|
188
|
+
Additional tags to add to the instance.
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
170
192
|
##### `devServerBasePath`<sup>Optional</sup> <a name="devServerBasePath" id="@mavogel/cdk-vscode-server.VSCodeServerProps.property.devServerBasePath"></a>
|
|
171
193
|
|
|
172
194
|
```typescript
|
|
@@ -322,18 +344,22 @@ The architecture of the cpu you want to run vscode server on.
|
|
|
322
344
|
|
|
323
345
|
| **Name** | **Description** |
|
|
324
346
|
| --- | --- |
|
|
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> |
|
|
347
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxArchitectureType.ARM">ARM</a></code> | ARM architecture. |
|
|
348
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxArchitectureType.AMD64">AMD64</a></code> | AMD64 architecture. |
|
|
327
349
|
|
|
328
350
|
---
|
|
329
351
|
|
|
330
352
|
##### `ARM` <a name="ARM" id="@mavogel/cdk-vscode-server.LinuxArchitectureType.ARM"></a>
|
|
331
353
|
|
|
354
|
+
ARM architecture.
|
|
355
|
+
|
|
332
356
|
---
|
|
333
357
|
|
|
334
358
|
|
|
335
359
|
##### `AMD64` <a name="AMD64" id="@mavogel/cdk-vscode-server.LinuxArchitectureType.AMD64"></a>
|
|
336
360
|
|
|
361
|
+
AMD64 architecture.
|
|
362
|
+
|
|
337
363
|
---
|
|
338
364
|
|
|
339
365
|
|
|
@@ -345,23 +371,29 @@ The flavor of linux you want to run vscode server on.
|
|
|
345
371
|
|
|
346
372
|
| **Name** | **Description** |
|
|
347
373
|
| --- | --- |
|
|
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> |
|
|
374
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_22">UBUNTU_22</a></code> | Ubuntu 22. |
|
|
375
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_24">UBUNTU_24</a></code> | Ubuntu 24. |
|
|
376
|
+
| <code><a href="#@mavogel/cdk-vscode-server.LinuxFlavorType.AMAZON_LINUX_2023">AMAZON_LINUX_2023</a></code> | Amazon Linux 2023. |
|
|
351
377
|
|
|
352
378
|
---
|
|
353
379
|
|
|
354
380
|
##### `UBUNTU_22` <a name="UBUNTU_22" id="@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_22"></a>
|
|
355
381
|
|
|
382
|
+
Ubuntu 22.
|
|
383
|
+
|
|
356
384
|
---
|
|
357
385
|
|
|
358
386
|
|
|
359
387
|
##### `UBUNTU_24` <a name="UBUNTU_24" id="@mavogel/cdk-vscode-server.LinuxFlavorType.UBUNTU_24"></a>
|
|
360
388
|
|
|
389
|
+
Ubuntu 24.
|
|
390
|
+
|
|
361
391
|
---
|
|
362
392
|
|
|
363
393
|
|
|
364
394
|
##### `AMAZON_LINUX_2023` <a name="AMAZON_LINUX_2023" id="@mavogel/cdk-vscode-server.LinuxFlavorType.AMAZON_LINUX_2023"></a>
|
|
365
395
|
|
|
396
|
+
Amazon Linux 2023.
|
|
397
|
+
|
|
366
398
|
---
|
|
367
399
|
|
package/CONTRIBUTING.md
CHANGED
|
@@ -36,12 +36,14 @@ To send us a pull request, please:
|
|
|
36
36
|
5. Build the project -> `yarn run build` to also update the `API.md` file.
|
|
37
37
|
```bash
|
|
38
38
|
# do this within the container as we build jsii for multiple targets
|
|
39
|
-
docker run -it --rm -v $(pwd):/source -w /source --user 0:0 public.ecr.aws/jsii/superchain:1-bookworm-slim-
|
|
39
|
+
docker run -it --rm -v $(pwd):/source -w /source --user 0:0 public.ecr.aws/jsii/superchain:1-bookworm-slim-node22 bash
|
|
40
40
|
# clean node_modules for fresh dependencies for the OS within the container
|
|
41
41
|
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) {
|
|
@@ -20,6 +20,10 @@ const stackUnderTest = new Stack(app, 'IntegTestStackAl2023', {
|
|
|
20
20
|
const constructUnderTest = new VSCodeServer(stackUnderTest, 'IntegVSCodeServer', {
|
|
21
21
|
instanceOperatingSystem: LinuxFlavorType.AMAZON_LINUX_2023,
|
|
22
22
|
instanceVolumeSize: 20,
|
|
23
|
+
additionalTags: {
|
|
24
|
+
'IntegTest': 'True',
|
|
25
|
+
'Environement': 'IntegTestAl2023',
|
|
26
|
+
},
|
|
23
27
|
})
|
|
24
28
|
|
|
25
29
|
const integ = new IntegTest(app, 'IntegSetupVSCodeOnAl2023', {
|
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==
|