@mavogel/cdk-vscode-server 0.1.1 → 0.1.3
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 +125 -51
- package/AGENTS.md +12 -0
- package/API.md +64 -0
- package/README.md +16 -0
- package/integ-tests/expire-assertion-logs.ts +26 -0
- package/integ-tests/integ.al2023.ts +11 -2
- package/integ-tests/integ.al2023.ts.snapshot/IntegSetupVSCodeOnAl2023DefaultTestDeployAssert74D8F645.assets.json +3 -3
- package/integ-tests/integ.al2023.ts.snapshot/IntegSetupVSCodeOnAl2023DefaultTestDeployAssert74D8F645.metadata.json +15 -0
- package/integ-tests/integ.al2023.ts.snapshot/IntegSetupVSCodeOnAl2023DefaultTestDeployAssert74D8F645.template.json +13 -2
- package/integ-tests/integ.al2023.ts.snapshot/IntegTestStackAl2023.assets.json +13 -13
- package/integ-tests/integ.al2023.ts.snapshot/IntegTestStackAl2023.metadata.json +260 -174
- package/integ-tests/integ.al2023.ts.snapshot/IntegTestStackAl2023.template.json +318 -189
- package/integ-tests/integ.al2023.ts.snapshot/integ.json +1 -1
- package/integ-tests/integ.al2023.ts.snapshot/manifest.json +2 -2
- package/integ-tests/integ.al2023.ts.snapshot/tree.json +1 -1
- package/integ-tests/integ.custom-domain.ts +10 -1
- package/integ-tests/integ.custom-domain.ts.snapshot/IntegSetupVSCodeOnCustomDomainDefaultTestDeployAssert6982D514.assets.json +3 -3
- package/integ-tests/integ.custom-domain.ts.snapshot/IntegSetupVSCodeOnCustomDomainDefaultTestDeployAssert6982D514.metadata.json +15 -0
- package/integ-tests/integ.custom-domain.ts.snapshot/IntegSetupVSCodeOnCustomDomainDefaultTestDeployAssert6982D514.template.json +13 -2
- package/integ-tests/integ.custom-domain.ts.snapshot/IntegTestStackCustomDomain.assets.json +13 -13
- package/integ-tests/integ.custom-domain.ts.snapshot/IntegTestStackCustomDomain.metadata.json +281 -194
- package/integ-tests/integ.custom-domain.ts.snapshot/IntegTestStackCustomDomain.template.json +358 -221
- package/integ-tests/integ.custom-domain.ts.snapshot/integ.json +1 -1
- package/integ-tests/integ.custom-domain.ts.snapshot/manifest.json +2 -2
- package/integ-tests/integ.custom-domain.ts.snapshot/tree.json +1 -1
- package/integ-tests/integ.stop-on-idle.ts +14 -2
- package/integ-tests/integ.stop-on-idle.ts.snapshot/IntegStopOnIdleFunctionalityDefaultTestDeployAssertEECF3FC0.assets.json +3 -3
- package/integ-tests/integ.stop-on-idle.ts.snapshot/IntegStopOnIdleFunctionalityDefaultTestDeployAssertEECF3FC0.metadata.json +15 -0
- package/integ-tests/integ.stop-on-idle.ts.snapshot/IntegStopOnIdleFunctionalityDefaultTestDeployAssertEECF3FC0.template.json +16 -5
- package/integ-tests/integ.stop-on-idle.ts.snapshot/IntegTestStackStopOnIdle.assets.json +17 -17
- package/integ-tests/integ.stop-on-idle.ts.snapshot/IntegTestStackStopOnIdle.metadata.json +310 -203
- package/integ-tests/integ.stop-on-idle.ts.snapshot/IntegTestStackStopOnIdle.template.json +386 -254
- package/integ-tests/integ.stop-on-idle.ts.snapshot/manifest.json +2 -2
- package/integ-tests/integ.stop-on-idle.ts.snapshot/tree.json +1 -1
- package/integ-tests/integ.ubuntu24.ts +11 -2
- package/integ-tests/integ.ubuntu24.ts.snapshot/IntegSetupVSCodeOnUbuntuDefaultTestDeployAssertFF8DF2C5.assets.json +3 -3
- package/integ-tests/integ.ubuntu24.ts.snapshot/IntegSetupVSCodeOnUbuntuDefaultTestDeployAssertFF8DF2C5.metadata.json +15 -0
- package/integ-tests/integ.ubuntu24.ts.snapshot/IntegSetupVSCodeOnUbuntuDefaultTestDeployAssertFF8DF2C5.template.json +13 -2
- package/integ-tests/integ.ubuntu24.ts.snapshot/IntegTestStackUbuntu24.assets.json +13 -13
- package/integ-tests/integ.ubuntu24.ts.snapshot/IntegTestStackUbuntu24.metadata.json +260 -174
- package/integ-tests/integ.ubuntu24.ts.snapshot/IntegTestStackUbuntu24.template.json +302 -173
- package/integ-tests/integ.ubuntu24.ts.snapshot/integ.json +1 -1
- package/integ-tests/integ.ubuntu24.ts.snapshot/manifest.json +2 -2
- package/integ-tests/integ.ubuntu24.ts.snapshot/tree.json +1 -1
- package/integ-tests/integ.ubuntu26.ts +11 -2
- package/integ-tests/integ.ubuntu26.ts.snapshot/IntegSetupVSCodeOnUbuntu26DefaultTestDeployAssertD888890F.assets.json +3 -3
- package/integ-tests/integ.ubuntu26.ts.snapshot/IntegSetupVSCodeOnUbuntu26DefaultTestDeployAssertD888890F.metadata.json +15 -0
- package/integ-tests/integ.ubuntu26.ts.snapshot/IntegSetupVSCodeOnUbuntu26DefaultTestDeployAssertD888890F.template.json +13 -2
- package/integ-tests/integ.ubuntu26.ts.snapshot/IntegTestStackUbuntu26.assets.json +13 -13
- package/integ-tests/integ.ubuntu26.ts.snapshot/IntegTestStackUbuntu26.metadata.json +260 -174
- package/integ-tests/integ.ubuntu26.ts.snapshot/IntegTestStackUbuntu26.template.json +302 -173
- package/integ-tests/integ.ubuntu26.ts.snapshot/integ.json +1 -1
- package/integ-tests/integ.ubuntu26.ts.snapshot/manifest.json +2 -2
- package/integ-tests/integ.ubuntu26.ts.snapshot/tree.json +1 -1
- package/lib/idle-monitor/idle-monitor.d.ts +14 -0
- package/lib/idle-monitor/idle-monitor.js +4 -2
- package/lib/idle-monitor-enabler/idle-monitor-enabler.d.ts +14 -0
- package/lib/idle-monitor-enabler/idle-monitor-enabler.js +6 -2
- package/lib/installer/installer.d.ts +15 -0
- package/lib/installer/installer.js +36 -2
- package/lib/log-groups.d.ts +38 -0
- package/lib/log-groups.js +85 -0
- package/lib/prefixlist-retriever/prefixlist-retriever.d.ts +15 -1
- package/lib/prefixlist-retriever/prefixlist-retriever.js +4 -7
- package/lib/secret-retriever/secret-retriever.d.ts +14 -0
- package/lib/secret-retriever/secret-retriever.js +8 -1
- package/lib/vscode-server.d.ts +22 -0
- package/lib/vscode-server.js +35 -3
- package/mavogelcdkvscodeserver/go.mod +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,31 @@
|
|
|
26
26
|
}
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
|
+
"DependsOn": [
|
|
30
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
31
|
+
],
|
|
32
|
+
"UpdateReplacePolicy": "Delete",
|
|
33
|
+
"DeletionPolicy": "Delete"
|
|
34
|
+
},
|
|
35
|
+
"IntegVSCodeServerSecretRetrieverOnEventLogGroup85022BA4": {
|
|
36
|
+
"Type": "AWS::Logs::LogGroup",
|
|
37
|
+
"Properties": {
|
|
38
|
+
"RetentionInDays": 5,
|
|
39
|
+
"Tags": [
|
|
40
|
+
{
|
|
41
|
+
"Key": "app",
|
|
42
|
+
"Value": "vscode-server"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"Key": "IntegTest",
|
|
46
|
+
"Value": "True"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"Key": "TestType",
|
|
50
|
+
"Value": "StopOnIdle"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
29
54
|
"UpdateReplacePolicy": "Delete",
|
|
30
55
|
"DeletionPolicy": "Delete"
|
|
31
56
|
},
|
|
@@ -58,7 +83,10 @@
|
|
|
58
83
|
]
|
|
59
84
|
}
|
|
60
85
|
]
|
|
61
|
-
}
|
|
86
|
+
},
|
|
87
|
+
"DependsOn": [
|
|
88
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
89
|
+
]
|
|
62
90
|
},
|
|
63
91
|
"IntegVSCodeServerSecretRetrieverOnEventHandlerServiceRoleDefaultPolicy2641E2C6": {
|
|
64
92
|
"Type": "AWS::IAM::Policy",
|
|
@@ -81,7 +109,10 @@
|
|
|
81
109
|
"Ref": "IntegVSCodeServerSecretRetrieverOnEventHandlerServiceRoleBEF8D4D2"
|
|
82
110
|
}
|
|
83
111
|
]
|
|
84
|
-
}
|
|
112
|
+
},
|
|
113
|
+
"DependsOn": [
|
|
114
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
115
|
+
]
|
|
85
116
|
},
|
|
86
117
|
"IntegVSCodeServerSecretRetrieverOnEventHandlerDD084AE3": {
|
|
87
118
|
"Type": "AWS::Lambda::Function",
|
|
@@ -94,6 +125,11 @@
|
|
|
94
125
|
},
|
|
95
126
|
"Description": "src/secret-retriever/secret-retriever.lambda.ts",
|
|
96
127
|
"Handler": "index.handler",
|
|
128
|
+
"LoggingConfig": {
|
|
129
|
+
"LogGroup": {
|
|
130
|
+
"Ref": "IntegVSCodeServerSecretRetrieverOnEventLogGroup85022BA4"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
97
133
|
"MemorySize": 128,
|
|
98
134
|
"Role": {
|
|
99
135
|
"Fn::GetAtt": [
|
|
@@ -105,25 +141,15 @@
|
|
|
105
141
|
"Timeout": 10
|
|
106
142
|
},
|
|
107
143
|
"DependsOn": [
|
|
144
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
108
145
|
"IntegVSCodeServerSecretRetrieverOnEventHandlerServiceRoleDefaultPolicy2641E2C6",
|
|
109
146
|
"IntegVSCodeServerSecretRetrieverOnEventHandlerServiceRoleBEF8D4D2"
|
|
110
147
|
]
|
|
111
148
|
},
|
|
112
|
-
"
|
|
149
|
+
"IntegVSCodeServerSecretRetrieveProviderLogGroupCA7357BF": {
|
|
113
150
|
"Type": "AWS::Logs::LogGroup",
|
|
114
151
|
"Properties": {
|
|
115
|
-
"
|
|
116
|
-
"Fn::Join": [
|
|
117
|
-
"",
|
|
118
|
-
[
|
|
119
|
-
"/aws/lambda/",
|
|
120
|
-
{
|
|
121
|
-
"Ref": "IntegVSCodeServerSecretRetrieverOnEventHandlerDD084AE3"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
"RetentionInDays": 731,
|
|
152
|
+
"RetentionInDays": 5,
|
|
127
153
|
"Tags": [
|
|
128
154
|
{
|
|
129
155
|
"Key": "app",
|
|
@@ -139,8 +165,8 @@
|
|
|
139
165
|
}
|
|
140
166
|
]
|
|
141
167
|
},
|
|
142
|
-
"UpdateReplacePolicy": "
|
|
143
|
-
"DeletionPolicy": "
|
|
168
|
+
"UpdateReplacePolicy": "Delete",
|
|
169
|
+
"DeletionPolicy": "Delete"
|
|
144
170
|
},
|
|
145
171
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRole0F156B64": {
|
|
146
172
|
"Type": "AWS::IAM::Role",
|
|
@@ -171,7 +197,10 @@
|
|
|
171
197
|
]
|
|
172
198
|
}
|
|
173
199
|
]
|
|
174
|
-
}
|
|
200
|
+
},
|
|
201
|
+
"DependsOn": [
|
|
202
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
203
|
+
]
|
|
175
204
|
},
|
|
176
205
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRoleDefaultPolicyEC4DCEA0": {
|
|
177
206
|
"Type": "AWS::IAM::Policy",
|
|
@@ -223,7 +252,10 @@
|
|
|
223
252
|
"Ref": "IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRole0F156B64"
|
|
224
253
|
}
|
|
225
254
|
]
|
|
226
|
-
}
|
|
255
|
+
},
|
|
256
|
+
"DependsOn": [
|
|
257
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
258
|
+
]
|
|
227
259
|
},
|
|
228
260
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventCF035CA3": {
|
|
229
261
|
"Type": "AWS::Lambda::Function",
|
|
@@ -248,7 +280,10 @@
|
|
|
248
280
|
"Handler": "framework.onEvent",
|
|
249
281
|
"LoggingConfig": {
|
|
250
282
|
"ApplicationLogLevel": "FATAL",
|
|
251
|
-
"LogFormat": "JSON"
|
|
283
|
+
"LogFormat": "JSON",
|
|
284
|
+
"LogGroup": {
|
|
285
|
+
"Ref": "IntegVSCodeServerSecretRetrieveProviderLogGroupCA7357BF"
|
|
286
|
+
}
|
|
252
287
|
},
|
|
253
288
|
"Role": {
|
|
254
289
|
"Fn::GetAtt": [
|
|
@@ -260,43 +295,11 @@
|
|
|
260
295
|
"Timeout": 900
|
|
261
296
|
},
|
|
262
297
|
"DependsOn": [
|
|
298
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
263
299
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRoleDefaultPolicyEC4DCEA0",
|
|
264
300
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRole0F156B64"
|
|
265
301
|
]
|
|
266
302
|
},
|
|
267
|
-
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventLogGroupBE7DEEA2": {
|
|
268
|
-
"Type": "AWS::Logs::LogGroup",
|
|
269
|
-
"Properties": {
|
|
270
|
-
"LogGroupName": {
|
|
271
|
-
"Fn::Join": [
|
|
272
|
-
"",
|
|
273
|
-
[
|
|
274
|
-
"/aws/lambda/",
|
|
275
|
-
{
|
|
276
|
-
"Ref": "IntegVSCodeServerSecretRetrieveProviderframeworkonEventCF035CA3"
|
|
277
|
-
}
|
|
278
|
-
]
|
|
279
|
-
]
|
|
280
|
-
},
|
|
281
|
-
"RetentionInDays": 731,
|
|
282
|
-
"Tags": [
|
|
283
|
-
{
|
|
284
|
-
"Key": "app",
|
|
285
|
-
"Value": "vscode-server"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"Key": "IntegTest",
|
|
289
|
-
"Value": "True"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"Key": "TestType",
|
|
293
|
-
"Value": "StopOnIdle"
|
|
294
|
-
}
|
|
295
|
-
]
|
|
296
|
-
},
|
|
297
|
-
"UpdateReplacePolicy": "Retain",
|
|
298
|
-
"DeletionPolicy": "Retain"
|
|
299
|
-
},
|
|
300
303
|
"IntegVSCodeServerSecretRetrieverCustomResource2F3DB8BD": {
|
|
301
304
|
"Type": "AWS::CloudFormation::CustomResource",
|
|
302
305
|
"Properties": {
|
|
@@ -311,6 +314,9 @@
|
|
|
311
314
|
"Ref": "IntegVSCodeServerpasswordsecret202A5DB3"
|
|
312
315
|
}
|
|
313
316
|
},
|
|
317
|
+
"DependsOn": [
|
|
318
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
319
|
+
],
|
|
314
320
|
"UpdateReplacePolicy": "Delete",
|
|
315
321
|
"DeletionPolicy": "Delete"
|
|
316
322
|
},
|
|
@@ -339,7 +345,10 @@
|
|
|
339
345
|
"Value": "StopOnIdle"
|
|
340
346
|
}
|
|
341
347
|
]
|
|
342
|
-
}
|
|
348
|
+
},
|
|
349
|
+
"DependsOn": [
|
|
350
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
351
|
+
]
|
|
343
352
|
},
|
|
344
353
|
"IntegVSCodeServervpcpublicSubnet1Subnet928029A1": {
|
|
345
354
|
"Type": "AWS::EC2::Subnet",
|
|
@@ -383,7 +392,10 @@
|
|
|
383
392
|
"VpcId": {
|
|
384
393
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
385
394
|
}
|
|
386
|
-
}
|
|
395
|
+
},
|
|
396
|
+
"DependsOn": [
|
|
397
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
398
|
+
]
|
|
387
399
|
},
|
|
388
400
|
"IntegVSCodeServervpcpublicSubnet1RouteTableFD418D0B": {
|
|
389
401
|
"Type": "AWS::EC2::RouteTable",
|
|
@@ -409,7 +421,10 @@
|
|
|
409
421
|
"VpcId": {
|
|
410
422
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
411
423
|
}
|
|
412
|
-
}
|
|
424
|
+
},
|
|
425
|
+
"DependsOn": [
|
|
426
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
427
|
+
]
|
|
413
428
|
},
|
|
414
429
|
"IntegVSCodeServervpcpublicSubnet1RouteTableAssociation599AB80D": {
|
|
415
430
|
"Type": "AWS::EC2::SubnetRouteTableAssociation",
|
|
@@ -420,7 +435,10 @@
|
|
|
420
435
|
"SubnetId": {
|
|
421
436
|
"Ref": "IntegVSCodeServervpcpublicSubnet1Subnet928029A1"
|
|
422
437
|
}
|
|
423
|
-
}
|
|
438
|
+
},
|
|
439
|
+
"DependsOn": [
|
|
440
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
441
|
+
]
|
|
424
442
|
},
|
|
425
443
|
"IntegVSCodeServervpcpublicSubnet1DefaultRoute36845B30": {
|
|
426
444
|
"Type": "AWS::EC2::Route",
|
|
@@ -434,6 +452,7 @@
|
|
|
434
452
|
}
|
|
435
453
|
},
|
|
436
454
|
"DependsOn": [
|
|
455
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
437
456
|
"IntegVSCodeServervpcVPCGWA7CDED90"
|
|
438
457
|
]
|
|
439
458
|
},
|
|
@@ -479,7 +498,10 @@
|
|
|
479
498
|
"VpcId": {
|
|
480
499
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
481
500
|
}
|
|
482
|
-
}
|
|
501
|
+
},
|
|
502
|
+
"DependsOn": [
|
|
503
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
504
|
+
]
|
|
483
505
|
},
|
|
484
506
|
"IntegVSCodeServervpcpublicSubnet2RouteTableC264EFB4": {
|
|
485
507
|
"Type": "AWS::EC2::RouteTable",
|
|
@@ -505,7 +527,10 @@
|
|
|
505
527
|
"VpcId": {
|
|
506
528
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
507
529
|
}
|
|
508
|
-
}
|
|
530
|
+
},
|
|
531
|
+
"DependsOn": [
|
|
532
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
533
|
+
]
|
|
509
534
|
},
|
|
510
535
|
"IntegVSCodeServervpcpublicSubnet2RouteTableAssociationC62A1999": {
|
|
511
536
|
"Type": "AWS::EC2::SubnetRouteTableAssociation",
|
|
@@ -516,7 +541,10 @@
|
|
|
516
541
|
"SubnetId": {
|
|
517
542
|
"Ref": "IntegVSCodeServervpcpublicSubnet2SubnetE381654D"
|
|
518
543
|
}
|
|
519
|
-
}
|
|
544
|
+
},
|
|
545
|
+
"DependsOn": [
|
|
546
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
547
|
+
]
|
|
520
548
|
},
|
|
521
549
|
"IntegVSCodeServervpcpublicSubnet2DefaultRouteEAD8BC23": {
|
|
522
550
|
"Type": "AWS::EC2::Route",
|
|
@@ -530,6 +558,7 @@
|
|
|
530
558
|
}
|
|
531
559
|
},
|
|
532
560
|
"DependsOn": [
|
|
561
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
533
562
|
"IntegVSCodeServervpcVPCGWA7CDED90"
|
|
534
563
|
]
|
|
535
564
|
},
|
|
@@ -554,7 +583,10 @@
|
|
|
554
583
|
"Value": "StopOnIdle"
|
|
555
584
|
}
|
|
556
585
|
]
|
|
557
|
-
}
|
|
586
|
+
},
|
|
587
|
+
"DependsOn": [
|
|
588
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
589
|
+
]
|
|
558
590
|
},
|
|
559
591
|
"IntegVSCodeServervpcVPCGWA7CDED90": {
|
|
560
592
|
"Type": "AWS::EC2::VPCGatewayAttachment",
|
|
@@ -565,7 +597,10 @@
|
|
|
565
597
|
"VpcId": {
|
|
566
598
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
567
599
|
}
|
|
568
|
-
}
|
|
600
|
+
},
|
|
601
|
+
"DependsOn": [
|
|
602
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
603
|
+
]
|
|
569
604
|
},
|
|
570
605
|
"IntegVSCodeServervpcRestrictDefaultSecurityGroupCustomResourceF6EA8ED1": {
|
|
571
606
|
"Type": "Custom::VpcRestrictDefaultSG",
|
|
@@ -586,6 +621,9 @@
|
|
|
586
621
|
"Ref": "AWS::AccountId"
|
|
587
622
|
}
|
|
588
623
|
},
|
|
624
|
+
"DependsOn": [
|
|
625
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
626
|
+
],
|
|
589
627
|
"UpdateReplacePolicy": "Delete",
|
|
590
628
|
"DeletionPolicy": "Delete"
|
|
591
629
|
},
|
|
@@ -618,7 +656,10 @@
|
|
|
618
656
|
"VpcId": {
|
|
619
657
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
620
658
|
}
|
|
621
|
-
}
|
|
659
|
+
},
|
|
660
|
+
"DependsOn": [
|
|
661
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
662
|
+
]
|
|
622
663
|
},
|
|
623
664
|
"IntegVSCodeServercftoserversgfromIndirectPeer80C4F51713": {
|
|
624
665
|
"Type": "AWS::EC2::SecurityGroupIngress",
|
|
@@ -639,12 +680,15 @@
|
|
|
639
680
|
]
|
|
640
681
|
},
|
|
641
682
|
"ToPort": 80
|
|
642
|
-
}
|
|
683
|
+
},
|
|
684
|
+
"DependsOn": [
|
|
685
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
686
|
+
]
|
|
643
687
|
},
|
|
644
688
|
"IntegVSCodeServercfprefixlistIdGetPrefixListIdLogGroup171C2803": {
|
|
645
689
|
"Type": "AWS::Logs::LogGroup",
|
|
646
690
|
"Properties": {
|
|
647
|
-
"RetentionInDays":
|
|
691
|
+
"RetentionInDays": 5,
|
|
648
692
|
"Tags": [
|
|
649
693
|
{
|
|
650
694
|
"Key": "app",
|
|
@@ -678,7 +722,10 @@
|
|
|
678
722
|
],
|
|
679
723
|
"Version": "2012-10-17"
|
|
680
724
|
}
|
|
681
|
-
}
|
|
725
|
+
},
|
|
726
|
+
"DependsOn": [
|
|
727
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
728
|
+
]
|
|
682
729
|
},
|
|
683
730
|
"IntegVSCodeServercfprefixlistIdGetPrefixListIdF0821FFC": {
|
|
684
731
|
"Type": "Custom::AWS",
|
|
@@ -694,7 +741,8 @@
|
|
|
694
741
|
"InstallLatestAwsSdk": false
|
|
695
742
|
},
|
|
696
743
|
"DependsOn": [
|
|
697
|
-
"IntegVSCodeServercfprefixlistIdGetPrefixListIdCustomResourcePolicyAB3F4958"
|
|
744
|
+
"IntegVSCodeServercfprefixlistIdGetPrefixListIdCustomResourcePolicyAB3F4958",
|
|
745
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
698
746
|
],
|
|
699
747
|
"UpdateReplacePolicy": "Delete",
|
|
700
748
|
"DeletionPolicy": "Delete"
|
|
@@ -718,7 +766,10 @@
|
|
|
718
766
|
"Ref": "IntegVSCodeServercfprefixlistIdGetPrefixListIdRole1302B3E1"
|
|
719
767
|
}
|
|
720
768
|
]
|
|
721
|
-
}
|
|
769
|
+
},
|
|
770
|
+
"DependsOn": [
|
|
771
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
772
|
+
]
|
|
722
773
|
},
|
|
723
774
|
"IntegVSCodeServerserverinstancerole7745B5BB": {
|
|
724
775
|
"Type": "AWS::IAM::Role",
|
|
@@ -980,7 +1031,10 @@
|
|
|
980
1031
|
"PolicyName": "VSCodeInstanceInlinePolicy"
|
|
981
1032
|
}
|
|
982
1033
|
]
|
|
983
|
-
}
|
|
1034
|
+
},
|
|
1035
|
+
"DependsOn": [
|
|
1036
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1037
|
+
]
|
|
984
1038
|
},
|
|
985
1039
|
"IntegVSCodeServerserverinstanceInstanceProfile6130979E": {
|
|
986
1040
|
"Type": "AWS::IAM::InstanceProfile",
|
|
@@ -990,7 +1044,10 @@
|
|
|
990
1044
|
"Ref": "IntegVSCodeServerserverinstancerole7745B5BB"
|
|
991
1045
|
}
|
|
992
1046
|
]
|
|
993
|
-
}
|
|
1047
|
+
},
|
|
1048
|
+
"DependsOn": [
|
|
1049
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1050
|
+
]
|
|
994
1051
|
},
|
|
995
1052
|
"IntegVSCodeServerserverinstance0A3D62D7": {
|
|
996
1053
|
"Type": "AWS::EC2::Instance",
|
|
@@ -1071,6 +1128,7 @@
|
|
|
1071
1128
|
}
|
|
1072
1129
|
},
|
|
1073
1130
|
"DependsOn": [
|
|
1131
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
1074
1132
|
"IntegVSCodeServerserverinstancerole7745B5BB",
|
|
1075
1133
|
"IntegVSCodeServervpcpublicSubnet1DefaultRoute36845B30",
|
|
1076
1134
|
"IntegVSCodeServervpcpublicSubnet1RouteTableAssociation599AB80D",
|
|
@@ -1087,7 +1145,10 @@
|
|
|
1087
1145
|
}
|
|
1088
1146
|
},
|
|
1089
1147
|
"LaunchTemplateName": "IntegTestStackStopOnIdleIntegVSCodeServerserverinstanceLaunchTemplateD9ABA365"
|
|
1090
|
-
}
|
|
1148
|
+
},
|
|
1149
|
+
"DependsOn": [
|
|
1150
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1151
|
+
]
|
|
1091
1152
|
},
|
|
1092
1153
|
"IntegVSCodeServerelasticip31D48F71": {
|
|
1093
1154
|
"Type": "AWS::EC2::EIP",
|
|
@@ -1111,7 +1172,10 @@
|
|
|
1111
1172
|
"Value": "StopOnIdle"
|
|
1112
1173
|
}
|
|
1113
1174
|
]
|
|
1114
|
-
}
|
|
1175
|
+
},
|
|
1176
|
+
"DependsOn": [
|
|
1177
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1178
|
+
]
|
|
1115
1179
|
},
|
|
1116
1180
|
"IntegVSCodeServereipassociation2A6D7D5A": {
|
|
1117
1181
|
"Type": "AWS::EC2::EIPAssociation",
|
|
@@ -1125,7 +1189,10 @@
|
|
|
1125
1189
|
"InstanceId": {
|
|
1126
1190
|
"Ref": "IntegVSCodeServerserverinstance0A3D62D7"
|
|
1127
1191
|
}
|
|
1128
|
-
}
|
|
1192
|
+
},
|
|
1193
|
+
"DependsOn": [
|
|
1194
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1195
|
+
]
|
|
1129
1196
|
},
|
|
1130
1197
|
"IntegVSCodeServercfcachepolicy8F5F1F69": {
|
|
1131
1198
|
"Type": "AWS::CloudFront::CachePolicy",
|
|
@@ -1161,7 +1228,10 @@
|
|
|
1161
1228
|
}
|
|
1162
1229
|
}
|
|
1163
1230
|
}
|
|
1164
|
-
}
|
|
1231
|
+
},
|
|
1232
|
+
"DependsOn": [
|
|
1233
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1234
|
+
]
|
|
1165
1235
|
},
|
|
1166
1236
|
"IntegVSCodeServercfdistributionFDBE873F": {
|
|
1167
1237
|
"Type": "AWS::CloudFront::Distribution",
|
|
@@ -1264,7 +1334,10 @@
|
|
|
1264
1334
|
"Value": "StopOnIdle"
|
|
1265
1335
|
}
|
|
1266
1336
|
]
|
|
1267
|
-
}
|
|
1337
|
+
},
|
|
1338
|
+
"DependsOn": [
|
|
1339
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1340
|
+
]
|
|
1268
1341
|
},
|
|
1269
1342
|
"IntegVSCodeServerssmdocumentubuntuED32BACB": {
|
|
1270
1343
|
"Type": "AWS::SSM::Document",
|
|
@@ -1689,7 +1762,32 @@
|
|
|
1689
1762
|
"Value": "StopOnIdle"
|
|
1690
1763
|
}
|
|
1691
1764
|
]
|
|
1692
|
-
}
|
|
1765
|
+
},
|
|
1766
|
+
"DependsOn": [
|
|
1767
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1768
|
+
]
|
|
1769
|
+
},
|
|
1770
|
+
"IntegVSCodeServerInstallerOnEventLogGroup320D03D7": {
|
|
1771
|
+
"Type": "AWS::Logs::LogGroup",
|
|
1772
|
+
"Properties": {
|
|
1773
|
+
"RetentionInDays": 5,
|
|
1774
|
+
"Tags": [
|
|
1775
|
+
{
|
|
1776
|
+
"Key": "app",
|
|
1777
|
+
"Value": "vscode-server"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"Key": "IntegTest",
|
|
1781
|
+
"Value": "True"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"Key": "TestType",
|
|
1785
|
+
"Value": "StopOnIdle"
|
|
1786
|
+
}
|
|
1787
|
+
]
|
|
1788
|
+
},
|
|
1789
|
+
"UpdateReplacePolicy": "Delete",
|
|
1790
|
+
"DeletionPolicy": "Delete"
|
|
1693
1791
|
},
|
|
1694
1792
|
"IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF": {
|
|
1695
1793
|
"Type": "AWS::IAM::Role",
|
|
@@ -1720,7 +1818,10 @@
|
|
|
1720
1818
|
]
|
|
1721
1819
|
}
|
|
1722
1820
|
]
|
|
1723
|
-
}
|
|
1821
|
+
},
|
|
1822
|
+
"DependsOn": [
|
|
1823
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1824
|
+
]
|
|
1724
1825
|
},
|
|
1725
1826
|
"IntegVSCodeServerInstallerOnEventHandlerServiceRoleDefaultPolicy1CAD86C2": {
|
|
1726
1827
|
"Type": "AWS::IAM::Policy",
|
|
@@ -1813,7 +1914,10 @@
|
|
|
1813
1914
|
"Ref": "IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF"
|
|
1814
1915
|
}
|
|
1815
1916
|
]
|
|
1816
|
-
}
|
|
1917
|
+
},
|
|
1918
|
+
"DependsOn": [
|
|
1919
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1920
|
+
]
|
|
1817
1921
|
},
|
|
1818
1922
|
"IntegVSCodeServerInstallerOnEventHandler6FF91542": {
|
|
1819
1923
|
"Type": "AWS::Lambda::Function",
|
|
@@ -1826,6 +1930,11 @@
|
|
|
1826
1930
|
},
|
|
1827
1931
|
"Description": "src/installer/installer.lambda.ts",
|
|
1828
1932
|
"Handler": "index.handler",
|
|
1933
|
+
"LoggingConfig": {
|
|
1934
|
+
"LogGroup": {
|
|
1935
|
+
"Ref": "IntegVSCodeServerInstallerOnEventLogGroup320D03D7"
|
|
1936
|
+
}
|
|
1937
|
+
},
|
|
1829
1938
|
"MemorySize": 512,
|
|
1830
1939
|
"Role": {
|
|
1831
1940
|
"Fn::GetAtt": [
|
|
@@ -1838,24 +1947,14 @@
|
|
|
1838
1947
|
},
|
|
1839
1948
|
"DependsOn": [
|
|
1840
1949
|
"IntegVSCodeServerInstallerOnEventHandlerServiceRoleDefaultPolicy1CAD86C2",
|
|
1841
|
-
"IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF"
|
|
1950
|
+
"IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF",
|
|
1951
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1842
1952
|
]
|
|
1843
1953
|
},
|
|
1844
|
-
"
|
|
1954
|
+
"IntegVSCodeServerInstallerProviderLogGroupC44B027B": {
|
|
1845
1955
|
"Type": "AWS::Logs::LogGroup",
|
|
1846
1956
|
"Properties": {
|
|
1847
|
-
"
|
|
1848
|
-
"Fn::Join": [
|
|
1849
|
-
"",
|
|
1850
|
-
[
|
|
1851
|
-
"/aws/lambda/",
|
|
1852
|
-
{
|
|
1853
|
-
"Ref": "IntegVSCodeServerInstallerOnEventHandler6FF91542"
|
|
1854
|
-
}
|
|
1855
|
-
]
|
|
1856
|
-
]
|
|
1857
|
-
},
|
|
1858
|
-
"RetentionInDays": 731,
|
|
1957
|
+
"RetentionInDays": 5,
|
|
1859
1958
|
"Tags": [
|
|
1860
1959
|
{
|
|
1861
1960
|
"Key": "app",
|
|
@@ -1871,8 +1970,8 @@
|
|
|
1871
1970
|
}
|
|
1872
1971
|
]
|
|
1873
1972
|
},
|
|
1874
|
-
"UpdateReplacePolicy": "
|
|
1875
|
-
"DeletionPolicy": "
|
|
1973
|
+
"UpdateReplacePolicy": "Delete",
|
|
1974
|
+
"DeletionPolicy": "Delete"
|
|
1876
1975
|
},
|
|
1877
1976
|
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F": {
|
|
1878
1977
|
"Type": "AWS::IAM::Role",
|
|
@@ -1903,7 +2002,10 @@
|
|
|
1903
2002
|
]
|
|
1904
2003
|
}
|
|
1905
2004
|
]
|
|
1906
|
-
}
|
|
2005
|
+
},
|
|
2006
|
+
"DependsOn": [
|
|
2007
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2008
|
+
]
|
|
1907
2009
|
},
|
|
1908
2010
|
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleDefaultPolicy3E54FC3A": {
|
|
1909
2011
|
"Type": "AWS::IAM::Policy",
|
|
@@ -1955,7 +2057,10 @@
|
|
|
1955
2057
|
"Ref": "IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F"
|
|
1956
2058
|
}
|
|
1957
2059
|
]
|
|
1958
|
-
}
|
|
2060
|
+
},
|
|
2061
|
+
"DependsOn": [
|
|
2062
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2063
|
+
]
|
|
1959
2064
|
},
|
|
1960
2065
|
"IntegVSCodeServerInstallerProviderframeworkonEvent7B6C1190": {
|
|
1961
2066
|
"Type": "AWS::Lambda::Function",
|
|
@@ -1980,7 +2085,10 @@
|
|
|
1980
2085
|
"Handler": "framework.onEvent",
|
|
1981
2086
|
"LoggingConfig": {
|
|
1982
2087
|
"ApplicationLogLevel": "FATAL",
|
|
1983
|
-
"LogFormat": "JSON"
|
|
2088
|
+
"LogFormat": "JSON",
|
|
2089
|
+
"LogGroup": {
|
|
2090
|
+
"Ref": "IntegVSCodeServerInstallerProviderLogGroupC44B027B"
|
|
2091
|
+
}
|
|
1984
2092
|
},
|
|
1985
2093
|
"Role": {
|
|
1986
2094
|
"Fn::GetAtt": [
|
|
@@ -1993,41 +2101,26 @@
|
|
|
1993
2101
|
},
|
|
1994
2102
|
"DependsOn": [
|
|
1995
2103
|
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleDefaultPolicy3E54FC3A",
|
|
1996
|
-
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F"
|
|
2104
|
+
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F",
|
|
2105
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1997
2106
|
]
|
|
1998
2107
|
},
|
|
1999
|
-
"
|
|
2000
|
-
"Type": "
|
|
2108
|
+
"IntegVSCodeServerInstallLogRetentionF3D42FD5": {
|
|
2109
|
+
"Type": "Custom::LogRetention",
|
|
2001
2110
|
"Properties": {
|
|
2002
|
-
"
|
|
2003
|
-
"Fn::
|
|
2004
|
-
"",
|
|
2005
|
-
|
|
2006
|
-
"/aws/lambda/",
|
|
2007
|
-
{
|
|
2008
|
-
"Ref": "IntegVSCodeServerInstallerProviderframeworkonEvent7B6C1190"
|
|
2009
|
-
}
|
|
2010
|
-
]
|
|
2111
|
+
"ServiceToken": {
|
|
2112
|
+
"Fn::GetAtt": [
|
|
2113
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A",
|
|
2114
|
+
"Arn"
|
|
2011
2115
|
]
|
|
2012
2116
|
},
|
|
2013
|
-
"
|
|
2014
|
-
"
|
|
2015
|
-
|
|
2016
|
-
"Key": "app",
|
|
2017
|
-
"Value": "vscode-server"
|
|
2018
|
-
},
|
|
2019
|
-
{
|
|
2020
|
-
"Key": "IntegTest",
|
|
2021
|
-
"Value": "True"
|
|
2022
|
-
},
|
|
2023
|
-
{
|
|
2024
|
-
"Key": "TestType",
|
|
2025
|
-
"Value": "StopOnIdle"
|
|
2026
|
-
}
|
|
2027
|
-
]
|
|
2117
|
+
"LogGroupName": "/aws/ssm/vscode-server-ubuntu-IntegTestStackStopOnIdle",
|
|
2118
|
+
"RetentionInDays": 5,
|
|
2119
|
+
"RemovalPolicy": "destroy"
|
|
2028
2120
|
},
|
|
2029
|
-
"
|
|
2030
|
-
|
|
2121
|
+
"DependsOn": [
|
|
2122
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2123
|
+
]
|
|
2031
2124
|
},
|
|
2032
2125
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68": {
|
|
2033
2126
|
"Type": "AWS::CloudFormation::CustomResource",
|
|
@@ -2051,6 +2144,32 @@
|
|
|
2051
2144
|
]
|
|
2052
2145
|
}
|
|
2053
2146
|
},
|
|
2147
|
+
"DependsOn": [
|
|
2148
|
+
"IntegVSCodeServerInstallLogRetentionF3D42FD5",
|
|
2149
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2150
|
+
],
|
|
2151
|
+
"UpdateReplacePolicy": "Delete",
|
|
2152
|
+
"DeletionPolicy": "Delete"
|
|
2153
|
+
},
|
|
2154
|
+
"IntegVSCodeServerIdleMonitorFunctionLogGroupD71D3EE6": {
|
|
2155
|
+
"Type": "AWS::Logs::LogGroup",
|
|
2156
|
+
"Properties": {
|
|
2157
|
+
"RetentionInDays": 5,
|
|
2158
|
+
"Tags": [
|
|
2159
|
+
{
|
|
2160
|
+
"Key": "app",
|
|
2161
|
+
"Value": "vscode-server"
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
"Key": "IntegTest",
|
|
2165
|
+
"Value": "True"
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"Key": "TestType",
|
|
2169
|
+
"Value": "StopOnIdle"
|
|
2170
|
+
}
|
|
2171
|
+
]
|
|
2172
|
+
},
|
|
2054
2173
|
"UpdateReplacePolicy": "Delete",
|
|
2055
2174
|
"DeletionPolicy": "Delete"
|
|
2056
2175
|
},
|
|
@@ -2083,7 +2202,10 @@
|
|
|
2083
2202
|
]
|
|
2084
2203
|
}
|
|
2085
2204
|
]
|
|
2086
|
-
}
|
|
2205
|
+
},
|
|
2206
|
+
"DependsOn": [
|
|
2207
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2208
|
+
]
|
|
2087
2209
|
},
|
|
2088
2210
|
"IntegVSCodeServerIdleMonitorFunctionServiceRoleDefaultPolicyE13A3890": {
|
|
2089
2211
|
"Type": "AWS::IAM::Policy",
|
|
@@ -2132,7 +2254,10 @@
|
|
|
2132
2254
|
"Ref": "IntegVSCodeServerIdleMonitorFunctionServiceRoleC1088A0D"
|
|
2133
2255
|
}
|
|
2134
2256
|
]
|
|
2135
|
-
}
|
|
2257
|
+
},
|
|
2258
|
+
"DependsOn": [
|
|
2259
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2260
|
+
]
|
|
2136
2261
|
},
|
|
2137
2262
|
"IntegVSCodeServerIdleMonitorFunctionCACBFA32": {
|
|
2138
2263
|
"Type": "AWS::Lambda::Function",
|
|
@@ -2156,6 +2281,11 @@
|
|
|
2156
2281
|
}
|
|
2157
2282
|
},
|
|
2158
2283
|
"Handler": "index.handler",
|
|
2284
|
+
"LoggingConfig": {
|
|
2285
|
+
"LogGroup": {
|
|
2286
|
+
"Ref": "IntegVSCodeServerIdleMonitorFunctionLogGroupD71D3EE6"
|
|
2287
|
+
}
|
|
2288
|
+
},
|
|
2159
2289
|
"MemorySize": 256,
|
|
2160
2290
|
"Role": {
|
|
2161
2291
|
"Fn::GetAtt": [
|
|
@@ -2168,42 +2298,10 @@
|
|
|
2168
2298
|
},
|
|
2169
2299
|
"DependsOn": [
|
|
2170
2300
|
"IntegVSCodeServerIdleMonitorFunctionServiceRoleDefaultPolicyE13A3890",
|
|
2171
|
-
"IntegVSCodeServerIdleMonitorFunctionServiceRoleC1088A0D"
|
|
2301
|
+
"IntegVSCodeServerIdleMonitorFunctionServiceRoleC1088A0D",
|
|
2302
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2172
2303
|
]
|
|
2173
2304
|
},
|
|
2174
|
-
"IntegVSCodeServerIdleMonitorFunctionLogGroupE9475DB5": {
|
|
2175
|
-
"Type": "AWS::Logs::LogGroup",
|
|
2176
|
-
"Properties": {
|
|
2177
|
-
"LogGroupName": {
|
|
2178
|
-
"Fn::Join": [
|
|
2179
|
-
"",
|
|
2180
|
-
[
|
|
2181
|
-
"/aws/lambda/",
|
|
2182
|
-
{
|
|
2183
|
-
"Ref": "IntegVSCodeServerIdleMonitorFunctionCACBFA32"
|
|
2184
|
-
}
|
|
2185
|
-
]
|
|
2186
|
-
]
|
|
2187
|
-
},
|
|
2188
|
-
"RetentionInDays": 731,
|
|
2189
|
-
"Tags": [
|
|
2190
|
-
{
|
|
2191
|
-
"Key": "app",
|
|
2192
|
-
"Value": "vscode-server"
|
|
2193
|
-
},
|
|
2194
|
-
{
|
|
2195
|
-
"Key": "IntegTest",
|
|
2196
|
-
"Value": "True"
|
|
2197
|
-
},
|
|
2198
|
-
{
|
|
2199
|
-
"Key": "TestType",
|
|
2200
|
-
"Value": "StopOnIdle"
|
|
2201
|
-
}
|
|
2202
|
-
]
|
|
2203
|
-
},
|
|
2204
|
-
"UpdateReplacePolicy": "Retain",
|
|
2205
|
-
"DeletionPolicy": "Retain"
|
|
2206
|
-
},
|
|
2207
2305
|
"IntegVSCodeServerIdleMonitorScheduleRuleCF2E60F5": {
|
|
2208
2306
|
"Type": "AWS::Events::Rule",
|
|
2209
2307
|
"Properties": {
|
|
@@ -2234,7 +2332,10 @@
|
|
|
2234
2332
|
"Id": "Target0"
|
|
2235
2333
|
}
|
|
2236
2334
|
]
|
|
2237
|
-
}
|
|
2335
|
+
},
|
|
2336
|
+
"DependsOn": [
|
|
2337
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2338
|
+
]
|
|
2238
2339
|
},
|
|
2239
2340
|
"IntegVSCodeServerIdleMonitorScheduleRuleAllowEventRuleIntegTestStackStopOnIdleIntegVSCodeServerIdleMonitorFunction8C52CC5D407CFD6D": {
|
|
2240
2341
|
"Type": "AWS::Lambda::Permission",
|
|
@@ -2253,7 +2354,32 @@
|
|
|
2253
2354
|
"Arn"
|
|
2254
2355
|
]
|
|
2255
2356
|
}
|
|
2256
|
-
}
|
|
2357
|
+
},
|
|
2358
|
+
"DependsOn": [
|
|
2359
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2360
|
+
]
|
|
2361
|
+
},
|
|
2362
|
+
"IntegVSCodeServerIdleMonitorEnablerFunctionLogGroupAE01848A": {
|
|
2363
|
+
"Type": "AWS::Logs::LogGroup",
|
|
2364
|
+
"Properties": {
|
|
2365
|
+
"RetentionInDays": 5,
|
|
2366
|
+
"Tags": [
|
|
2367
|
+
{
|
|
2368
|
+
"Key": "app",
|
|
2369
|
+
"Value": "vscode-server"
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"Key": "IntegTest",
|
|
2373
|
+
"Value": "True"
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
"Key": "TestType",
|
|
2377
|
+
"Value": "StopOnIdle"
|
|
2378
|
+
}
|
|
2379
|
+
]
|
|
2380
|
+
},
|
|
2381
|
+
"UpdateReplacePolicy": "Delete",
|
|
2382
|
+
"DeletionPolicy": "Delete"
|
|
2257
2383
|
},
|
|
2258
2384
|
"IntegVSCodeServerIdleMonitorEnablerFunctionServiceRole71DD1E5D": {
|
|
2259
2385
|
"Type": "AWS::IAM::Role",
|
|
@@ -2286,6 +2412,7 @@
|
|
|
2286
2412
|
]
|
|
2287
2413
|
},
|
|
2288
2414
|
"DependsOn": [
|
|
2415
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
2289
2416
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68"
|
|
2290
2417
|
]
|
|
2291
2418
|
},
|
|
@@ -2332,6 +2459,7 @@
|
|
|
2332
2459
|
]
|
|
2333
2460
|
},
|
|
2334
2461
|
"DependsOn": [
|
|
2462
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
2335
2463
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68"
|
|
2336
2464
|
]
|
|
2337
2465
|
},
|
|
@@ -2346,6 +2474,11 @@
|
|
|
2346
2474
|
},
|
|
2347
2475
|
"Description": "src/idle-monitor-enabler/idle-monitor-enabler.lambda.ts",
|
|
2348
2476
|
"Handler": "index.handler",
|
|
2477
|
+
"LoggingConfig": {
|
|
2478
|
+
"LogGroup": {
|
|
2479
|
+
"Ref": "IntegVSCodeServerIdleMonitorEnablerFunctionLogGroupAE01848A"
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2349
2482
|
"MemorySize": 128,
|
|
2350
2483
|
"Role": {
|
|
2351
2484
|
"Fn::GetAtt": [
|
|
@@ -2359,24 +2492,14 @@
|
|
|
2359
2492
|
"DependsOn": [
|
|
2360
2493
|
"IntegVSCodeServerIdleMonitorEnablerFunctionServiceRoleDefaultPolicyCDD8B46F",
|
|
2361
2494
|
"IntegVSCodeServerIdleMonitorEnablerFunctionServiceRole71DD1E5D",
|
|
2495
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
2362
2496
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68"
|
|
2363
2497
|
]
|
|
2364
2498
|
},
|
|
2365
|
-
"
|
|
2499
|
+
"IntegVSCodeServerIdleMonitorEnablerProviderLogGroupF139281E": {
|
|
2366
2500
|
"Type": "AWS::Logs::LogGroup",
|
|
2367
2501
|
"Properties": {
|
|
2368
|
-
"
|
|
2369
|
-
"Fn::Join": [
|
|
2370
|
-
"",
|
|
2371
|
-
[
|
|
2372
|
-
"/aws/lambda/",
|
|
2373
|
-
{
|
|
2374
|
-
"Ref": "IntegVSCodeServerIdleMonitorEnablerFunction32DA729B"
|
|
2375
|
-
}
|
|
2376
|
-
]
|
|
2377
|
-
]
|
|
2378
|
-
},
|
|
2379
|
-
"RetentionInDays": 731,
|
|
2502
|
+
"RetentionInDays": 5,
|
|
2380
2503
|
"Tags": [
|
|
2381
2504
|
{
|
|
2382
2505
|
"Key": "app",
|
|
@@ -2392,11 +2515,8 @@
|
|
|
2392
2515
|
}
|
|
2393
2516
|
]
|
|
2394
2517
|
},
|
|
2395
|
-
"
|
|
2396
|
-
|
|
2397
|
-
],
|
|
2398
|
-
"UpdateReplacePolicy": "Retain",
|
|
2399
|
-
"DeletionPolicy": "Retain"
|
|
2518
|
+
"UpdateReplacePolicy": "Delete",
|
|
2519
|
+
"DeletionPolicy": "Delete"
|
|
2400
2520
|
},
|
|
2401
2521
|
"IntegVSCodeServerIdleMonitorEnablerProviderframeworkonEventServiceRole941AC96C": {
|
|
2402
2522
|
"Type": "AWS::IAM::Role",
|
|
@@ -2429,6 +2549,7 @@
|
|
|
2429
2549
|
]
|
|
2430
2550
|
},
|
|
2431
2551
|
"DependsOn": [
|
|
2552
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
2432
2553
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68"
|
|
2433
2554
|
]
|
|
2434
2555
|
},
|
|
@@ -2484,6 +2605,7 @@
|
|
|
2484
2605
|
]
|
|
2485
2606
|
},
|
|
2486
2607
|
"DependsOn": [
|
|
2608
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
2487
2609
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68"
|
|
2488
2610
|
]
|
|
2489
2611
|
},
|
|
@@ -2510,7 +2632,10 @@
|
|
|
2510
2632
|
"Handler": "framework.onEvent",
|
|
2511
2633
|
"LoggingConfig": {
|
|
2512
2634
|
"ApplicationLogLevel": "FATAL",
|
|
2513
|
-
"LogFormat": "JSON"
|
|
2635
|
+
"LogFormat": "JSON",
|
|
2636
|
+
"LogGroup": {
|
|
2637
|
+
"Ref": "IntegVSCodeServerIdleMonitorEnablerProviderLogGroupF139281E"
|
|
2638
|
+
}
|
|
2514
2639
|
},
|
|
2515
2640
|
"Role": {
|
|
2516
2641
|
"Fn::GetAtt": [
|
|
@@ -2524,32 +2649,7 @@
|
|
|
2524
2649
|
"DependsOn": [
|
|
2525
2650
|
"IntegVSCodeServerIdleMonitorEnablerProviderframeworkonEventServiceRoleDefaultPolicy995CAD91",
|
|
2526
2651
|
"IntegVSCodeServerIdleMonitorEnablerProviderframeworkonEventServiceRole941AC96C",
|
|
2527
|
-
"
|
|
2528
|
-
]
|
|
2529
|
-
},
|
|
2530
|
-
"IntegVSCodeServerIdleMonitorEnablerProviderframeworkonEventLogRetentionE879C0C0": {
|
|
2531
|
-
"Type": "Custom::LogRetention",
|
|
2532
|
-
"Properties": {
|
|
2533
|
-
"ServiceToken": {
|
|
2534
|
-
"Fn::GetAtt": [
|
|
2535
|
-
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A",
|
|
2536
|
-
"Arn"
|
|
2537
|
-
]
|
|
2538
|
-
},
|
|
2539
|
-
"LogGroupName": {
|
|
2540
|
-
"Fn::Join": [
|
|
2541
|
-
"",
|
|
2542
|
-
[
|
|
2543
|
-
"/aws/lambda/",
|
|
2544
|
-
{
|
|
2545
|
-
"Ref": "IntegVSCodeServerIdleMonitorEnablerProviderframeworkonEvent3B68F506"
|
|
2546
|
-
}
|
|
2547
|
-
]
|
|
2548
|
-
]
|
|
2549
|
-
},
|
|
2550
|
-
"RetentionInDays": 1
|
|
2551
|
-
},
|
|
2552
|
-
"DependsOn": [
|
|
2652
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
2553
2653
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68"
|
|
2554
2654
|
]
|
|
2555
2655
|
},
|
|
@@ -2569,11 +2669,26 @@
|
|
|
2569
2669
|
"DependsOn": [
|
|
2570
2670
|
"IntegVSCodeServerIdleMonitorScheduleRuleAllowEventRuleIntegTestStackStopOnIdleIntegVSCodeServerIdleMonitorFunction8C52CC5D407CFD6D",
|
|
2571
2671
|
"IntegVSCodeServerIdleMonitorScheduleRuleCF2E60F5",
|
|
2672
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
2572
2673
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68"
|
|
2573
2674
|
],
|
|
2574
2675
|
"UpdateReplacePolicy": "Delete",
|
|
2575
2676
|
"DeletionPolicy": "Delete"
|
|
2576
2677
|
},
|
|
2678
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA": {
|
|
2679
|
+
"Type": "AWS::CloudFormation::WaitConditionHandle",
|
|
2680
|
+
"DependsOn": [
|
|
2681
|
+
"IntegVSCodeServercfprefixlistIdGetPrefixListIdLogGroup171C2803",
|
|
2682
|
+
"IntegVSCodeServerIdleMonitorFunctionLogGroupD71D3EE6",
|
|
2683
|
+
"IntegVSCodeServerIdleMonitorEnablerFunctionLogGroupAE01848A",
|
|
2684
|
+
"IntegVSCodeServerIdleMonitorEnablerProviderLogGroupF139281E",
|
|
2685
|
+
"IntegVSCodeServerInstallerOnEventLogGroup320D03D7",
|
|
2686
|
+
"IntegVSCodeServerInstallerProviderLogGroupC44B027B",
|
|
2687
|
+
"IntegVSCodeServerSecretRetrieveProviderLogGroupCA7357BF",
|
|
2688
|
+
"IntegVSCodeServerSecretRetrieverOnEventLogGroup85022BA4",
|
|
2689
|
+
"VpcRestrictDefaultSgLogGroup736DE614"
|
|
2690
|
+
]
|
|
2691
|
+
},
|
|
2577
2692
|
"CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0": {
|
|
2578
2693
|
"Type": "AWS::IAM::Role",
|
|
2579
2694
|
"Properties": {
|
|
@@ -2662,12 +2777,25 @@
|
|
|
2662
2777
|
]
|
|
2663
2778
|
},
|
|
2664
2779
|
"Runtime": "nodejs24.x",
|
|
2665
|
-
"Description": "Lambda function for removing all inbound/outbound rules from the VPC default security group"
|
|
2780
|
+
"Description": "Lambda function for removing all inbound/outbound rules from the VPC default security group",
|
|
2781
|
+
"LoggingConfig": {
|
|
2782
|
+
"LogGroup": {
|
|
2783
|
+
"Ref": "VpcRestrictDefaultSgLogGroup736DE614"
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2666
2786
|
},
|
|
2667
2787
|
"DependsOn": [
|
|
2668
2788
|
"CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0"
|
|
2669
2789
|
]
|
|
2670
2790
|
},
|
|
2791
|
+
"VpcRestrictDefaultSgLogGroup736DE614": {
|
|
2792
|
+
"Type": "AWS::Logs::LogGroup",
|
|
2793
|
+
"Properties": {
|
|
2794
|
+
"RetentionInDays": 5
|
|
2795
|
+
},
|
|
2796
|
+
"UpdateReplacePolicy": "Delete",
|
|
2797
|
+
"DeletionPolicy": "Delete"
|
|
2798
|
+
},
|
|
2671
2799
|
"AWS679f53fac002430cb0da5b7982bd22872D164C4C": {
|
|
2672
2800
|
"Type": "AWS::Lambda::Function",
|
|
2673
2801
|
"Properties": {
|
|
@@ -2739,6 +2867,30 @@
|
|
|
2739
2867
|
],
|
|
2740
2868
|
"Effect": "Allow",
|
|
2741
2869
|
"Resource": "*"
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
"Action": "logs:DeleteLogGroup",
|
|
2873
|
+
"Effect": "Allow",
|
|
2874
|
+
"Resource": {
|
|
2875
|
+
"Fn::Join": [
|
|
2876
|
+
"",
|
|
2877
|
+
[
|
|
2878
|
+
"arn:",
|
|
2879
|
+
{
|
|
2880
|
+
"Ref": "AWS::Partition"
|
|
2881
|
+
},
|
|
2882
|
+
":logs:",
|
|
2883
|
+
{
|
|
2884
|
+
"Ref": "AWS::Region"
|
|
2885
|
+
},
|
|
2886
|
+
":",
|
|
2887
|
+
{
|
|
2888
|
+
"Ref": "AWS::AccountId"
|
|
2889
|
+
},
|
|
2890
|
+
":log-group:/aws/ssm/vscode-server-ubuntu-IntegTestStackStopOnIdle:*"
|
|
2891
|
+
]
|
|
2892
|
+
]
|
|
2893
|
+
}
|
|
2742
2894
|
}
|
|
2743
2895
|
],
|
|
2744
2896
|
"Version": "2012-10-17"
|
|
@@ -2775,6 +2927,14 @@
|
|
|
2775
2927
|
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB"
|
|
2776
2928
|
]
|
|
2777
2929
|
},
|
|
2930
|
+
"IdleTestHandlerLogGroupE8FE184E": {
|
|
2931
|
+
"Type": "AWS::Logs::LogGroup",
|
|
2932
|
+
"Properties": {
|
|
2933
|
+
"RetentionInDays": 5
|
|
2934
|
+
},
|
|
2935
|
+
"UpdateReplacePolicy": "Delete",
|
|
2936
|
+
"DeletionPolicy": "Delete"
|
|
2937
|
+
},
|
|
2778
2938
|
"idletesthandlerServiceRoleBB9B4624": {
|
|
2779
2939
|
"Type": "AWS::IAM::Role",
|
|
2780
2940
|
"Properties": {
|
|
@@ -2870,6 +3030,11 @@
|
|
|
2870
3030
|
}
|
|
2871
3031
|
},
|
|
2872
3032
|
"Handler": "index.handler",
|
|
3033
|
+
"LoggingConfig": {
|
|
3034
|
+
"LogGroup": {
|
|
3035
|
+
"Ref": "IdleTestHandlerLogGroupE8FE184E"
|
|
3036
|
+
}
|
|
3037
|
+
},
|
|
2873
3038
|
"Role": {
|
|
2874
3039
|
"Fn::GetAtt": [
|
|
2875
3040
|
"idletesthandlerServiceRoleBB9B4624",
|
|
@@ -2884,28 +3049,13 @@
|
|
|
2884
3049
|
"idletesthandlerServiceRoleBB9B4624"
|
|
2885
3050
|
]
|
|
2886
3051
|
},
|
|
2887
|
-
"
|
|
2888
|
-
"Type": "
|
|
3052
|
+
"LoginHandlerLogGroup2351D4F9": {
|
|
3053
|
+
"Type": "AWS::Logs::LogGroup",
|
|
2889
3054
|
"Properties": {
|
|
2890
|
-
"
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
]
|
|
2895
|
-
},
|
|
2896
|
-
"LogGroupName": {
|
|
2897
|
-
"Fn::Join": [
|
|
2898
|
-
"",
|
|
2899
|
-
[
|
|
2900
|
-
"/aws/lambda/",
|
|
2901
|
-
{
|
|
2902
|
-
"Ref": "idletesthandler1A304024"
|
|
2903
|
-
}
|
|
2904
|
-
]
|
|
2905
|
-
]
|
|
2906
|
-
},
|
|
2907
|
-
"RetentionInDays": 1
|
|
2908
|
-
}
|
|
3055
|
+
"RetentionInDays": 5
|
|
3056
|
+
},
|
|
3057
|
+
"UpdateReplacePolicy": "Delete",
|
|
3058
|
+
"DeletionPolicy": "Delete"
|
|
2909
3059
|
},
|
|
2910
3060
|
"loginhandlerServiceRole330B0B32": {
|
|
2911
3061
|
"Type": "AWS::IAM::Role",
|
|
@@ -2948,6 +3098,11 @@
|
|
|
2948
3098
|
"S3Key": "cf551b9486b7d659176866961b59c229e25bb1d1de3e5fd5d1ca4bca396c316d.zip"
|
|
2949
3099
|
},
|
|
2950
3100
|
"Handler": "index.handler",
|
|
3101
|
+
"LoggingConfig": {
|
|
3102
|
+
"LogGroup": {
|
|
3103
|
+
"Ref": "LoginHandlerLogGroup2351D4F9"
|
|
3104
|
+
}
|
|
3105
|
+
},
|
|
2951
3106
|
"Role": {
|
|
2952
3107
|
"Fn::GetAtt": [
|
|
2953
3108
|
"loginhandlerServiceRole330B0B32",
|
|
@@ -2960,29 +3115,6 @@
|
|
|
2960
3115
|
"DependsOn": [
|
|
2961
3116
|
"loginhandlerServiceRole330B0B32"
|
|
2962
3117
|
]
|
|
2963
|
-
},
|
|
2964
|
-
"loginhandlerLogRetentionFD323A9B": {
|
|
2965
|
-
"Type": "Custom::LogRetention",
|
|
2966
|
-
"Properties": {
|
|
2967
|
-
"ServiceToken": {
|
|
2968
|
-
"Fn::GetAtt": [
|
|
2969
|
-
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A",
|
|
2970
|
-
"Arn"
|
|
2971
|
-
]
|
|
2972
|
-
},
|
|
2973
|
-
"LogGroupName": {
|
|
2974
|
-
"Fn::Join": [
|
|
2975
|
-
"",
|
|
2976
|
-
[
|
|
2977
|
-
"/aws/lambda/",
|
|
2978
|
-
{
|
|
2979
|
-
"Ref": "loginhandler99CCCCFD"
|
|
2980
|
-
}
|
|
2981
|
-
]
|
|
2982
|
-
]
|
|
2983
|
-
},
|
|
2984
|
-
"RetentionInDays": 1
|
|
2985
|
-
}
|
|
2986
3118
|
}
|
|
2987
3119
|
},
|
|
2988
3120
|
"Outputs": {
|