@aws-solutions-constructs/aws-lambda-secretsmanager 2.44.0 → 2.46.0

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.
@@ -11,7 +11,7 @@
11
11
  "Tags": [
12
12
  {
13
13
  "Key": "Name",
14
- "Value": "deployFunctionWithExistingVpc/Vpc"
14
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc"
15
15
  }
16
16
  ]
17
17
  }
@@ -19,9 +19,6 @@
19
19
  "VpcPublicSubnet1Subnet5C2D37C4": {
20
20
  "Type": "AWS::EC2::Subnet",
21
21
  "Properties": {
22
- "VpcId": {
23
- "Ref": "Vpc8378EB38"
24
- },
25
22
  "AvailabilityZone": "test-region-1a",
26
23
  "CidrBlock": "10.0.0.0/19",
27
24
  "MapPublicIpOnLaunch": true,
@@ -36,9 +33,12 @@
36
33
  },
37
34
  {
38
35
  "Key": "Name",
39
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet1"
36
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet1"
40
37
  }
41
- ]
38
+ ],
39
+ "VpcId": {
40
+ "Ref": "Vpc8378EB38"
41
+ }
42
42
  },
43
43
  "Metadata": {
44
44
  "cfn_nag": {
@@ -54,15 +54,15 @@
54
54
  "VpcPublicSubnet1RouteTable6C95E38E": {
55
55
  "Type": "AWS::EC2::RouteTable",
56
56
  "Properties": {
57
- "VpcId": {
58
- "Ref": "Vpc8378EB38"
59
- },
60
57
  "Tags": [
61
58
  {
62
59
  "Key": "Name",
63
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet1"
60
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet1"
64
61
  }
65
- ]
62
+ ],
63
+ "VpcId": {
64
+ "Ref": "Vpc8378EB38"
65
+ }
66
66
  }
67
67
  },
68
68
  "VpcPublicSubnet1RouteTableAssociation97140677": {
@@ -79,12 +79,12 @@
79
79
  "VpcPublicSubnet1DefaultRoute3DA9E72A": {
80
80
  "Type": "AWS::EC2::Route",
81
81
  "Properties": {
82
- "RouteTableId": {
83
- "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
84
- },
85
82
  "DestinationCidrBlock": "0.0.0.0/0",
86
83
  "GatewayId": {
87
84
  "Ref": "VpcIGWD7BA715C"
85
+ },
86
+ "RouteTableId": {
87
+ "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
88
88
  }
89
89
  },
90
90
  "DependsOn": [
@@ -98,7 +98,7 @@
98
98
  "Tags": [
99
99
  {
100
100
  "Key": "Name",
101
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet1"
101
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet1"
102
102
  }
103
103
  ]
104
104
  }
@@ -106,19 +106,19 @@
106
106
  "VpcPublicSubnet1NATGateway4D7517AA": {
107
107
  "Type": "AWS::EC2::NatGateway",
108
108
  "Properties": {
109
- "SubnetId": {
110
- "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
111
- },
112
109
  "AllocationId": {
113
110
  "Fn::GetAtt": [
114
111
  "VpcPublicSubnet1EIPD7E02669",
115
112
  "AllocationId"
116
113
  ]
117
114
  },
115
+ "SubnetId": {
116
+ "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
117
+ },
118
118
  "Tags": [
119
119
  {
120
120
  "Key": "Name",
121
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet1"
121
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet1"
122
122
  }
123
123
  ]
124
124
  },
@@ -130,9 +130,6 @@
130
130
  "VpcPublicSubnet2Subnet691E08A3": {
131
131
  "Type": "AWS::EC2::Subnet",
132
132
  "Properties": {
133
- "VpcId": {
134
- "Ref": "Vpc8378EB38"
135
- },
136
133
  "AvailabilityZone": "test-region-1b",
137
134
  "CidrBlock": "10.0.32.0/19",
138
135
  "MapPublicIpOnLaunch": true,
@@ -147,9 +144,12 @@
147
144
  },
148
145
  {
149
146
  "Key": "Name",
150
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet2"
147
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet2"
151
148
  }
152
- ]
149
+ ],
150
+ "VpcId": {
151
+ "Ref": "Vpc8378EB38"
152
+ }
153
153
  },
154
154
  "Metadata": {
155
155
  "cfn_nag": {
@@ -165,15 +165,15 @@
165
165
  "VpcPublicSubnet2RouteTable94F7E489": {
166
166
  "Type": "AWS::EC2::RouteTable",
167
167
  "Properties": {
168
- "VpcId": {
169
- "Ref": "Vpc8378EB38"
170
- },
171
168
  "Tags": [
172
169
  {
173
170
  "Key": "Name",
174
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet2"
171
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet2"
175
172
  }
176
- ]
173
+ ],
174
+ "VpcId": {
175
+ "Ref": "Vpc8378EB38"
176
+ }
177
177
  }
178
178
  },
179
179
  "VpcPublicSubnet2RouteTableAssociationDD5762D8": {
@@ -190,12 +190,12 @@
190
190
  "VpcPublicSubnet2DefaultRoute97F91067": {
191
191
  "Type": "AWS::EC2::Route",
192
192
  "Properties": {
193
- "RouteTableId": {
194
- "Ref": "VpcPublicSubnet2RouteTable94F7E489"
195
- },
196
193
  "DestinationCidrBlock": "0.0.0.0/0",
197
194
  "GatewayId": {
198
195
  "Ref": "VpcIGWD7BA715C"
196
+ },
197
+ "RouteTableId": {
198
+ "Ref": "VpcPublicSubnet2RouteTable94F7E489"
199
199
  }
200
200
  },
201
201
  "DependsOn": [
@@ -209,7 +209,7 @@
209
209
  "Tags": [
210
210
  {
211
211
  "Key": "Name",
212
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet2"
212
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet2"
213
213
  }
214
214
  ]
215
215
  }
@@ -217,19 +217,19 @@
217
217
  "VpcPublicSubnet2NATGateway9182C01D": {
218
218
  "Type": "AWS::EC2::NatGateway",
219
219
  "Properties": {
220
- "SubnetId": {
221
- "Ref": "VpcPublicSubnet2Subnet691E08A3"
222
- },
223
220
  "AllocationId": {
224
221
  "Fn::GetAtt": [
225
222
  "VpcPublicSubnet2EIP3C605A87",
226
223
  "AllocationId"
227
224
  ]
228
225
  },
226
+ "SubnetId": {
227
+ "Ref": "VpcPublicSubnet2Subnet691E08A3"
228
+ },
229
229
  "Tags": [
230
230
  {
231
231
  "Key": "Name",
232
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet2"
232
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet2"
233
233
  }
234
234
  ]
235
235
  },
@@ -241,9 +241,6 @@
241
241
  "VpcPublicSubnet3SubnetBE12F0B6": {
242
242
  "Type": "AWS::EC2::Subnet",
243
243
  "Properties": {
244
- "VpcId": {
245
- "Ref": "Vpc8378EB38"
246
- },
247
244
  "AvailabilityZone": "test-region-1c",
248
245
  "CidrBlock": "10.0.64.0/19",
249
246
  "MapPublicIpOnLaunch": true,
@@ -258,9 +255,12 @@
258
255
  },
259
256
  {
260
257
  "Key": "Name",
261
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet3"
258
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet3"
262
259
  }
263
- ]
260
+ ],
261
+ "VpcId": {
262
+ "Ref": "Vpc8378EB38"
263
+ }
264
264
  },
265
265
  "Metadata": {
266
266
  "cfn_nag": {
@@ -276,15 +276,15 @@
276
276
  "VpcPublicSubnet3RouteTable93458DBB": {
277
277
  "Type": "AWS::EC2::RouteTable",
278
278
  "Properties": {
279
- "VpcId": {
280
- "Ref": "Vpc8378EB38"
281
- },
282
279
  "Tags": [
283
280
  {
284
281
  "Key": "Name",
285
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet3"
282
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet3"
286
283
  }
287
- ]
284
+ ],
285
+ "VpcId": {
286
+ "Ref": "Vpc8378EB38"
287
+ }
288
288
  }
289
289
  },
290
290
  "VpcPublicSubnet3RouteTableAssociation1F1EDF02": {
@@ -301,12 +301,12 @@
301
301
  "VpcPublicSubnet3DefaultRoute4697774F": {
302
302
  "Type": "AWS::EC2::Route",
303
303
  "Properties": {
304
- "RouteTableId": {
305
- "Ref": "VpcPublicSubnet3RouteTable93458DBB"
306
- },
307
304
  "DestinationCidrBlock": "0.0.0.0/0",
308
305
  "GatewayId": {
309
306
  "Ref": "VpcIGWD7BA715C"
307
+ },
308
+ "RouteTableId": {
309
+ "Ref": "VpcPublicSubnet3RouteTable93458DBB"
310
310
  }
311
311
  },
312
312
  "DependsOn": [
@@ -320,7 +320,7 @@
320
320
  "Tags": [
321
321
  {
322
322
  "Key": "Name",
323
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet3"
323
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet3"
324
324
  }
325
325
  ]
326
326
  }
@@ -328,19 +328,19 @@
328
328
  "VpcPublicSubnet3NATGateway7640CD1D": {
329
329
  "Type": "AWS::EC2::NatGateway",
330
330
  "Properties": {
331
- "SubnetId": {
332
- "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
333
- },
334
331
  "AllocationId": {
335
332
  "Fn::GetAtt": [
336
333
  "VpcPublicSubnet3EIP3A666A23",
337
334
  "AllocationId"
338
335
  ]
339
336
  },
337
+ "SubnetId": {
338
+ "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
339
+ },
340
340
  "Tags": [
341
341
  {
342
342
  "Key": "Name",
343
- "Value": "deployFunctionWithExistingVpc/Vpc/PublicSubnet3"
343
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PublicSubnet3"
344
344
  }
345
345
  ]
346
346
  },
@@ -352,9 +352,6 @@
352
352
  "VpcPrivateSubnet1Subnet536B997A": {
353
353
  "Type": "AWS::EC2::Subnet",
354
354
  "Properties": {
355
- "VpcId": {
356
- "Ref": "Vpc8378EB38"
357
- },
358
355
  "AvailabilityZone": "test-region-1a",
359
356
  "CidrBlock": "10.0.96.0/19",
360
357
  "MapPublicIpOnLaunch": false,
@@ -369,23 +366,26 @@
369
366
  },
370
367
  {
371
368
  "Key": "Name",
372
- "Value": "deployFunctionWithExistingVpc/Vpc/PrivateSubnet1"
369
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PrivateSubnet1"
373
370
  }
374
- ]
371
+ ],
372
+ "VpcId": {
373
+ "Ref": "Vpc8378EB38"
374
+ }
375
375
  }
376
376
  },
377
377
  "VpcPrivateSubnet1RouteTableB2C5B500": {
378
378
  "Type": "AWS::EC2::RouteTable",
379
379
  "Properties": {
380
- "VpcId": {
381
- "Ref": "Vpc8378EB38"
382
- },
383
380
  "Tags": [
384
381
  {
385
382
  "Key": "Name",
386
- "Value": "deployFunctionWithExistingVpc/Vpc/PrivateSubnet1"
383
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PrivateSubnet1"
387
384
  }
388
- ]
385
+ ],
386
+ "VpcId": {
387
+ "Ref": "Vpc8378EB38"
388
+ }
389
389
  }
390
390
  },
391
391
  "VpcPrivateSubnet1RouteTableAssociation70C59FA6": {
@@ -402,21 +402,18 @@
402
402
  "VpcPrivateSubnet1DefaultRouteBE02A9ED": {
403
403
  "Type": "AWS::EC2::Route",
404
404
  "Properties": {
405
- "RouteTableId": {
406
- "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
407
- },
408
405
  "DestinationCidrBlock": "0.0.0.0/0",
409
406
  "NatGatewayId": {
410
407
  "Ref": "VpcPublicSubnet1NATGateway4D7517AA"
408
+ },
409
+ "RouteTableId": {
410
+ "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
411
411
  }
412
412
  }
413
413
  },
414
414
  "VpcPrivateSubnet2Subnet3788AAA1": {
415
415
  "Type": "AWS::EC2::Subnet",
416
416
  "Properties": {
417
- "VpcId": {
418
- "Ref": "Vpc8378EB38"
419
- },
420
417
  "AvailabilityZone": "test-region-1b",
421
418
  "CidrBlock": "10.0.128.0/19",
422
419
  "MapPublicIpOnLaunch": false,
@@ -431,23 +428,26 @@
431
428
  },
432
429
  {
433
430
  "Key": "Name",
434
- "Value": "deployFunctionWithExistingVpc/Vpc/PrivateSubnet2"
431
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PrivateSubnet2"
435
432
  }
436
- ]
433
+ ],
434
+ "VpcId": {
435
+ "Ref": "Vpc8378EB38"
436
+ }
437
437
  }
438
438
  },
439
439
  "VpcPrivateSubnet2RouteTableA678073B": {
440
440
  "Type": "AWS::EC2::RouteTable",
441
441
  "Properties": {
442
- "VpcId": {
443
- "Ref": "Vpc8378EB38"
444
- },
445
442
  "Tags": [
446
443
  {
447
444
  "Key": "Name",
448
- "Value": "deployFunctionWithExistingVpc/Vpc/PrivateSubnet2"
445
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PrivateSubnet2"
449
446
  }
450
- ]
447
+ ],
448
+ "VpcId": {
449
+ "Ref": "Vpc8378EB38"
450
+ }
451
451
  }
452
452
  },
453
453
  "VpcPrivateSubnet2RouteTableAssociationA89CAD56": {
@@ -464,21 +464,18 @@
464
464
  "VpcPrivateSubnet2DefaultRoute060D2087": {
465
465
  "Type": "AWS::EC2::Route",
466
466
  "Properties": {
467
- "RouteTableId": {
468
- "Ref": "VpcPrivateSubnet2RouteTableA678073B"
469
- },
470
467
  "DestinationCidrBlock": "0.0.0.0/0",
471
468
  "NatGatewayId": {
472
469
  "Ref": "VpcPublicSubnet2NATGateway9182C01D"
470
+ },
471
+ "RouteTableId": {
472
+ "Ref": "VpcPrivateSubnet2RouteTableA678073B"
473
473
  }
474
474
  }
475
475
  },
476
476
  "VpcPrivateSubnet3SubnetF258B56E": {
477
477
  "Type": "AWS::EC2::Subnet",
478
478
  "Properties": {
479
- "VpcId": {
480
- "Ref": "Vpc8378EB38"
481
- },
482
479
  "AvailabilityZone": "test-region-1c",
483
480
  "CidrBlock": "10.0.160.0/19",
484
481
  "MapPublicIpOnLaunch": false,
@@ -493,23 +490,26 @@
493
490
  },
494
491
  {
495
492
  "Key": "Name",
496
- "Value": "deployFunctionWithExistingVpc/Vpc/PrivateSubnet3"
493
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PrivateSubnet3"
497
494
  }
498
- ]
495
+ ],
496
+ "VpcId": {
497
+ "Ref": "Vpc8378EB38"
498
+ }
499
499
  }
500
500
  },
501
501
  "VpcPrivateSubnet3RouteTableD98824C7": {
502
502
  "Type": "AWS::EC2::RouteTable",
503
503
  "Properties": {
504
- "VpcId": {
505
- "Ref": "Vpc8378EB38"
506
- },
507
504
  "Tags": [
508
505
  {
509
506
  "Key": "Name",
510
- "Value": "deployFunctionWithExistingVpc/Vpc/PrivateSubnet3"
507
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/PrivateSubnet3"
511
508
  }
512
- ]
509
+ ],
510
+ "VpcId": {
511
+ "Ref": "Vpc8378EB38"
512
+ }
513
513
  }
514
514
  },
515
515
  "VpcPrivateSubnet3RouteTableAssociation16BDDC43": {
@@ -526,12 +526,12 @@
526
526
  "VpcPrivateSubnet3DefaultRoute94B74F0D": {
527
527
  "Type": "AWS::EC2::Route",
528
528
  "Properties": {
529
- "RouteTableId": {
530
- "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
531
- },
532
529
  "DestinationCidrBlock": "0.0.0.0/0",
533
530
  "NatGatewayId": {
534
531
  "Ref": "VpcPublicSubnet3NATGateway7640CD1D"
532
+ },
533
+ "RouteTableId": {
534
+ "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
535
535
  }
536
536
  }
537
537
  },
@@ -541,7 +541,7 @@
541
541
  "Tags": [
542
542
  {
543
543
  "Key": "Name",
544
- "Value": "deployFunctionWithExistingVpc/Vpc"
544
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc"
545
545
  }
546
546
  ]
547
547
  }
@@ -549,11 +549,11 @@
549
549
  "VpcVPCGWBF912B6E": {
550
550
  "Type": "AWS::EC2::VPCGatewayAttachment",
551
551
  "Properties": {
552
- "VpcId": {
553
- "Ref": "Vpc8378EB38"
554
- },
555
552
  "InternetGatewayId": {
556
553
  "Ref": "VpcIGWD7BA715C"
554
+ },
555
+ "VpcId": {
556
+ "Ref": "Vpc8378EB38"
557
557
  }
558
558
  }
559
559
  },
@@ -575,7 +575,7 @@
575
575
  "Tags": [
576
576
  {
577
577
  "Key": "Name",
578
- "Value": "deployFunctionWithExistingVpc/Vpc"
578
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/FlowLog"
579
579
  }
580
580
  ]
581
581
  }
@@ -627,7 +627,7 @@
627
627
  "Tags": [
628
628
  {
629
629
  "Key": "Name",
630
- "Value": "deployFunctionWithExistingVpc/Vpc"
630
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/FlowLog"
631
631
  }
632
632
  ]
633
633
  },
@@ -647,11 +647,6 @@
647
647
  "VpcFlowLog8FF33A73": {
648
648
  "Type": "AWS::EC2::FlowLog",
649
649
  "Properties": {
650
- "ResourceId": {
651
- "Ref": "Vpc8378EB38"
652
- },
653
- "ResourceType": "VPC",
654
- "TrafficType": "ALL",
655
650
  "DeliverLogsPermissionArn": {
656
651
  "Fn::GetAtt": [
657
652
  "VpcFlowLogIAMRole6A475D41",
@@ -662,17 +657,31 @@
662
657
  "LogGroupName": {
663
658
  "Ref": "VpcFlowLogLogGroup7B5C56B9"
664
659
  },
660
+ "ResourceId": {
661
+ "Ref": "Vpc8378EB38"
662
+ },
663
+ "ResourceType": "VPC",
665
664
  "Tags": [
666
665
  {
667
666
  "Key": "Name",
668
- "Value": "deployFunctionWithExistingVpc/Vpc"
667
+ "Value": "lamsec-deployFunctionWithExistingVpc/Vpc/FlowLog"
669
668
  }
670
- ]
669
+ ],
670
+ "TrafficType": "ALL"
671
671
  }
672
672
  },
673
673
  "VpcSECRETSMANAGERF52907C2": {
674
674
  "Type": "AWS::EC2::VPCEndpoint",
675
675
  "Properties": {
676
+ "PrivateDnsEnabled": true,
677
+ "SecurityGroupIds": [
678
+ {
679
+ "Fn::GetAtt": [
680
+ "lamsecdeployFunctionWithExistingVpcSECRETSMANAGERsecuritygroup30E54F0F",
681
+ "GroupId"
682
+ ]
683
+ }
684
+ ],
676
685
  "ServiceName": {
677
686
  "Fn::Join": [
678
687
  "",
@@ -685,18 +694,6 @@
685
694
  ]
686
695
  ]
687
696
  },
688
- "VpcId": {
689
- "Ref": "Vpc8378EB38"
690
- },
691
- "PrivateDnsEnabled": true,
692
- "SecurityGroupIds": [
693
- {
694
- "Fn::GetAtt": [
695
- "deployFunctionWithExistingVpcSECRETSMANAGERsecuritygroupB20BA3EB",
696
- "GroupId"
697
- ]
698
- }
699
- ],
700
697
  "SubnetIds": [
701
698
  {
702
699
  "Ref": "VpcPrivateSubnet1Subnet536B997A"
@@ -708,7 +705,10 @@
708
705
  "Ref": "VpcPrivateSubnet3SubnetF258B56E"
709
706
  }
710
707
  ],
711
- "VpcEndpointType": "Interface"
708
+ "VpcEndpointType": "Interface",
709
+ "VpcId": {
710
+ "Ref": "Vpc8378EB38"
711
+ }
712
712
  }
713
713
  },
714
714
  "testlambdasecretsmanagerstackLambdaFunctionServiceRole4FE7A9C6": {
@@ -824,7 +824,7 @@
824
824
  "testlambdasecretsmanagerstackReplaceDefaultSecurityGroupsecuritygroupBBE9275E": {
825
825
  "Type": "AWS::EC2::SecurityGroup",
826
826
  "Properties": {
827
- "GroupDescription": "deployFunctionWithExistingVpc/test-lambda-secretsmanager-stack/ReplaceDefaultSecurityGroup-security-group",
827
+ "GroupDescription": "lamsec-deployFunctionWithExistingVpc/test-lambda-secretsmanager-stack/ReplaceDefaultSecurityGroup-security-group",
828
828
  "SecurityGroupEgress": [
829
829
  {
830
830
  "CidrIp": "0.0.0.0/0",
@@ -860,12 +860,6 @@
860
860
  },
861
861
  "S3Key": "0c3255e93ffe7a906c7422e9f0e9cc4c7fd86ee996ee3bb302e2f134b38463c8.zip"
862
862
  },
863
- "Role": {
864
- "Fn::GetAtt": [
865
- "testlambdasecretsmanagerstackLambdaFunctionServiceRole4FE7A9C6",
866
- "Arn"
867
- ]
868
- },
869
863
  "Environment": {
870
864
  "Variables": {
871
865
  "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1",
@@ -875,6 +869,12 @@
875
869
  }
876
870
  },
877
871
  "Handler": "index.handler",
872
+ "Role": {
873
+ "Fn::GetAtt": [
874
+ "testlambdasecretsmanagerstackLambdaFunctionServiceRole4FE7A9C6",
875
+ "Arn"
876
+ ]
877
+ },
878
878
  "Runtime": "nodejs16.x",
879
879
  "TracingConfig": {
880
880
  "Mode": "Active"
@@ -948,10 +948,10 @@
948
948
  }
949
949
  }
950
950
  },
951
- "deployFunctionWithExistingVpcSECRETSMANAGERsecuritygroupB20BA3EB": {
951
+ "lamsecdeployFunctionWithExistingVpcSECRETSMANAGERsecuritygroup30E54F0F": {
952
952
  "Type": "AWS::EC2::SecurityGroup",
953
953
  "Properties": {
954
- "GroupDescription": "deployFunctionWithExistingVpc/deployFunctionWithExistingVpc-SECRETS_MANAGER-security-group",
954
+ "GroupDescription": "lamsec-deployFunctionWithExistingVpc/lamsec-deployFunctionWithExistingVpc-SECRETS_MANAGER-security-group",
955
955
  "SecurityGroupEgress": [
956
956
  {
957
957
  "CidrIp": "0.0.0.0/0",
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
6
+ * with the License. A copy of the License is located at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES
11
+ * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions
12
+ * and limitations under the License.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ // Imports
16
+ const aws_cdk_lib_1 = require("aws-cdk-lib");
17
+ const lib_1 = require("../lib");
18
+ const lambda = require("aws-cdk-lib/aws-lambda");
19
+ const defaults = require("@aws-solutions-constructs/core");
20
+ const core_1 = require("@aws-solutions-constructs/core");
21
+ // Setup
22
+ const app = new aws_cdk_lib_1.App();
23
+ const stack = new aws_cdk_lib_1.Stack(app, core_1.generateIntegStackName(__filename));
24
+ stack.templateOptions.description = "Integration Test for aws-lambda-secretsmanager";
25
+ // Create VPC
26
+ const vpc = defaults.buildVpc(stack, {
27
+ defaultVpcProps: defaults.DefaultPublicPrivateVpcProps(),
28
+ constructVpcProps: {
29
+ enableDnsHostnames: true,
30
+ enableDnsSupport: true,
31
+ },
32
+ });
33
+ // Definitions
34
+ const props = {
35
+ lambdaFunctionProps: {
36
+ runtime: lambda.Runtime.NODEJS_16_X,
37
+ handler: "index.handler",
38
+ code: lambda.Code.fromAsset(`${__dirname}/lambda`),
39
+ },
40
+ secretProps: {
41
+ removalPolicy: aws_cdk_lib_1.RemovalPolicy.DESTROY
42
+ },
43
+ existingVpc: vpc
44
+ };
45
+ new lib_1.LambdaToSecretsmanager(stack, "test-lambda-secretsmanager-stack", props);
46
+ // Synth
47
+ app.synth();
48
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcubGFtc2VjLWRlcGxveUZ1bmN0aW9uV2l0aEV4aXN0aW5nVnBjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50ZWcubGFtc2VjLWRlcGxveUZ1bmN0aW9uV2l0aEV4aXN0aW5nVnBjLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7R0FXRzs7QUFFSCxVQUFVO0FBQ1YsNkNBQXNEO0FBQ3RELGdDQUE2RTtBQUM3RSxpREFBaUQ7QUFDakQsMkRBQTJEO0FBQzNELHlEQUF3RTtBQUV4RSxRQUFRO0FBQ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