@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": "Environement",
|
|
46
|
+
"Value": "IntegTestAl2023"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"Key": "IntegTest",
|
|
50
|
+
"Value": "True"
|
|
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": "Environement",
|
|
289
|
-
"Value": "IntegTestAl2023"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"Key": "IntegTest",
|
|
293
|
-
"Value": "True"
|
|
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": "IntegTestStackAl2023/IntegVSCodeServer/vpc"
|
|
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": "IntegTestStackAl2023/IntegVSCodeServer/vpc"
|
|
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": "IntegTestStackAl2023IntegVSCodeServerserverinstanceLaunchTemplate52F35056"
|
|
1090
|
-
}
|
|
1148
|
+
},
|
|
1149
|
+
"DependsOn": [
|
|
1150
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1151
|
+
]
|
|
1091
1152
|
},
|
|
1092
1153
|
"IntegVSCodeServercfcachepolicy8F5F1F69": {
|
|
1093
1154
|
"Type": "AWS::CloudFront::CachePolicy",
|
|
@@ -1123,7 +1184,10 @@
|
|
|
1123
1184
|
}
|
|
1124
1185
|
}
|
|
1125
1186
|
}
|
|
1126
|
-
}
|
|
1187
|
+
},
|
|
1188
|
+
"DependsOn": [
|
|
1189
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1190
|
+
]
|
|
1127
1191
|
},
|
|
1128
1192
|
"IntegVSCodeServercfdistributionFDBE873F": {
|
|
1129
1193
|
"Type": "AWS::CloudFront::Distribution",
|
|
@@ -1203,7 +1267,10 @@
|
|
|
1203
1267
|
"Value": "True"
|
|
1204
1268
|
}
|
|
1205
1269
|
]
|
|
1206
|
-
}
|
|
1270
|
+
},
|
|
1271
|
+
"DependsOn": [
|
|
1272
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1273
|
+
]
|
|
1207
1274
|
},
|
|
1208
1275
|
"IntegVSCodeServerssmdocumental2023E45E1BE3": {
|
|
1209
1276
|
"Type": "AWS::SSM::Document",
|
|
@@ -1598,7 +1665,32 @@
|
|
|
1598
1665
|
"Value": "True"
|
|
1599
1666
|
}
|
|
1600
1667
|
]
|
|
1601
|
-
}
|
|
1668
|
+
},
|
|
1669
|
+
"DependsOn": [
|
|
1670
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1671
|
+
]
|
|
1672
|
+
},
|
|
1673
|
+
"IntegVSCodeServerInstallerOnEventLogGroup320D03D7": {
|
|
1674
|
+
"Type": "AWS::Logs::LogGroup",
|
|
1675
|
+
"Properties": {
|
|
1676
|
+
"RetentionInDays": 5,
|
|
1677
|
+
"Tags": [
|
|
1678
|
+
{
|
|
1679
|
+
"Key": "app",
|
|
1680
|
+
"Value": "vscode-server"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"Key": "Environement",
|
|
1684
|
+
"Value": "IntegTestAl2023"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"Key": "IntegTest",
|
|
1688
|
+
"Value": "True"
|
|
1689
|
+
}
|
|
1690
|
+
]
|
|
1691
|
+
},
|
|
1692
|
+
"UpdateReplacePolicy": "Delete",
|
|
1693
|
+
"DeletionPolicy": "Delete"
|
|
1602
1694
|
},
|
|
1603
1695
|
"IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF": {
|
|
1604
1696
|
"Type": "AWS::IAM::Role",
|
|
@@ -1629,7 +1721,10 @@
|
|
|
1629
1721
|
]
|
|
1630
1722
|
}
|
|
1631
1723
|
]
|
|
1632
|
-
}
|
|
1724
|
+
},
|
|
1725
|
+
"DependsOn": [
|
|
1726
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1727
|
+
]
|
|
1633
1728
|
},
|
|
1634
1729
|
"IntegVSCodeServerInstallerOnEventHandlerServiceRoleDefaultPolicy1CAD86C2": {
|
|
1635
1730
|
"Type": "AWS::IAM::Policy",
|
|
@@ -1722,7 +1817,10 @@
|
|
|
1722
1817
|
"Ref": "IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF"
|
|
1723
1818
|
}
|
|
1724
1819
|
]
|
|
1725
|
-
}
|
|
1820
|
+
},
|
|
1821
|
+
"DependsOn": [
|
|
1822
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1823
|
+
]
|
|
1726
1824
|
},
|
|
1727
1825
|
"IntegVSCodeServerInstallerOnEventHandler6FF91542": {
|
|
1728
1826
|
"Type": "AWS::Lambda::Function",
|
|
@@ -1735,6 +1833,11 @@
|
|
|
1735
1833
|
},
|
|
1736
1834
|
"Description": "src/installer/installer.lambda.ts",
|
|
1737
1835
|
"Handler": "index.handler",
|
|
1836
|
+
"LoggingConfig": {
|
|
1837
|
+
"LogGroup": {
|
|
1838
|
+
"Ref": "IntegVSCodeServerInstallerOnEventLogGroup320D03D7"
|
|
1839
|
+
}
|
|
1840
|
+
},
|
|
1738
1841
|
"MemorySize": 512,
|
|
1739
1842
|
"Role": {
|
|
1740
1843
|
"Fn::GetAtt": [
|
|
@@ -1747,24 +1850,14 @@
|
|
|
1747
1850
|
},
|
|
1748
1851
|
"DependsOn": [
|
|
1749
1852
|
"IntegVSCodeServerInstallerOnEventHandlerServiceRoleDefaultPolicy1CAD86C2",
|
|
1750
|
-
"IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF"
|
|
1853
|
+
"IntegVSCodeServerInstallerOnEventHandlerServiceRole59651FEF",
|
|
1854
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1751
1855
|
]
|
|
1752
1856
|
},
|
|
1753
|
-
"
|
|
1857
|
+
"IntegVSCodeServerInstallerProviderLogGroupC44B027B": {
|
|
1754
1858
|
"Type": "AWS::Logs::LogGroup",
|
|
1755
1859
|
"Properties": {
|
|
1756
|
-
"
|
|
1757
|
-
"Fn::Join": [
|
|
1758
|
-
"",
|
|
1759
|
-
[
|
|
1760
|
-
"/aws/lambda/",
|
|
1761
|
-
{
|
|
1762
|
-
"Ref": "IntegVSCodeServerInstallerOnEventHandler6FF91542"
|
|
1763
|
-
}
|
|
1764
|
-
]
|
|
1765
|
-
]
|
|
1766
|
-
},
|
|
1767
|
-
"RetentionInDays": 731,
|
|
1860
|
+
"RetentionInDays": 5,
|
|
1768
1861
|
"Tags": [
|
|
1769
1862
|
{
|
|
1770
1863
|
"Key": "app",
|
|
@@ -1780,8 +1873,8 @@
|
|
|
1780
1873
|
}
|
|
1781
1874
|
]
|
|
1782
1875
|
},
|
|
1783
|
-
"UpdateReplacePolicy": "
|
|
1784
|
-
"DeletionPolicy": "
|
|
1876
|
+
"UpdateReplacePolicy": "Delete",
|
|
1877
|
+
"DeletionPolicy": "Delete"
|
|
1785
1878
|
},
|
|
1786
1879
|
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F": {
|
|
1787
1880
|
"Type": "AWS::IAM::Role",
|
|
@@ -1812,7 +1905,10 @@
|
|
|
1812
1905
|
]
|
|
1813
1906
|
}
|
|
1814
1907
|
]
|
|
1815
|
-
}
|
|
1908
|
+
},
|
|
1909
|
+
"DependsOn": [
|
|
1910
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1911
|
+
]
|
|
1816
1912
|
},
|
|
1817
1913
|
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleDefaultPolicy3E54FC3A": {
|
|
1818
1914
|
"Type": "AWS::IAM::Policy",
|
|
@@ -1864,7 +1960,10 @@
|
|
|
1864
1960
|
"Ref": "IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F"
|
|
1865
1961
|
}
|
|
1866
1962
|
]
|
|
1867
|
-
}
|
|
1963
|
+
},
|
|
1964
|
+
"DependsOn": [
|
|
1965
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1966
|
+
]
|
|
1868
1967
|
},
|
|
1869
1968
|
"IntegVSCodeServerInstallerProviderframeworkonEvent7B6C1190": {
|
|
1870
1969
|
"Type": "AWS::Lambda::Function",
|
|
@@ -1889,7 +1988,10 @@
|
|
|
1889
1988
|
"Handler": "framework.onEvent",
|
|
1890
1989
|
"LoggingConfig": {
|
|
1891
1990
|
"ApplicationLogLevel": "FATAL",
|
|
1892
|
-
"LogFormat": "JSON"
|
|
1991
|
+
"LogFormat": "JSON",
|
|
1992
|
+
"LogGroup": {
|
|
1993
|
+
"Ref": "IntegVSCodeServerInstallerProviderLogGroupC44B027B"
|
|
1994
|
+
}
|
|
1893
1995
|
},
|
|
1894
1996
|
"Role": {
|
|
1895
1997
|
"Fn::GetAtt": [
|
|
@@ -1902,41 +2004,26 @@
|
|
|
1902
2004
|
},
|
|
1903
2005
|
"DependsOn": [
|
|
1904
2006
|
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleDefaultPolicy3E54FC3A",
|
|
1905
|
-
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F"
|
|
2007
|
+
"IntegVSCodeServerInstallerProviderframeworkonEventServiceRoleA509851F",
|
|
2008
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
1906
2009
|
]
|
|
1907
2010
|
},
|
|
1908
|
-
"
|
|
1909
|
-
"Type": "
|
|
2011
|
+
"IntegVSCodeServerInstallLogRetentionF3D42FD5": {
|
|
2012
|
+
"Type": "Custom::LogRetention",
|
|
1910
2013
|
"Properties": {
|
|
1911
|
-
"
|
|
1912
|
-
"Fn::
|
|
1913
|
-
"",
|
|
1914
|
-
|
|
1915
|
-
"/aws/lambda/",
|
|
1916
|
-
{
|
|
1917
|
-
"Ref": "IntegVSCodeServerInstallerProviderframeworkonEvent7B6C1190"
|
|
1918
|
-
}
|
|
1919
|
-
]
|
|
2014
|
+
"ServiceToken": {
|
|
2015
|
+
"Fn::GetAtt": [
|
|
2016
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A",
|
|
2017
|
+
"Arn"
|
|
1920
2018
|
]
|
|
1921
2019
|
},
|
|
1922
|
-
"
|
|
1923
|
-
"
|
|
1924
|
-
|
|
1925
|
-
"Key": "app",
|
|
1926
|
-
"Value": "vscode-server"
|
|
1927
|
-
},
|
|
1928
|
-
{
|
|
1929
|
-
"Key": "Environement",
|
|
1930
|
-
"Value": "IntegTestAl2023"
|
|
1931
|
-
},
|
|
1932
|
-
{
|
|
1933
|
-
"Key": "IntegTest",
|
|
1934
|
-
"Value": "True"
|
|
1935
|
-
}
|
|
1936
|
-
]
|
|
2020
|
+
"LogGroupName": "/aws/ssm/vscode-server-al2023-IntegTestStackAl2023",
|
|
2021
|
+
"RetentionInDays": 5,
|
|
2022
|
+
"RemovalPolicy": "destroy"
|
|
1937
2023
|
},
|
|
1938
|
-
"
|
|
1939
|
-
|
|
2024
|
+
"DependsOn": [
|
|
2025
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2026
|
+
]
|
|
1940
2027
|
},
|
|
1941
2028
|
"IntegVSCodeServerSSMInstallerCustomResource9F9AFE68": {
|
|
1942
2029
|
"Type": "AWS::CloudFormation::CustomResource",
|
|
@@ -1960,9 +2047,24 @@
|
|
|
1960
2047
|
]
|
|
1961
2048
|
}
|
|
1962
2049
|
},
|
|
2050
|
+
"DependsOn": [
|
|
2051
|
+
"IntegVSCodeServerInstallLogRetentionF3D42FD5",
|
|
2052
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA"
|
|
2053
|
+
],
|
|
1963
2054
|
"UpdateReplacePolicy": "Delete",
|
|
1964
2055
|
"DeletionPolicy": "Delete"
|
|
1965
2056
|
},
|
|
2057
|
+
"IntegVSCodeServerLogGroupsDeletedLast4BADFCCA": {
|
|
2058
|
+
"Type": "AWS::CloudFormation::WaitConditionHandle",
|
|
2059
|
+
"DependsOn": [
|
|
2060
|
+
"IntegVSCodeServercfprefixlistIdGetPrefixListIdLogGroup171C2803",
|
|
2061
|
+
"IntegVSCodeServerInstallerOnEventLogGroup320D03D7",
|
|
2062
|
+
"IntegVSCodeServerInstallerProviderLogGroupC44B027B",
|
|
2063
|
+
"IntegVSCodeServerSecretRetrieveProviderLogGroupCA7357BF",
|
|
2064
|
+
"IntegVSCodeServerSecretRetrieverOnEventLogGroup85022BA4",
|
|
2065
|
+
"VpcRestrictDefaultSgLogGroup736DE614"
|
|
2066
|
+
]
|
|
2067
|
+
},
|
|
1966
2068
|
"CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0": {
|
|
1967
2069
|
"Type": "AWS::IAM::Role",
|
|
1968
2070
|
"Properties": {
|
|
@@ -2051,12 +2153,25 @@
|
|
|
2051
2153
|
]
|
|
2052
2154
|
},
|
|
2053
2155
|
"Runtime": "nodejs24.x",
|
|
2054
|
-
"Description": "Lambda function for removing all inbound/outbound rules from the VPC default security group"
|
|
2156
|
+
"Description": "Lambda function for removing all inbound/outbound rules from the VPC default security group",
|
|
2157
|
+
"LoggingConfig": {
|
|
2158
|
+
"LogGroup": {
|
|
2159
|
+
"Ref": "VpcRestrictDefaultSgLogGroup736DE614"
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2055
2162
|
},
|
|
2056
2163
|
"DependsOn": [
|
|
2057
2164
|
"CustomVpcRestrictDefaultSGCustomResourceProviderRole26592FE0"
|
|
2058
2165
|
]
|
|
2059
2166
|
},
|
|
2167
|
+
"VpcRestrictDefaultSgLogGroup736DE614": {
|
|
2168
|
+
"Type": "AWS::Logs::LogGroup",
|
|
2169
|
+
"Properties": {
|
|
2170
|
+
"RetentionInDays": 5
|
|
2171
|
+
},
|
|
2172
|
+
"UpdateReplacePolicy": "Delete",
|
|
2173
|
+
"DeletionPolicy": "Delete"
|
|
2174
|
+
},
|
|
2060
2175
|
"AWS679f53fac002430cb0da5b7982bd22872D164C4C": {
|
|
2061
2176
|
"Type": "AWS::Lambda::Function",
|
|
2062
2177
|
"Properties": {
|
|
@@ -2085,7 +2200,7 @@
|
|
|
2085
2200
|
"IntegVSCodeServercfprefixlistIdGetPrefixListIdRole1302B3E1"
|
|
2086
2201
|
]
|
|
2087
2202
|
},
|
|
2088
|
-
"
|
|
2203
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB": {
|
|
2089
2204
|
"Type": "AWS::IAM::Role",
|
|
2090
2205
|
"Properties": {
|
|
2091
2206
|
"AssumeRolePolicyDocument": {
|
|
@@ -2116,53 +2231,87 @@
|
|
|
2116
2231
|
]
|
|
2117
2232
|
}
|
|
2118
2233
|
},
|
|
2119
|
-
"
|
|
2234
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB": {
|
|
2235
|
+
"Type": "AWS::IAM::Policy",
|
|
2236
|
+
"Properties": {
|
|
2237
|
+
"PolicyDocument": {
|
|
2238
|
+
"Statement": [
|
|
2239
|
+
{
|
|
2240
|
+
"Action": [
|
|
2241
|
+
"logs:DeleteRetentionPolicy",
|
|
2242
|
+
"logs:PutRetentionPolicy"
|
|
2243
|
+
],
|
|
2244
|
+
"Effect": "Allow",
|
|
2245
|
+
"Resource": "*"
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
"Action": "logs:DeleteLogGroup",
|
|
2249
|
+
"Effect": "Allow",
|
|
2250
|
+
"Resource": {
|
|
2251
|
+
"Fn::Join": [
|
|
2252
|
+
"",
|
|
2253
|
+
[
|
|
2254
|
+
"arn:",
|
|
2255
|
+
{
|
|
2256
|
+
"Ref": "AWS::Partition"
|
|
2257
|
+
},
|
|
2258
|
+
":logs:",
|
|
2259
|
+
{
|
|
2260
|
+
"Ref": "AWS::Region"
|
|
2261
|
+
},
|
|
2262
|
+
":",
|
|
2263
|
+
{
|
|
2264
|
+
"Ref": "AWS::AccountId"
|
|
2265
|
+
},
|
|
2266
|
+
":log-group:/aws/ssm/vscode-server-al2023-IntegTestStackAl2023:*"
|
|
2267
|
+
]
|
|
2268
|
+
]
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
],
|
|
2272
|
+
"Version": "2012-10-17"
|
|
2273
|
+
},
|
|
2274
|
+
"PolicyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB",
|
|
2275
|
+
"Roles": [
|
|
2276
|
+
{
|
|
2277
|
+
"Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB"
|
|
2278
|
+
}
|
|
2279
|
+
]
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A": {
|
|
2120
2283
|
"Type": "AWS::Lambda::Function",
|
|
2121
2284
|
"Properties": {
|
|
2285
|
+
"Handler": "index.handler",
|
|
2286
|
+
"Runtime": "nodejs24.x",
|
|
2287
|
+
"Timeout": 900,
|
|
2122
2288
|
"Code": {
|
|
2123
2289
|
"S3Bucket": {
|
|
2124
2290
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
2125
2291
|
},
|
|
2126
|
-
"S3Key": "
|
|
2292
|
+
"S3Key": "2819175352ad1ce0dae768e83fc328fb70fb5f10b4a8ff0ccbcb791f02b0716d.zip"
|
|
2127
2293
|
},
|
|
2128
|
-
"Handler": "index.handler",
|
|
2129
2294
|
"Role": {
|
|
2130
2295
|
"Fn::GetAtt": [
|
|
2131
|
-
"
|
|
2296
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB",
|
|
2132
2297
|
"Arn"
|
|
2133
2298
|
]
|
|
2134
|
-
}
|
|
2135
|
-
"Runtime": "nodejs20.x",
|
|
2136
|
-
"Timeout": 30
|
|
2299
|
+
}
|
|
2137
2300
|
},
|
|
2138
2301
|
"DependsOn": [
|
|
2139
|
-
"
|
|
2302
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB",
|
|
2303
|
+
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB"
|
|
2140
2304
|
]
|
|
2141
2305
|
},
|
|
2142
|
-
"
|
|
2143
|
-
"Type": "
|
|
2306
|
+
"LoginHandlerLogGroup2351D4F9": {
|
|
2307
|
+
"Type": "AWS::Logs::LogGroup",
|
|
2144
2308
|
"Properties": {
|
|
2145
|
-
"
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
]
|
|
2150
|
-
},
|
|
2151
|
-
"LogGroupName": {
|
|
2152
|
-
"Fn::Join": [
|
|
2153
|
-
"",
|
|
2154
|
-
[
|
|
2155
|
-
"/aws/lambda/",
|
|
2156
|
-
{
|
|
2157
|
-
"Ref": "loginhandler99CCCCFD"
|
|
2158
|
-
}
|
|
2159
|
-
]
|
|
2160
|
-
]
|
|
2161
|
-
},
|
|
2162
|
-
"RetentionInDays": 1
|
|
2163
|
-
}
|
|
2309
|
+
"RetentionInDays": 5
|
|
2310
|
+
},
|
|
2311
|
+
"UpdateReplacePolicy": "Delete",
|
|
2312
|
+
"DeletionPolicy": "Delete"
|
|
2164
2313
|
},
|
|
2165
|
-
"
|
|
2314
|
+
"loginhandlerServiceRole330B0B32": {
|
|
2166
2315
|
"Type": "AWS::IAM::Role",
|
|
2167
2316
|
"Properties": {
|
|
2168
2317
|
"AssumeRolePolicyDocument": {
|
|
@@ -2193,52 +2342,32 @@
|
|
|
2193
2342
|
]
|
|
2194
2343
|
}
|
|
2195
2344
|
},
|
|
2196
|
-
"
|
|
2197
|
-
"Type": "AWS::IAM::Policy",
|
|
2198
|
-
"Properties": {
|
|
2199
|
-
"PolicyDocument": {
|
|
2200
|
-
"Statement": [
|
|
2201
|
-
{
|
|
2202
|
-
"Action": [
|
|
2203
|
-
"logs:DeleteRetentionPolicy",
|
|
2204
|
-
"logs:PutRetentionPolicy"
|
|
2205
|
-
],
|
|
2206
|
-
"Effect": "Allow",
|
|
2207
|
-
"Resource": "*"
|
|
2208
|
-
}
|
|
2209
|
-
],
|
|
2210
|
-
"Version": "2012-10-17"
|
|
2211
|
-
},
|
|
2212
|
-
"PolicyName": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRoleDefaultPolicyADDA7DEB",
|
|
2213
|
-
"Roles": [
|
|
2214
|
-
{
|
|
2215
|
-
"Ref": "LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB"
|
|
2216
|
-
}
|
|
2217
|
-
]
|
|
2218
|
-
}
|
|
2219
|
-
},
|
|
2220
|
-
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aFD4BFC8A": {
|
|
2345
|
+
"loginhandler99CCCCFD": {
|
|
2221
2346
|
"Type": "AWS::Lambda::Function",
|
|
2222
2347
|
"Properties": {
|
|
2223
|
-
"Handler": "index.handler",
|
|
2224
|
-
"Runtime": "nodejs24.x",
|
|
2225
|
-
"Timeout": 900,
|
|
2226
2348
|
"Code": {
|
|
2227
2349
|
"S3Bucket": {
|
|
2228
2350
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}"
|
|
2229
2351
|
},
|
|
2230
|
-
"S3Key": "
|
|
2352
|
+
"S3Key": "cf551b9486b7d659176866961b59c229e25bb1d1de3e5fd5d1ca4bca396c316d.zip"
|
|
2353
|
+
},
|
|
2354
|
+
"Handler": "index.handler",
|
|
2355
|
+
"LoggingConfig": {
|
|
2356
|
+
"LogGroup": {
|
|
2357
|
+
"Ref": "LoginHandlerLogGroup2351D4F9"
|
|
2358
|
+
}
|
|
2231
2359
|
},
|
|
2232
2360
|
"Role": {
|
|
2233
2361
|
"Fn::GetAtt": [
|
|
2234
|
-
"
|
|
2362
|
+
"loginhandlerServiceRole330B0B32",
|
|
2235
2363
|
"Arn"
|
|
2236
2364
|
]
|
|
2237
|
-
}
|
|
2365
|
+
},
|
|
2366
|
+
"Runtime": "nodejs20.x",
|
|
2367
|
+
"Timeout": 30
|
|
2238
2368
|
},
|
|
2239
2369
|
"DependsOn": [
|
|
2240
|
-
"
|
|
2241
|
-
"LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8aServiceRole9741ECFB"
|
|
2370
|
+
"loginhandlerServiceRole330B0B32"
|
|
2242
2371
|
]
|
|
2243
2372
|
}
|
|
2244
2373
|
},
|