@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
|
@@ -18,6 +18,23 @@
|
|
|
18
18
|
}
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
|
+
"DependsOn": [
|
|
22
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
23
|
+
],
|
|
24
|
+
"UpdateReplacePolicy": "Delete",
|
|
25
|
+
"DeletionPolicy": "Delete"
|
|
26
|
+
},
|
|
27
|
+
"IntegVSCodeServerSecretRetrieverOnEventLogGroup85022BA4": {
|
|
28
|
+
"Type": "AWS::Logs::LogGroup",
|
|
29
|
+
"Properties": {
|
|
30
|
+
"RetentionInDays": 5,
|
|
31
|
+
"Tags": [
|
|
32
|
+
{
|
|
33
|
+
"Key": "app",
|
|
34
|
+
"Value": "vscode-server"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
21
38
|
"UpdateReplacePolicy": "Delete",
|
|
22
39
|
"DeletionPolicy": "Delete"
|
|
23
40
|
},
|
|
@@ -50,7 +67,10 @@
|
|
|
50
67
|
]
|
|
51
68
|
}
|
|
52
69
|
]
|
|
53
|
-
}
|
|
70
|
+
},
|
|
71
|
+
"DependsOn": [
|
|
72
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
73
|
+
]
|
|
54
74
|
},
|
|
55
75
|
"IntegVSCodeServerSecretRetrieverOnEventHandlerServiceRoleDefaultPolicy2641E2C6": {
|
|
56
76
|
"Type": "AWS::IAM::Policy",
|
|
@@ -73,7 +93,10 @@
|
|
|
73
93
|
"Ref": "IntegVSCodeServerSecretRetrieverOnEventHandlerServiceRoleBEF8D4D2"
|
|
74
94
|
}
|
|
75
95
|
]
|
|
76
|
-
}
|
|
96
|
+
},
|
|
97
|
+
"DependsOn": [
|
|
98
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
99
|
+
]
|
|
77
100
|
},
|
|
78
101
|
"IntegVSCodeServerSecretRetrieverOnEventHandlerDD084AE3": {
|
|
79
102
|
"Type": "AWS::Lambda::Function",
|
|
@@ -86,6 +109,11 @@
|
|
|
86
109
|
},
|
|
87
110
|
"Description": "src/secret-retriever/secret-retriever.lambda.ts",
|
|
88
111
|
"Handler": "index.handler",
|
|
112
|
+
"LoggingConfig": {
|
|
113
|
+
"LogGroup": {
|
|
114
|
+
"Ref": "IntegVSCodeServerSecretRetrieverOnEventLogGroup85022BA4"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
89
117
|
"MemorySize": 128,
|
|
90
118
|
"Role": {
|
|
91
119
|
"Fn::GetAtt": [
|
|
@@ -97,25 +125,15 @@
|
|
|
97
125
|
"Timeout": 10
|
|
98
126
|
},
|
|
99
127
|
"DependsOn": [
|
|
128
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
100
129
|
"IntegVSCodeServerSecretRetrieverOnEventHandlerServiceRoleDefaultPolicy2641E2C6",
|
|
101
130
|
"IntegVSCodeServerSecretRetrieverOnEventHandlerServiceRoleBEF8D4D2"
|
|
102
131
|
]
|
|
103
132
|
},
|
|
104
|
-
"
|
|
133
|
+
"IntegVSCodeServerSecretRetrieveProviderLogGroupCA7357BF": {
|
|
105
134
|
"Type": "AWS::Logs::LogGroup",
|
|
106
135
|
"Properties": {
|
|
107
|
-
"
|
|
108
|
-
"Fn::Join": [
|
|
109
|
-
"",
|
|
110
|
-
[
|
|
111
|
-
"/aws/lambda/",
|
|
112
|
-
{
|
|
113
|
-
"Ref": "IntegVSCodeServerSecretRetrieverOnEventHandlerDD084AE3"
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
"RetentionInDays": 731,
|
|
136
|
+
"RetentionInDays": 5,
|
|
119
137
|
"Tags": [
|
|
120
138
|
{
|
|
121
139
|
"Key": "app",
|
|
@@ -123,8 +141,8 @@
|
|
|
123
141
|
}
|
|
124
142
|
]
|
|
125
143
|
},
|
|
126
|
-
"UpdateReplacePolicy": "
|
|
127
|
-
"DeletionPolicy": "
|
|
144
|
+
"UpdateReplacePolicy": "Delete",
|
|
145
|
+
"DeletionPolicy": "Delete"
|
|
128
146
|
},
|
|
129
147
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRole0F156B64": {
|
|
130
148
|
"Type": "AWS::IAM::Role",
|
|
@@ -155,7 +173,10 @@
|
|
|
155
173
|
]
|
|
156
174
|
}
|
|
157
175
|
]
|
|
158
|
-
}
|
|
176
|
+
},
|
|
177
|
+
"DependsOn": [
|
|
178
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
179
|
+
]
|
|
159
180
|
},
|
|
160
181
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRoleDefaultPolicyEC4DCEA0": {
|
|
161
182
|
"Type": "AWS::IAM::Policy",
|
|
@@ -207,7 +228,10 @@
|
|
|
207
228
|
"Ref": "IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRole0F156B64"
|
|
208
229
|
}
|
|
209
230
|
]
|
|
210
|
-
}
|
|
231
|
+
},
|
|
232
|
+
"DependsOn": [
|
|
233
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
234
|
+
]
|
|
211
235
|
},
|
|
212
236
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventCF035CA3": {
|
|
213
237
|
"Type": "AWS::Lambda::Function",
|
|
@@ -232,7 +256,10 @@
|
|
|
232
256
|
"Handler": "framework.onEvent",
|
|
233
257
|
"LoggingConfig": {
|
|
234
258
|
"ApplicationLogLevel": "FATAL",
|
|
235
|
-
"LogFormat": "JSON"
|
|
259
|
+
"LogFormat": "JSON",
|
|
260
|
+
"LogGroup": {
|
|
261
|
+
"Ref": "IntegVSCodeServerSecretRetrieveProviderLogGroupCA7357BF"
|
|
262
|
+
}
|
|
236
263
|
},
|
|
237
264
|
"Role": {
|
|
238
265
|
"Fn::GetAtt": [
|
|
@@ -244,35 +271,11 @@
|
|
|
244
271
|
"Timeout": 900
|
|
245
272
|
},
|
|
246
273
|
"DependsOn": [
|
|
274
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
247
275
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRoleDefaultPolicyEC4DCEA0",
|
|
248
276
|
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventServiceRole0F156B64"
|
|
249
277
|
]
|
|
250
278
|
},
|
|
251
|
-
"IntegVSCodeServerSecretRetrieveProviderframeworkonEventLogGroupBE7DEEA2": {
|
|
252
|
-
"Type": "AWS::Logs::LogGroup",
|
|
253
|
-
"Properties": {
|
|
254
|
-
"LogGroupName": {
|
|
255
|
-
"Fn::Join": [
|
|
256
|
-
"",
|
|
257
|
-
[
|
|
258
|
-
"/aws/lambda/",
|
|
259
|
-
{
|
|
260
|
-
"Ref": "IntegVSCodeServerSecretRetrieveProviderframeworkonEventCF035CA3"
|
|
261
|
-
}
|
|
262
|
-
]
|
|
263
|
-
]
|
|
264
|
-
},
|
|
265
|
-
"RetentionInDays": 731,
|
|
266
|
-
"Tags": [
|
|
267
|
-
{
|
|
268
|
-
"Key": "app",
|
|
269
|
-
"Value": "vscode-server"
|
|
270
|
-
}
|
|
271
|
-
]
|
|
272
|
-
},
|
|
273
|
-
"UpdateReplacePolicy": "Retain",
|
|
274
|
-
"DeletionPolicy": "Retain"
|
|
275
|
-
},
|
|
276
279
|
"IntegVSCodeServerSecretRetrieverCustomResource2F3DB8BD": {
|
|
277
280
|
"Type": "AWS::CloudFormation::CustomResource",
|
|
278
281
|
"Properties": {
|
|
@@ -287,6 +290,9 @@
|
|
|
287
290
|
"Ref": "IntegVSCodeServerpasswordsecret202A5DB3"
|
|
288
291
|
}
|
|
289
292
|
},
|
|
293
|
+
"DependsOn": [
|
|
294
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
295
|
+
],
|
|
290
296
|
"UpdateReplacePolicy": "Delete",
|
|
291
297
|
"DeletionPolicy": "Delete"
|
|
292
298
|
},
|
|
@@ -307,7 +313,10 @@
|
|
|
307
313
|
"Value": "IntegTestStackUbuntu26/IntegVSCodeServer/vpc"
|
|
308
314
|
}
|
|
309
315
|
]
|
|
310
|
-
}
|
|
316
|
+
},
|
|
317
|
+
"DependsOn": [
|
|
318
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
319
|
+
]
|
|
311
320
|
},
|
|
312
321
|
"IntegVSCodeServervpcpublicSubnet1Subnet928029A1": {
|
|
313
322
|
"Type": "AWS::EC2::Subnet",
|
|
@@ -343,7 +352,10 @@
|
|
|
343
352
|
"VpcId": {
|
|
344
353
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
345
354
|
}
|
|
346
|
-
}
|
|
355
|
+
},
|
|
356
|
+
"DependsOn": [
|
|
357
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
358
|
+
]
|
|
347
359
|
},
|
|
348
360
|
"IntegVSCodeServervpcpublicSubnet1RouteTableFD418D0B": {
|
|
349
361
|
"Type": "AWS::EC2::RouteTable",
|
|
@@ -361,7 +373,10 @@
|
|
|
361
373
|
"VpcId": {
|
|
362
374
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
363
375
|
}
|
|
364
|
-
}
|
|
376
|
+
},
|
|
377
|
+
"DependsOn": [
|
|
378
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
379
|
+
]
|
|
365
380
|
},
|
|
366
381
|
"IntegVSCodeServervpcpublicSubnet1RouteTableAssociation599AB80D": {
|
|
367
382
|
"Type": "AWS::EC2::SubnetRouteTableAssociation",
|
|
@@ -372,7 +387,10 @@
|
|
|
372
387
|
"SubnetId": {
|
|
373
388
|
"Ref": "IntegVSCodeServervpcpublicSubnet1Subnet928029A1"
|
|
374
389
|
}
|
|
375
|
-
}
|
|
390
|
+
},
|
|
391
|
+
"DependsOn": [
|
|
392
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
393
|
+
]
|
|
376
394
|
},
|
|
377
395
|
"IntegVSCodeServervpcpublicSubnet1DefaultRoute36845B30": {
|
|
378
396
|
"Type": "AWS::EC2::Route",
|
|
@@ -386,6 +404,7 @@
|
|
|
386
404
|
}
|
|
387
405
|
},
|
|
388
406
|
"DependsOn": [
|
|
407
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
389
408
|
"IntegVSCodeServervpcVPCGWA7CDED90"
|
|
390
409
|
]
|
|
391
410
|
},
|
|
@@ -423,7 +442,10 @@
|
|
|
423
442
|
"VpcId": {
|
|
424
443
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
425
444
|
}
|
|
426
|
-
}
|
|
445
|
+
},
|
|
446
|
+
"DependsOn": [
|
|
447
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
448
|
+
]
|
|
427
449
|
},
|
|
428
450
|
"IntegVSCodeServervpcpublicSubnet2RouteTableC264EFB4": {
|
|
429
451
|
"Type": "AWS::EC2::RouteTable",
|
|
@@ -441,7 +463,10 @@
|
|
|
441
463
|
"VpcId": {
|
|
442
464
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
443
465
|
}
|
|
444
|
-
}
|
|
466
|
+
},
|
|
467
|
+
"DependsOn": [
|
|
468
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
469
|
+
]
|
|
445
470
|
},
|
|
446
471
|
"IntegVSCodeServervpcpublicSubnet2RouteTableAssociationC62A1999": {
|
|
447
472
|
"Type": "AWS::EC2::SubnetRouteTableAssociation",
|
|
@@ -452,7 +477,10 @@
|
|
|
452
477
|
"SubnetId": {
|
|
453
478
|
"Ref": "IntegVSCodeServervpcpublicSubnet2SubnetE381654D"
|
|
454
479
|
}
|
|
455
|
-
}
|
|
480
|
+
},
|
|
481
|
+
"DependsOn": [
|
|
482
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
483
|
+
]
|
|
456
484
|
},
|
|
457
485
|
"IntegVSCodeServervpcpublicSubnet2DefaultRouteEAD8BC23": {
|
|
458
486
|
"Type": "AWS::EC2::Route",
|
|
@@ -466,6 +494,7 @@
|
|
|
466
494
|
}
|
|
467
495
|
},
|
|
468
496
|
"DependsOn": [
|
|
497
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
469
498
|
"IntegVSCodeServervpcVPCGWA7CDED90"
|
|
470
499
|
]
|
|
471
500
|
},
|
|
@@ -482,7 +511,10 @@
|
|
|
482
511
|
"Value": "IntegTestStackUbuntu26/IntegVSCodeServer/vpc"
|
|
483
512
|
}
|
|
484
513
|
]
|
|
485
|
-
}
|
|
514
|
+
},
|
|
515
|
+
"DependsOn": [
|
|
516
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
517
|
+
]
|
|
486
518
|
},
|
|
487
519
|
"IntegVSCodeServervpcVPCGWA7CDED90": {
|
|
488
520
|
"Type": "AWS::EC2::VPCGatewayAttachment",
|
|
@@ -493,7 +525,10 @@
|
|
|
493
525
|
"VpcId": {
|
|
494
526
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
495
527
|
}
|
|
496
|
-
}
|
|
528
|
+
},
|
|
529
|
+
"DependsOn": [
|
|
530
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
531
|
+
]
|
|
497
532
|
},
|
|
498
533
|
"IntegVSCodeServervpcRestrictDefaultSecurityGroupCustomResourceF6EA8ED1": {
|
|
499
534
|
"Type": "Custom::VpcRestrictDefaultSG",
|
|
@@ -514,6 +549,9 @@
|
|
|
514
549
|
"Ref": "AWS::AccountId"
|
|
515
550
|
}
|
|
516
551
|
},
|
|
552
|
+
"DependsOn": [
|
|
553
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
554
|
+
],
|
|
517
555
|
"UpdateReplacePolicy": "Delete",
|
|
518
556
|
"DeletionPolicy": "Delete"
|
|
519
557
|
},
|
|
@@ -538,7 +576,10 @@
|
|
|
538
576
|
"VpcId": {
|
|
539
577
|
"Ref": "IntegVSCodeServervpc93DDE887"
|
|
540
578
|
}
|
|
541
|
-
}
|
|
579
|
+
},
|
|
580
|
+
"DependsOn": [
|
|
581
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
582
|
+
]
|
|
542
583
|
},
|
|
543
584
|
"IntegVSCodeServercftoserversgfromIndirectPeer80C4F51713": {
|
|
544
585
|
"Type": "AWS::EC2::SecurityGroupIngress",
|
|
@@ -559,12 +600,15 @@
|
|
|
559
600
|
]
|
|
560
601
|
},
|
|
561
602
|
"ToPort": 80
|
|
562
|
-
}
|
|
603
|
+
},
|
|
604
|
+
"DependsOn": [
|
|
605
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
606
|
+
]
|
|
563
607
|
},
|
|
564
608
|
"IntegVSCodeServercfprefixlistIdGetPrefixListIdLogGroup171C2803": {
|
|
565
609
|
"Type": "AWS::Logs::LogGroup",
|
|
566
610
|
"Properties": {
|
|
567
|
-
"RetentionInDays":
|
|
611
|
+
"RetentionInDays": 5,
|
|
568
612
|
"Tags": [
|
|
569
613
|
{
|
|
570
614
|
"Key": "app",
|
|
@@ -590,7 +634,10 @@
|
|
|
590
634
|
],
|
|
591
635
|
"Version": "2012-10-17"
|
|
592
636
|
}
|
|
593
|
-
}
|
|
637
|
+
},
|
|
638
|
+
"DependsOn": [
|
|
639
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
640
|
+
]
|
|
594
641
|
},
|
|
595
642
|
"IntegVSCodeServercfprefixlistIdGetPrefixListIdF0821FFC": {
|
|
596
643
|
"Type": "Custom::AWS",
|
|
@@ -606,7 +653,8 @@
|
|
|
606
653
|
"InstallLatestAwsSdk": false
|
|
607
654
|
},
|
|
608
655
|
"DependsOn": [
|
|
609
|
-
"IntegVSCodeServercfprefixlistIdGetPrefixListIdCustomResourcePolicyAB3F4958"
|
|
656
|
+
"IntegVSCodeServercfprefixlistIdGetPrefixListIdCustomResourcePolicyAB3F4958",
|
|
657
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
610
658
|
],
|
|
611
659
|
"UpdateReplacePolicy": "Delete",
|
|
612
660
|
"DeletionPolicy": "Delete"
|
|
@@ -630,7 +678,10 @@
|
|
|
630
678
|
"Ref": "IntegVSCodeServercfprefixlistIdGetPrefixListIdRole1302B3E1"
|
|
631
679
|
}
|
|
632
680
|
]
|
|
633
|
-
}
|
|
681
|
+
},
|
|
682
|
+
"DependsOn": [
|
|
683
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
684
|
+
]
|
|
634
685
|
},
|
|
635
686
|
"IntegVSCodeServerserverinstancerole7745B5BB": {
|
|
636
687
|
"Type": "AWS::IAM::Role",
|
|
@@ -892,7 +943,10 @@
|
|
|
892
943
|
"PolicyName": "VSCodeInstanceInlinePolicy"
|
|
893
944
|
}
|
|
894
945
|
]
|
|
895
|
-
}
|
|
946
|
+
},
|
|
947
|
+
"DependsOn": [
|
|
948
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
949
|
+
]
|
|
896
950
|
},
|
|
897
951
|
"IntegVSCodeServerserverinstanceInstanceProfile6130979E": {
|
|
898
952
|
"Type": "AWS::IAM::InstanceProfile",
|
|
@@ -902,7 +956,10 @@
|
|
|
902
956
|
"Ref": "IntegVSCodeServerserverinstancerole7745B5BB"
|
|
903
957
|
}
|
|
904
958
|
]
|
|
905
|
-
}
|
|
959
|
+
},
|
|
960
|
+
"DependsOn": [
|
|
961
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
962
|
+
]
|
|
906
963
|
},
|
|
907
964
|
"IntegVSCodeServerserverinstance0A3D62D7": {
|
|
908
965
|
"Type": "AWS::EC2::Instance",
|
|
@@ -975,6 +1032,7 @@
|
|
|
975
1032
|
}
|
|
976
1033
|
},
|
|
977
1034
|
"DependsOn": [
|
|
1035
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA",
|
|
978
1036
|
"IntegVSCodeServerserverinstancerole7745B5BB",
|
|
979
1037
|
"IntegVSCodeServervpcpublicSubnet1DefaultRoute36845B30",
|
|
980
1038
|
"IntegVSCodeServervpcpublicSubnet1RouteTableAssociation599AB80D",
|
|
@@ -991,7 +1049,10 @@
|
|
|
991
1049
|
}
|
|
992
1050
|
},
|
|
993
1051
|
"LaunchTemplateName": "IntegTestStackUbuntu26IntegVSCodeServerserverinstanceLaunchTemplate8A56AECB"
|
|
994
|
-
}
|
|
1052
|
+
},
|
|
1053
|
+
"DependsOn": [
|
|
1054
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1055
|
+
]
|
|
995
1056
|
},
|
|
996
1057
|
"IntegVSCodeServercfcachepolicy8F5F1F69": {
|
|
997
1058
|
"Type": "AWS::CloudFront::CachePolicy",
|
|
@@ -1027,7 +1088,10 @@
|
|
|
1027
1088
|
}
|
|
1028
1089
|
}
|
|
1029
1090
|
}
|
|
1030
|
-
}
|
|
1091
|
+
},
|
|
1092
|
+
"DependsOn": [
|
|
1093
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1094
|
+
]
|
|
1031
1095
|
},
|
|
1032
1096
|
"IntegVSCodeServercfdistributionFDBE873F": {
|
|
1033
1097
|
"Type": "AWS::CloudFront::Distribution",
|
|
@@ -1099,7 +1163,10 @@
|
|
|
1099
1163
|
"Value": "vscode-server"
|
|
1100
1164
|
}
|
|
1101
1165
|
]
|
|
1102
|
-
}
|
|
1166
|
+
},
|
|
1167
|
+
"DependsOn": [
|
|
1168
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1169
|
+
]
|
|
1103
1170
|
},
|
|
1104
1171
|
"IntegVSCodeServerssmdocumentubuntuED32BACB": {
|
|
1105
1172
|
"Type": "AWS::SSM::Document",
|
|
@@ -1516,7 +1583,24 @@
|
|
|
1516
1583
|
"Value": "vscode-server"
|
|
1517
1584
|
}
|
|
1518
1585
|
]
|
|
1519
|
-
}
|
|
1586
|
+
},
|
|
1587
|
+
"DependsOn": [
|
|
1588
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1589
|
+
]
|
|
1590
|
+
},
|
|
1591
|
+
"IntegVSCodeServerInstallerOnEventLogGroup320D03D7": {
|
|
1592
|
+
"Type": "AWS::Logs::LogGroup",
|
|
1593
|
+
"Properties": {
|
|
1594
|
+
"RetentionInDays": 5,
|
|
1595
|
+
"Tags": [
|
|
1596
|
+
{
|
|
1597
|
+
"Key": "app",
|
|
1598
|
+
"Value": "vscode-server"
|
|
1599
|
+
}
|
|
1600
|
+
]
|
|
1601
|
+
},
|
|
1602
|
+
"UpdateReplacePolicy": "Delete",
|
|
1603
|
+
"DeletionPolicy": "Delete"
|
|
1520
1604
|
},
|
|
1521
1605
|
"IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF": {
|
|
1522
1606
|
"Type": "AWS::IAM::Role",
|
|
@@ -1547,7 +1631,10 @@
|
|
|
1547
1631
|
]
|
|
1548
1632
|
}
|
|
1549
1633
|
]
|
|
1550
|
-
}
|
|
1634
|
+
},
|
|
1635
|
+
"DependsOn": [
|
|
1636
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1637
|
+
]
|
|
1551
1638
|
},
|
|
1552
1639
|
"IntegVSCodeServerInstallerOnEventHandlerServiceRoleDefaultPolicy1CAD86C2": {
|
|
1553
1640
|
"Type": "AWS::IAM::Policy",
|
|
@@ -1640,7 +1727,10 @@
|
|
|
1640
1727
|
"Ref": "IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF"
|
|
1641
1728
|
}
|
|
1642
1729
|
]
|
|
1643
|
-
}
|
|
1730
|
+
},
|
|
1731
|
+
"DependsOn": [
|
|
1732
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1733
|
+
]
|
|
1644
1734
|
},
|
|
1645
1735
|
"IntegVSCodeServerInstallerOnEventHandler6FF91542": {
|
|
1646
1736
|
"Type": "AWS::Lambda::Function",
|
|
@@ -1653,6 +1743,11 @@
|
|
|
1653
1743
|
},
|
|
1654
1744
|
"Description": "src/installer/installer.lambda.ts",
|
|
1655
1745
|
"Handler": "index.handler",
|
|
1746
|
+
"LoggingConfig": {
|
|
1747
|
+
"LogGroup": {
|
|
1748
|
+
"Ref": "IntegVSCodeServerInstallerOnEventLogGroup320D03D7"
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1656
1751
|
"MemorySize": 512,
|
|
1657
1752
|
"Role": {
|
|
1658
1753
|
"Fn::GetAtt": [
|
|
@@ -1665,24 +1760,14 @@
|
|
|
1665
1760
|
},
|
|
1666
1761
|
"DependsOn": [
|
|
1667
1762
|
"IntegVSCodeServerInstallerOnEventHandlerServiceRoleDefaultPolicy1CAD86C2",
|
|
1668
|
-
"IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF"
|
|
1763
|
+
"IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF",
|
|
1764
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1669
1765
|
]
|
|
1670
1766
|
},
|
|
1671
|
-
"
|
|
1767
|
+
"IntegVSCodeServerInstallerProviderLogGroupC44B027B": {
|
|
1672
1768
|
"Type": "AWS::Logs::LogGroup",
|
|
1673
1769
|
"Properties": {
|
|
1674
|
-
"
|
|
1675
|
-
"Fn::Join": [
|
|
1676
|
-
"",
|
|
1677
|
-
[
|
|
1678
|
-
"/aws/lambda/",
|
|
1679
|
-
{
|
|
1680
|
-
"Ref": "IntegVSCodeServerInstallerOnEventHandler6FF91542"
|
|
1681
|
-
}
|
|
1682
|
-
]
|
|
1683
|
-
]
|
|
1684
|
-
},
|
|
1685
|
-
"RetentionInDays": 731,
|
|
1770
|
+
"RetentionInDays": 5,
|
|
1686
1771
|
"Tags": [
|
|
1687
1772
|
{
|
|
1688
1773
|
"Key": "app",
|
|
@@ -1690,8 +1775,8 @@
|
|
|
1690
1775
|
}
|
|
1691
1776
|
]
|
|
1692
1777
|
},
|
|
1693
|
-
"UpdateReplacePolicy": "
|
|
1694
|
-
"DeletionPolicy": "
|
|
1778
|
+
"UpdateReplacePolicy": "Delete",
|
|
1779
|
+
"DeletionPolicy": "Delete"
|
|
1695
1780
|
},
|
|
1696
1781
|
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F": {
|
|
1697
1782
|
"Type": "AWS::IAM::Role",
|
|
@@ -1722,7 +1807,10 @@
|
|
|
1722
1807
|
]
|
|
1723
1808
|
}
|
|
1724
1809
|
]
|
|
1725
|
-
}
|
|
1810
|
+
},
|
|
1811
|
+
"DependsOn": [
|
|
1812
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1813
|
+
]
|
|
1726
1814
|
},
|
|
1727
1815
|
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleDefaultPolicy3E54FC3A": {
|
|
1728
1816
|
"Type": "AWS::IAM::Policy",
|
|
@@ -1774,7 +1862,10 @@
|
|
|
1774
1862
|
"Ref": "IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F"
|
|
1775
1863
|
}
|
|
1776
1864
|
]
|
|
1777
|
-
}
|
|
1865
|
+
},
|
|
1866
|
+
"DependsOn": [
|
|
1867
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1868
|
+
]
|
|
1778
1869
|
},
|
|
1779
1870
|
"IntegVSCodeServerInstallerProviderframeworkonEvent7B6C1190": {
|
|
1780
1871
|
"Type": "AWS::Lambda::Function",
|
|
@@ -1799,7 +1890,10 @@
|
|
|
1799
1890
|
"Handler": "framework.onEvent",
|
|
1800
1891
|
"LoggingConfig": {
|
|
1801
1892
|
"ApplicationLogLevel": "FATAL",
|
|
1802
|
-
"LogFormat": "JSON"
|
|
1893
|
+
"LogFormat": "JSON",
|
|
1894
|
+
"LogGroup": {
|
|
1895
|
+
"Ref": "IntegVSCodeServerInstallerProviderLogGroupC44B027B"
|
|
1896
|
+
}
|
|
1803
1897
|
},
|
|
1804
1898
|
"Role": {
|
|
1805
1899
|
"Fn::GetAtt": [
|
|
@@ -1812,33 +1906,26 @@
|
|
|
1812
1906
|
},
|
|
1813
1907
|
"DependsOn": [
|
|
1814
1908
|
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleDefaultPolicy3E54FC3A",
|
|
1815
|
-
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F"
|
|
1909
|
+
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F",
|
|
1910
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1816
1911
|
]
|
|
1817
1912
|
},
|
|
1818
|
-
"
|
|
1819
|
-
"Type": "
|
|
1913
|
+
"IntegVSCodeServerInstallLogRetentionF3D42FD5": {
|
|
1914
|
+
"Type": "Custom::LogRetention",
|
|
1820
1915
|
"Properties": {
|
|
1821
|
-
"
|
|
1822
|
-
"Fn::
|
|
1823
|
-
"",
|
|
1824
|
-
|
|
1825
|
-
"/aws/lambda/",
|
|
1826
|
-
{
|
|
1827
|
-
"Ref": "IntegVSCodeServerInstallerProviderframeworkonEvent7B6C1190"
|
|
1828
|
-
}
|
|
1829
|
-
]
|
|
1916
|
+
"ServiceToken": {
|
|
1917
|
+
"Fn::GetAtt": [
|
|
1918
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A",
|
|
1919
|
+
"Arn"
|
|
1830
1920
|
]
|
|
1831
1921
|
},
|
|
1832
|
-
"
|
|
1833
|
-
"
|
|
1834
|
-
|
|
1835
|
-
"Key": "app",
|
|
1836
|
-
"Value": "vscode-server"
|
|
1837
|
-
}
|
|
1838
|
-
]
|
|
1922
|
+
"LogGroupName": "/aws/ssm/vscode-server-ubuntu-IntegTestStackUbuntu26",
|
|
1923
|
+
"RetentionInDays": 5,
|
|
1924
|
+
"RemovalPolicy": "destroy"
|
|
1839
1925
|
},
|
|
1840
|
-
"
|
|
1841
|
-
|
|
1926
|
+
"DependsOn": [
|
|
1927
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1928
|
+
]
|
|
1842
1929
|
},
|
|
1843
1930
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68": {
|
|
1844
1931
|
"Type": "AWS::CloudFormation::CustomResource",
|
|
@@ -1862,9 +1949,24 @@
|
|
|
1862
1949
|
]
|
|
1863
1950
|
}
|
|
1864
1951
|
},
|
|
1952
|
+
"DependsOn": [
|
|
1953
|
+
"IntegVSCodeServerInstallLogRetentionF3D42FD5",
|
|
1954
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1955
|
+
],
|
|
1865
1956
|
"UpdateReplacePolicy": "Delete",
|
|
1866
1957
|
"DeletionPolicy": "Delete"
|
|
1867
1958
|
},
|
|
1959
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA": {
|
|
1960
|
+
"Type": "AWS::CloudFormation::WaitConditionHandle",
|
|
1961
|
+
"DependsOn": [
|
|
1962
|
+
"IntegVSCodeServercfprefixlistIdGetPrefixListIdLogGroup171C2803",
|
|
1963
|
+
"IntegVSCodeServerInstallerOnEventLogGroup320D03D7",
|
|
1964
|
+
"IntegVSCodeServerInstallerProviderLogGroupC44B027B",
|
|
1965
|
+
"IntegVSCodeServerSecretRetrieveProviderLogGroupCA7357BF",
|
|
1966
|
+
"IntegVSCodeServerSecretRetrieverOnEventLogGroup85022BA4",
|
|
1967
|
+
"VpcRestrictDefaultSgLogGroup736DE614"
|
|
1968
|
+
]
|
|
1969
|
+
},
|
|
1868
1970
|
"CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0": {
|
|
1869
1971
|
"Type": "AWS::IAM::Role",
|
|
1870
1972
|
"Properties": {
|
|
@@ -1953,12 +2055,25 @@
|
|
|
1953
2055
|
]
|
|
1954
2056
|
},
|
|
1955
2057
|
"Runtime": "nodejs24.x",
|
|
1956
|
-
"Description": "Lambda function for removing all inbound/outbound rules from the VPC default security group"
|
|
2058
|
+
"Description": "Lambda function for removing all inbound/outbound rules from the VPC default security group",
|
|
2059
|
+
"LoggingConfig": {
|
|
2060
|
+
"LogGroup": {
|
|
2061
|
+
"Ref": "VpcRestrictDefaultSgLogGroup736DE614"
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
1957
2064
|
},
|
|
1958
2065
|
"DependsOn": [
|
|
1959
2066
|
"CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0"
|
|
1960
2067
|
]
|
|
1961
2068
|
},
|
|
2069
|
+
"VpcRestrictDefaultSgLogGroup736DE614": {
|
|
2070
|
+
"Type": "AWS::Logs::LogGroup",
|
|
2071
|
+
"Properties": {
|
|
2072
|
+
"RetentionInDays": 5
|
|
2073
|
+
},
|
|
2074
|
+
"UpdateReplacePolicy": "Delete",
|
|
2075
|
+
"DeletionPolicy": "Delete"
|
|
2076
|
+
},
|
|
1962
2077
|
"AWS679f53fac002430cb0da5b7982bd22872D164C4C": {
|
|
1963
2078
|
"Type": "AWS::Lambda::Function",
|
|
1964
2079
|
"Properties": {
|
|
@@ -1987,7 +2102,7 @@
|
|
|
1987
2102
|
"IntegVSCodeServercfprefixlistIdGetPrefixListIdRole1302B3E1"
|
|
1988
2103
|
]
|
|
1989
2104
|
},
|
|
1990
|
-
"
|
|
2105
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB": {
|
|
1991
2106
|
"Type": "AWS::IAM::Role",
|
|
1992
2107
|
"Properties": {
|
|
1993
2108
|
"AssumeRolePolicyDocument": {
|
|
@@ -2018,53 +2133,87 @@
|
|
|
2018
2133
|
]
|
|
2019
2134
|
}
|
|
2020
2135
|
},
|
|
2021
|
-
"
|
|
2136
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB": {
|
|
2137
|
+
"Type": "AWS::IAM::Policy",
|
|
2138
|
+
"Properties": {
|
|
2139
|
+
"PolicyDocument": {
|
|
2140
|
+
"Statement": [
|
|
2141
|
+
{
|
|
2142
|
+
"Action": [
|
|
2143
|
+
"logs:DeleteRetentionPolicy",
|
|
2144
|
+
"logs:PutRetentionPolicy"
|
|
2145
|
+
],
|
|
2146
|
+
"Effect": "Allow",
|
|
2147
|
+
"Resource": "*"
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
"Action": "logs:DeleteLogGroup",
|
|
2151
|
+
"Effect": "Allow",
|
|
2152
|
+
"Resource": {
|
|
2153
|
+
"Fn::Join": [
|
|
2154
|
+
"",
|
|
2155
|
+
[
|
|
2156
|
+
"arn:",
|
|
2157
|
+
{
|
|
2158
|
+
"Ref": "AWS::Partition"
|
|
2159
|
+
},
|
|
2160
|
+
":logs:",
|
|
2161
|
+
{
|
|
2162
|
+
"Ref": "AWS::Region"
|
|
2163
|
+
},
|
|
2164
|
+
":",
|
|
2165
|
+
{
|
|
2166
|
+
"Ref": "AWS::AccountId"
|
|
2167
|
+
},
|
|
2168
|
+
":log-group:/aws/ssm/vscode-server-ubuntu-IntegTestStackUbuntu26:*"
|
|
2169
|
+
]
|
|
2170
|
+
]
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
],
|
|
2174
|
+
"Version": "2012-10-17"
|
|
2175
|
+
},
|
|
2176
|
+
"PolicyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB",
|
|
2177
|
+
"Roles": [
|
|
2178
|
+
{
|
|
2179
|
+
"Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB"
|
|
2180
|
+
}
|
|
2181
|
+
]
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A": {
|
|
2022
2185
|
"Type": "AWS::Lambda::Function",
|
|
2023
2186
|
"Properties": {
|
|
2187
|
+
"Handler": "index.handler",
|
|
2188
|
+
"Runtime": "nodejs24.x",
|
|
2189
|
+
"Timeout": 900,
|
|
2024
2190
|
"Code": {
|
|
2025
2191
|
"S3Bucket": {
|
|
2026
2192
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
2027
2193
|
},
|
|
2028
|
-
"S3Key": "
|
|
2194
|
+
"S3Key": "2819175352ad1ce0dae768e83fc328fb70fb5f10b4a8ff0ccbcb791f02b0716d.zip"
|
|
2029
2195
|
},
|
|
2030
|
-
"Handler": "index.handler",
|
|
2031
2196
|
"Role": {
|
|
2032
2197
|
"Fn::GetAtt": [
|
|
2033
|
-
"
|
|
2198
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB",
|
|
2034
2199
|
"Arn"
|
|
2035
2200
|
]
|
|
2036
|
-
}
|
|
2037
|
-
"Runtime": "nodejs20.x",
|
|
2038
|
-
"Timeout": 30
|
|
2201
|
+
}
|
|
2039
2202
|
},
|
|
2040
2203
|
"DependsOn": [
|
|
2041
|
-
"
|
|
2204
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB",
|
|
2205
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB"
|
|
2042
2206
|
]
|
|
2043
2207
|
},
|
|
2044
|
-
"
|
|
2045
|
-
"Type": "
|
|
2208
|
+
"LoginHandlerLogGroup2351D4F9": {
|
|
2209
|
+
"Type": "AWS::Logs::LogGroup",
|
|
2046
2210
|
"Properties": {
|
|
2047
|
-
"
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
]
|
|
2052
|
-
},
|
|
2053
|
-
"LogGroupName": {
|
|
2054
|
-
"Fn::Join": [
|
|
2055
|
-
"",
|
|
2056
|
-
[
|
|
2057
|
-
"/aws/lambda/",
|
|
2058
|
-
{
|
|
2059
|
-
"Ref": "loginhandler99CCCCFD"
|
|
2060
|
-
}
|
|
2061
|
-
]
|
|
2062
|
-
]
|
|
2063
|
-
},
|
|
2064
|
-
"RetentionInDays": 1
|
|
2065
|
-
}
|
|
2211
|
+
"RetentionInDays": 5
|
|
2212
|
+
},
|
|
2213
|
+
"UpdateReplacePolicy": "Delete",
|
|
2214
|
+
"DeletionPolicy": "Delete"
|
|
2066
2215
|
},
|
|
2067
|
-
"
|
|
2216
|
+
"loginhandlerServiceRole330B0B32": {
|
|
2068
2217
|
"Type": "AWS::IAM::Role",
|
|
2069
2218
|
"Properties": {
|
|
2070
2219
|
"AssumeRolePolicyDocument": {
|
|
@@ -2095,52 +2244,32 @@
|
|
|
2095
2244
|
]
|
|
2096
2245
|
}
|
|
2097
2246
|
},
|
|
2098
|
-
"
|
|
2099
|
-
"Type": "AWS::IAM::Policy",
|
|
2100
|
-
"Properties": {
|
|
2101
|
-
"PolicyDocument": {
|
|
2102
|
-
"Statement": [
|
|
2103
|
-
{
|
|
2104
|
-
"Action": [
|
|
2105
|
-
"logs:DeleteRetentionPolicy",
|
|
2106
|
-
"logs:PutRetentionPolicy"
|
|
2107
|
-
],
|
|
2108
|
-
"Effect": "Allow",
|
|
2109
|
-
"Resource": "*"
|
|
2110
|
-
}
|
|
2111
|
-
],
|
|
2112
|
-
"Version": "2012-10-17"
|
|
2113
|
-
},
|
|
2114
|
-
"PolicyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB",
|
|
2115
|
-
"Roles": [
|
|
2116
|
-
{
|
|
2117
|
-
"Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB"
|
|
2118
|
-
}
|
|
2119
|
-
]
|
|
2120
|
-
}
|
|
2121
|
-
},
|
|
2122
|
-
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A": {
|
|
2247
|
+
"loginhandler99CCCCFD": {
|
|
2123
2248
|
"Type": "AWS::Lambda::Function",
|
|
2124
2249
|
"Properties": {
|
|
2125
|
-
"Handler": "index.handler",
|
|
2126
|
-
"Runtime": "nodejs24.x",
|
|
2127
|
-
"Timeout": 900,
|
|
2128
2250
|
"Code": {
|
|
2129
2251
|
"S3Bucket": {
|
|
2130
2252
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
2131
2253
|
},
|
|
2132
|
-
"S3Key": "
|
|
2254
|
+
"S3Key": "cf551b9486b7d659176866961b59c229e25bb1d1de3e5fd5d1ca4bca396c316d.zip"
|
|
2255
|
+
},
|
|
2256
|
+
"Handler": "index.handler",
|
|
2257
|
+
"LoggingConfig": {
|
|
2258
|
+
"LogGroup": {
|
|
2259
|
+
"Ref": "LoginHandlerLogGroup2351D4F9"
|
|
2260
|
+
}
|
|
2133
2261
|
},
|
|
2134
2262
|
"Role": {
|
|
2135
2263
|
"Fn::GetAtt": [
|
|
2136
|
-
"
|
|
2264
|
+
"loginhandlerServiceRole330B0B32",
|
|
2137
2265
|
"Arn"
|
|
2138
2266
|
]
|
|
2139
|
-
}
|
|
2267
|
+
},
|
|
2268
|
+
"Runtime": "nodejs20.x",
|
|
2269
|
+
"Timeout": 30
|
|
2140
2270
|
},
|
|
2141
2271
|
"DependsOn": [
|
|
2142
|
-
"
|
|
2143
|
-
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB"
|
|
2272
|
+
"loginhandlerServiceRole330B0B32"
|
|
2144
2273
|
]
|
|
2145
2274
|
}
|
|
2146
2275
|
},
|