@aws-solutions-constructs/aws-lambda-opensearch 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.
Files changed (28) hide show
  1. package/.jsii +105 -14
  2. package/lib/index.js +5 -3
  3. package/package.json +5 -5
  4. package/test/{integ.cluster-config.expected.json → integ.lamopn-cluster-config.expected.json} +48 -48
  5. package/test/integ.lamopn-cluster-config.js +50 -0
  6. package/test/{integ.disabled-zone-awareness.expected.json → integ.lamopn-disabled-zone-awareness.expected.json} +38 -38
  7. package/test/integ.lamopn-disabled-zone-awareness.js +47 -0
  8. package/test/{integ.domain-arguments.expected.json → integ.lamopn-domain-arguments.expected.json} +19 -19
  9. package/test/integ.lamopn-domain-arguments.js +37 -0
  10. package/test/{integ.existing-vpc.expected.json → integ.lamopn-existing-vpc.expected.json} +125 -125
  11. package/test/integ.lamopn-existing-vpc.js +41 -0
  12. package/test/{integ.no-arguments.expected.json → integ.lamopn-no-arguments.expected.json} +24 -24
  13. package/test/integ.lamopn-no-arguments.js +35 -0
  14. package/test/{integ.vpc-props.expected.json → integ.lamopn-vpc-props.expected.json} +58 -58
  15. package/test/integ.lamopn-vpc-props.js +43 -0
  16. package/test/lambda-opensearch.test.js +63 -2
  17. package/test/integ.cluster-config.js +0 -50
  18. package/test/integ.disabled-zone-awareness.js +0 -47
  19. package/test/integ.domain-arguments.js +0 -37
  20. package/test/integ.existing-vpc.js +0 -41
  21. package/test/integ.no-arguments.js +0 -35
  22. package/test/integ.vpc-props.js +0 -43
  23. /package/test/{integ.cluster-config.d.ts → integ.lamopn-cluster-config.d.ts} +0 -0
  24. /package/test/{integ.disabled-zone-awareness.d.ts → integ.lamopn-disabled-zone-awareness.d.ts} +0 -0
  25. /package/test/{integ.domain-arguments.d.ts → integ.lamopn-domain-arguments.d.ts} +0 -0
  26. /package/test/{integ.existing-vpc.d.ts → integ.lamopn-existing-vpc.d.ts} +0 -0
  27. /package/test/{integ.no-arguments.d.ts → integ.lamopn-no-arguments.d.ts} +0 -0
  28. /package/test/{integ.vpc-props.d.ts → integ.lamopn-vpc-props.d.ts} +0 -0
@@ -10,7 +10,7 @@
10
10
  "Tags": [
11
11
  {
12
12
  "Key": "Name",
13
- "Value": "existing-vpc/Vpc"
13
+ "Value": "lamopn-existing-vpc/Vpc"
14
14
  }
15
15
  ]
16
16
  }
@@ -18,9 +18,6 @@
18
18
  "VpcPublicSubnet1Subnet5C2D37C4": {
19
19
  "Type": "AWS::EC2::Subnet",
20
20
  "Properties": {
21
- "VpcId": {
22
- "Ref": "Vpc8378EB38"
23
- },
24
21
  "AvailabilityZone": "test-region-1a",
25
22
  "CidrBlock": "172.168.0.0/19",
26
23
  "MapPublicIpOnLaunch": true,
@@ -35,9 +32,12 @@
35
32
  },
36
33
  {
37
34
  "Key": "Name",
38
- "Value": "existing-vpc/Vpc/PublicSubnet1"
35
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet1"
39
36
  }
40
- ]
37
+ ],
38
+ "VpcId": {
39
+ "Ref": "Vpc8378EB38"
40
+ }
41
41
  },
42
42
  "Metadata": {
43
43
  "cfn_nag": {
@@ -53,15 +53,15 @@
53
53
  "VpcPublicSubnet1RouteTable6C95E38E": {
54
54
  "Type": "AWS::EC2::RouteTable",
55
55
  "Properties": {
56
- "VpcId": {
57
- "Ref": "Vpc8378EB38"
58
- },
59
56
  "Tags": [
60
57
  {
61
58
  "Key": "Name",
62
- "Value": "existing-vpc/Vpc/PublicSubnet1"
59
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet1"
63
60
  }
64
- ]
61
+ ],
62
+ "VpcId": {
63
+ "Ref": "Vpc8378EB38"
64
+ }
65
65
  }
66
66
  },
67
67
  "VpcPublicSubnet1RouteTableAssociation97140677": {
@@ -78,12 +78,12 @@
78
78
  "VpcPublicSubnet1DefaultRoute3DA9E72A": {
79
79
  "Type": "AWS::EC2::Route",
80
80
  "Properties": {
81
- "RouteTableId": {
82
- "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
83
- },
84
81
  "DestinationCidrBlock": "0.0.0.0/0",
85
82
  "GatewayId": {
86
83
  "Ref": "VpcIGWD7BA715C"
84
+ },
85
+ "RouteTableId": {
86
+ "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
87
87
  }
88
88
  },
89
89
  "DependsOn": [
@@ -97,7 +97,7 @@
97
97
  "Tags": [
98
98
  {
99
99
  "Key": "Name",
100
- "Value": "existing-vpc/Vpc/PublicSubnet1"
100
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet1"
101
101
  }
102
102
  ]
103
103
  }
@@ -105,19 +105,19 @@
105
105
  "VpcPublicSubnet1NATGateway4D7517AA": {
106
106
  "Type": "AWS::EC2::NatGateway",
107
107
  "Properties": {
108
- "SubnetId": {
109
- "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
110
- },
111
108
  "AllocationId": {
112
109
  "Fn::GetAtt": [
113
110
  "VpcPublicSubnet1EIPD7E02669",
114
111
  "AllocationId"
115
112
  ]
116
113
  },
114
+ "SubnetId": {
115
+ "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
116
+ },
117
117
  "Tags": [
118
118
  {
119
119
  "Key": "Name",
120
- "Value": "existing-vpc/Vpc/PublicSubnet1"
120
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet1"
121
121
  }
122
122
  ]
123
123
  },
@@ -129,9 +129,6 @@
129
129
  "VpcPublicSubnet2Subnet691E08A3": {
130
130
  "Type": "AWS::EC2::Subnet",
131
131
  "Properties": {
132
- "VpcId": {
133
- "Ref": "Vpc8378EB38"
134
- },
135
132
  "AvailabilityZone": "test-region-1b",
136
133
  "CidrBlock": "172.168.32.0/19",
137
134
  "MapPublicIpOnLaunch": true,
@@ -146,9 +143,12 @@
146
143
  },
147
144
  {
148
145
  "Key": "Name",
149
- "Value": "existing-vpc/Vpc/PublicSubnet2"
146
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet2"
150
147
  }
151
- ]
148
+ ],
149
+ "VpcId": {
150
+ "Ref": "Vpc8378EB38"
151
+ }
152
152
  },
153
153
  "Metadata": {
154
154
  "cfn_nag": {
@@ -164,15 +164,15 @@
164
164
  "VpcPublicSubnet2RouteTable94F7E489": {
165
165
  "Type": "AWS::EC2::RouteTable",
166
166
  "Properties": {
167
- "VpcId": {
168
- "Ref": "Vpc8378EB38"
169
- },
170
167
  "Tags": [
171
168
  {
172
169
  "Key": "Name",
173
- "Value": "existing-vpc/Vpc/PublicSubnet2"
170
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet2"
174
171
  }
175
- ]
172
+ ],
173
+ "VpcId": {
174
+ "Ref": "Vpc8378EB38"
175
+ }
176
176
  }
177
177
  },
178
178
  "VpcPublicSubnet2RouteTableAssociationDD5762D8": {
@@ -189,12 +189,12 @@
189
189
  "VpcPublicSubnet2DefaultRoute97F91067": {
190
190
  "Type": "AWS::EC2::Route",
191
191
  "Properties": {
192
- "RouteTableId": {
193
- "Ref": "VpcPublicSubnet2RouteTable94F7E489"
194
- },
195
192
  "DestinationCidrBlock": "0.0.0.0/0",
196
193
  "GatewayId": {
197
194
  "Ref": "VpcIGWD7BA715C"
195
+ },
196
+ "RouteTableId": {
197
+ "Ref": "VpcPublicSubnet2RouteTable94F7E489"
198
198
  }
199
199
  },
200
200
  "DependsOn": [
@@ -208,7 +208,7 @@
208
208
  "Tags": [
209
209
  {
210
210
  "Key": "Name",
211
- "Value": "existing-vpc/Vpc/PublicSubnet2"
211
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet2"
212
212
  }
213
213
  ]
214
214
  }
@@ -216,19 +216,19 @@
216
216
  "VpcPublicSubnet2NATGateway9182C01D": {
217
217
  "Type": "AWS::EC2::NatGateway",
218
218
  "Properties": {
219
- "SubnetId": {
220
- "Ref": "VpcPublicSubnet2Subnet691E08A3"
221
- },
222
219
  "AllocationId": {
223
220
  "Fn::GetAtt": [
224
221
  "VpcPublicSubnet2EIP3C605A87",
225
222
  "AllocationId"
226
223
  ]
227
224
  },
225
+ "SubnetId": {
226
+ "Ref": "VpcPublicSubnet2Subnet691E08A3"
227
+ },
228
228
  "Tags": [
229
229
  {
230
230
  "Key": "Name",
231
- "Value": "existing-vpc/Vpc/PublicSubnet2"
231
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet2"
232
232
  }
233
233
  ]
234
234
  },
@@ -240,9 +240,6 @@
240
240
  "VpcPublicSubnet3SubnetBE12F0B6": {
241
241
  "Type": "AWS::EC2::Subnet",
242
242
  "Properties": {
243
- "VpcId": {
244
- "Ref": "Vpc8378EB38"
245
- },
246
243
  "AvailabilityZone": "test-region-1c",
247
244
  "CidrBlock": "172.168.64.0/19",
248
245
  "MapPublicIpOnLaunch": true,
@@ -257,9 +254,12 @@
257
254
  },
258
255
  {
259
256
  "Key": "Name",
260
- "Value": "existing-vpc/Vpc/PublicSubnet3"
257
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet3"
261
258
  }
262
- ]
259
+ ],
260
+ "VpcId": {
261
+ "Ref": "Vpc8378EB38"
262
+ }
263
263
  },
264
264
  "Metadata": {
265
265
  "cfn_nag": {
@@ -275,15 +275,15 @@
275
275
  "VpcPublicSubnet3RouteTable93458DBB": {
276
276
  "Type": "AWS::EC2::RouteTable",
277
277
  "Properties": {
278
- "VpcId": {
279
- "Ref": "Vpc8378EB38"
280
- },
281
278
  "Tags": [
282
279
  {
283
280
  "Key": "Name",
284
- "Value": "existing-vpc/Vpc/PublicSubnet3"
281
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet3"
285
282
  }
286
- ]
283
+ ],
284
+ "VpcId": {
285
+ "Ref": "Vpc8378EB38"
286
+ }
287
287
  }
288
288
  },
289
289
  "VpcPublicSubnet3RouteTableAssociation1F1EDF02": {
@@ -300,12 +300,12 @@
300
300
  "VpcPublicSubnet3DefaultRoute4697774F": {
301
301
  "Type": "AWS::EC2::Route",
302
302
  "Properties": {
303
- "RouteTableId": {
304
- "Ref": "VpcPublicSubnet3RouteTable93458DBB"
305
- },
306
303
  "DestinationCidrBlock": "0.0.0.0/0",
307
304
  "GatewayId": {
308
305
  "Ref": "VpcIGWD7BA715C"
306
+ },
307
+ "RouteTableId": {
308
+ "Ref": "VpcPublicSubnet3RouteTable93458DBB"
309
309
  }
310
310
  },
311
311
  "DependsOn": [
@@ -319,7 +319,7 @@
319
319
  "Tags": [
320
320
  {
321
321
  "Key": "Name",
322
- "Value": "existing-vpc/Vpc/PublicSubnet3"
322
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet3"
323
323
  }
324
324
  ]
325
325
  }
@@ -327,19 +327,19 @@
327
327
  "VpcPublicSubnet3NATGateway7640CD1D": {
328
328
  "Type": "AWS::EC2::NatGateway",
329
329
  "Properties": {
330
- "SubnetId": {
331
- "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
332
- },
333
330
  "AllocationId": {
334
331
  "Fn::GetAtt": [
335
332
  "VpcPublicSubnet3EIP3A666A23",
336
333
  "AllocationId"
337
334
  ]
338
335
  },
336
+ "SubnetId": {
337
+ "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
338
+ },
339
339
  "Tags": [
340
340
  {
341
341
  "Key": "Name",
342
- "Value": "existing-vpc/Vpc/PublicSubnet3"
342
+ "Value": "lamopn-existing-vpc/Vpc/PublicSubnet3"
343
343
  }
344
344
  ]
345
345
  },
@@ -351,9 +351,6 @@
351
351
  "VpcPrivateSubnet1Subnet536B997A": {
352
352
  "Type": "AWS::EC2::Subnet",
353
353
  "Properties": {
354
- "VpcId": {
355
- "Ref": "Vpc8378EB38"
356
- },
357
354
  "AvailabilityZone": "test-region-1a",
358
355
  "CidrBlock": "172.168.96.0/19",
359
356
  "MapPublicIpOnLaunch": false,
@@ -368,23 +365,26 @@
368
365
  },
369
366
  {
370
367
  "Key": "Name",
371
- "Value": "existing-vpc/Vpc/PrivateSubnet1"
368
+ "Value": "lamopn-existing-vpc/Vpc/PrivateSubnet1"
372
369
  }
373
- ]
370
+ ],
371
+ "VpcId": {
372
+ "Ref": "Vpc8378EB38"
373
+ }
374
374
  }
375
375
  },
376
376
  "VpcPrivateSubnet1RouteTableB2C5B500": {
377
377
  "Type": "AWS::EC2::RouteTable",
378
378
  "Properties": {
379
- "VpcId": {
380
- "Ref": "Vpc8378EB38"
381
- },
382
379
  "Tags": [
383
380
  {
384
381
  "Key": "Name",
385
- "Value": "existing-vpc/Vpc/PrivateSubnet1"
382
+ "Value": "lamopn-existing-vpc/Vpc/PrivateSubnet1"
386
383
  }
387
- ]
384
+ ],
385
+ "VpcId": {
386
+ "Ref": "Vpc8378EB38"
387
+ }
388
388
  }
389
389
  },
390
390
  "VpcPrivateSubnet1RouteTableAssociation70C59FA6": {
@@ -401,21 +401,18 @@
401
401
  "VpcPrivateSubnet1DefaultRouteBE02A9ED": {
402
402
  "Type": "AWS::EC2::Route",
403
403
  "Properties": {
404
- "RouteTableId": {
405
- "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
406
- },
407
404
  "DestinationCidrBlock": "0.0.0.0/0",
408
405
  "NatGatewayId": {
409
406
  "Ref": "VpcPublicSubnet1NATGateway4D7517AA"
407
+ },
408
+ "RouteTableId": {
409
+ "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
410
410
  }
411
411
  }
412
412
  },
413
413
  "VpcPrivateSubnet2Subnet3788AAA1": {
414
414
  "Type": "AWS::EC2::Subnet",
415
415
  "Properties": {
416
- "VpcId": {
417
- "Ref": "Vpc8378EB38"
418
- },
419
416
  "AvailabilityZone": "test-region-1b",
420
417
  "CidrBlock": "172.168.128.0/19",
421
418
  "MapPublicIpOnLaunch": false,
@@ -430,23 +427,26 @@
430
427
  },
431
428
  {
432
429
  "Key": "Name",
433
- "Value": "existing-vpc/Vpc/PrivateSubnet2"
430
+ "Value": "lamopn-existing-vpc/Vpc/PrivateSubnet2"
434
431
  }
435
- ]
432
+ ],
433
+ "VpcId": {
434
+ "Ref": "Vpc8378EB38"
435
+ }
436
436
  }
437
437
  },
438
438
  "VpcPrivateSubnet2RouteTableA678073B": {
439
439
  "Type": "AWS::EC2::RouteTable",
440
440
  "Properties": {
441
- "VpcId": {
442
- "Ref": "Vpc8378EB38"
443
- },
444
441
  "Tags": [
445
442
  {
446
443
  "Key": "Name",
447
- "Value": "existing-vpc/Vpc/PrivateSubnet2"
444
+ "Value": "lamopn-existing-vpc/Vpc/PrivateSubnet2"
448
445
  }
449
- ]
446
+ ],
447
+ "VpcId": {
448
+ "Ref": "Vpc8378EB38"
449
+ }
450
450
  }
451
451
  },
452
452
  "VpcPrivateSubnet2RouteTableAssociationA89CAD56": {
@@ -463,21 +463,18 @@
463
463
  "VpcPrivateSubnet2DefaultRoute060D2087": {
464
464
  "Type": "AWS::EC2::Route",
465
465
  "Properties": {
466
- "RouteTableId": {
467
- "Ref": "VpcPrivateSubnet2RouteTableA678073B"
468
- },
469
466
  "DestinationCidrBlock": "0.0.0.0/0",
470
467
  "NatGatewayId": {
471
468
  "Ref": "VpcPublicSubnet2NATGateway9182C01D"
469
+ },
470
+ "RouteTableId": {
471
+ "Ref": "VpcPrivateSubnet2RouteTableA678073B"
472
472
  }
473
473
  }
474
474
  },
475
475
  "VpcPrivateSubnet3SubnetF258B56E": {
476
476
  "Type": "AWS::EC2::Subnet",
477
477
  "Properties": {
478
- "VpcId": {
479
- "Ref": "Vpc8378EB38"
480
- },
481
478
  "AvailabilityZone": "test-region-1c",
482
479
  "CidrBlock": "172.168.160.0/19",
483
480
  "MapPublicIpOnLaunch": false,
@@ -492,23 +489,26 @@
492
489
  },
493
490
  {
494
491
  "Key": "Name",
495
- "Value": "existing-vpc/Vpc/PrivateSubnet3"
492
+ "Value": "lamopn-existing-vpc/Vpc/PrivateSubnet3"
496
493
  }
497
- ]
494
+ ],
495
+ "VpcId": {
496
+ "Ref": "Vpc8378EB38"
497
+ }
498
498
  }
499
499
  },
500
500
  "VpcPrivateSubnet3RouteTableD98824C7": {
501
501
  "Type": "AWS::EC2::RouteTable",
502
502
  "Properties": {
503
- "VpcId": {
504
- "Ref": "Vpc8378EB38"
505
- },
506
503
  "Tags": [
507
504
  {
508
505
  "Key": "Name",
509
- "Value": "existing-vpc/Vpc/PrivateSubnet3"
506
+ "Value": "lamopn-existing-vpc/Vpc/PrivateSubnet3"
510
507
  }
511
- ]
508
+ ],
509
+ "VpcId": {
510
+ "Ref": "Vpc8378EB38"
511
+ }
512
512
  }
513
513
  },
514
514
  "VpcPrivateSubnet3RouteTableAssociation16BDDC43": {
@@ -525,12 +525,12 @@
525
525
  "VpcPrivateSubnet3DefaultRoute94B74F0D": {
526
526
  "Type": "AWS::EC2::Route",
527
527
  "Properties": {
528
- "RouteTableId": {
529
- "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
530
- },
531
528
  "DestinationCidrBlock": "0.0.0.0/0",
532
529
  "NatGatewayId": {
533
530
  "Ref": "VpcPublicSubnet3NATGateway7640CD1D"
531
+ },
532
+ "RouteTableId": {
533
+ "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
534
534
  }
535
535
  }
536
536
  },
@@ -540,7 +540,7 @@
540
540
  "Tags": [
541
541
  {
542
542
  "Key": "Name",
543
- "Value": "existing-vpc/Vpc"
543
+ "Value": "lamopn-existing-vpc/Vpc"
544
544
  }
545
545
  ]
546
546
  }
@@ -548,11 +548,11 @@
548
548
  "VpcVPCGWBF912B6E": {
549
549
  "Type": "AWS::EC2::VPCGatewayAttachment",
550
550
  "Properties": {
551
- "VpcId": {
552
- "Ref": "Vpc8378EB38"
553
- },
554
551
  "InternetGatewayId": {
555
552
  "Ref": "VpcIGWD7BA715C"
553
+ },
554
+ "VpcId": {
555
+ "Ref": "Vpc8378EB38"
556
556
  }
557
557
  }
558
558
  },
@@ -574,7 +574,7 @@
574
574
  "Tags": [
575
575
  {
576
576
  "Key": "Name",
577
- "Value": "existing-vpc/Vpc"
577
+ "Value": "lamopn-existing-vpc/Vpc/FlowLog"
578
578
  }
579
579
  ]
580
580
  }
@@ -626,7 +626,7 @@
626
626
  "Tags": [
627
627
  {
628
628
  "Key": "Name",
629
- "Value": "existing-vpc/Vpc"
629
+ "Value": "lamopn-existing-vpc/Vpc/FlowLog"
630
630
  }
631
631
  ]
632
632
  },
@@ -646,10 +646,6 @@
646
646
  "VpcFlowLog8FF33A73": {
647
647
  "Type": "AWS::EC2::FlowLog",
648
648
  "Properties": {
649
- "ResourceId": {
650
- "Ref": "Vpc8378EB38"
651
- },
652
- "ResourceType": "VPC",
653
649
  "DeliverLogsPermissionArn": {
654
650
  "Fn::GetAtt": [
655
651
  "VpcFlowLogIAMRole6A475D41",
@@ -660,10 +656,14 @@
660
656
  "LogGroupName": {
661
657
  "Ref": "VpcFlowLogLogGroup7B5C56B9"
662
658
  },
659
+ "ResourceId": {
660
+ "Ref": "Vpc8378EB38"
661
+ },
662
+ "ResourceType": "VPC",
663
663
  "Tags": [
664
664
  {
665
665
  "Key": "Name",
666
- "Value": "existing-vpc/Vpc"
666
+ "Value": "lamopn-existing-vpc/Vpc/FlowLog"
667
667
  }
668
668
  ],
669
669
  "TrafficType": "ALL"
@@ -772,7 +772,7 @@
772
772
  "testlambdaelasticsearchkibana4ReplaceDefaultSecurityGroupsecuritygroupA79E2B92": {
773
773
  "Type": "AWS::EC2::SecurityGroup",
774
774
  "Properties": {
775
- "GroupDescription": "existing-vpc/test-lambda-elasticsearch-kibana4/ReplaceDefaultSecurityGroup-security-group",
775
+ "GroupDescription": "lamopn-existing-vpc/test-lambda-elasticsearch-kibana4/ReplaceDefaultSecurityGroup-security-group",
776
776
  "SecurityGroupEgress": [
777
777
  {
778
778
  "CidrIp": "0.0.0.0/0",
@@ -806,12 +806,6 @@
806
806
  "S3Bucket": "cdk-hnb659fds-assets-12345678-test-region",
807
807
  "S3Key": "abbc4eca9e7ddabc31da3ce83159e6eee8e72e2c358ab8af0711044514c41290.zip"
808
808
  },
809
- "Role": {
810
- "Fn::GetAtt": [
811
- "testlambdaelasticsearchkibana4LambdaFunctionServiceRoleA52BB7F9",
812
- "Arn"
813
- ]
814
- },
815
809
  "Environment": {
816
810
  "Variables": {
817
811
  "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1",
@@ -824,6 +818,12 @@
824
818
  }
825
819
  },
826
820
  "Handler": "index.handler",
821
+ "Role": {
822
+ "Fn::GetAtt": [
823
+ "testlambdaelasticsearchkibana4LambdaFunctionServiceRoleA52BB7F9",
824
+ "Arn"
825
+ ]
826
+ },
827
827
  "Runtime": "nodejs16.x",
828
828
  "TracingConfig": {
829
829
  "Mode": "Active"
@@ -916,9 +916,6 @@
916
916
  "testlambdaelasticsearchkibana4CognitoUserPoolClientABBF34C4": {
917
917
  "Type": "AWS::Cognito::UserPoolClient",
918
918
  "Properties": {
919
- "UserPoolId": {
920
- "Ref": "testlambdaelasticsearchkibana4CognitoUserPool37A5CDE1"
921
- },
922
919
  "AllowedOAuthFlows": [
923
920
  "implicit",
924
921
  "code"
@@ -936,7 +933,10 @@
936
933
  ],
937
934
  "SupportedIdentityProviders": [
938
935
  "COGNITO"
939
- ]
936
+ ],
937
+ "UserPoolId": {
938
+ "Ref": "testlambdaelasticsearchkibana4CognitoUserPool37A5CDE1"
939
+ }
940
940
  }
941
941
  },
942
942
  "testlambdaelasticsearchkibana4CognitoIdentityPool76EE9793": {
@@ -1295,9 +1295,9 @@
1295
1295
  "testlambdaelasticsearchkibana4StatusRedAlarm56DEE5C7": {
1296
1296
  "Type": "AWS::CloudWatch::Alarm",
1297
1297
  "Properties": {
1298
+ "AlarmDescription": "At least one primary shard and its replicas are not allocated to a node. ",
1298
1299
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
1299
1300
  "EvaluationPeriods": 1,
1300
- "AlarmDescription": "At least one primary shard and its replicas are not allocated to a node. ",
1301
1301
  "MetricName": "ClusterStatus.red",
1302
1302
  "Namespace": "AWS/ES",
1303
1303
  "Period": 60,
@@ -1308,9 +1308,9 @@
1308
1308
  "testlambdaelasticsearchkibana4StatusYellowAlarm810B4F9E": {
1309
1309
  "Type": "AWS::CloudWatch::Alarm",
1310
1310
  "Properties": {
1311
+ "AlarmDescription": "At least one replica shard is not allocated to a node.",
1311
1312
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
1312
1313
  "EvaluationPeriods": 1,
1313
- "AlarmDescription": "At least one replica shard is not allocated to a node.",
1314
1314
  "MetricName": "ClusterStatus.yellow",
1315
1315
  "Namespace": "AWS/ES",
1316
1316
  "Period": 60,
@@ -1321,9 +1321,9 @@
1321
1321
  "testlambdaelasticsearchkibana4FreeStorageSpaceTooLowAlarmF3FB31EA": {
1322
1322
  "Type": "AWS::CloudWatch::Alarm",
1323
1323
  "Properties": {
1324
+ "AlarmDescription": "A node in your cluster is down to 20 GiB of free storage space.",
1324
1325
  "ComparisonOperator": "LessThanOrEqualToThreshold",
1325
1326
  "EvaluationPeriods": 1,
1326
- "AlarmDescription": "A node in your cluster is down to 20 GiB of free storage space.",
1327
1327
  "MetricName": "FreeStorageSpace",
1328
1328
  "Namespace": "AWS/ES",
1329
1329
  "Period": 60,
@@ -1334,9 +1334,9 @@
1334
1334
  "testlambdaelasticsearchkibana4IndexWritesBlockedTooHighAlarmF2968C92": {
1335
1335
  "Type": "AWS::CloudWatch::Alarm",
1336
1336
  "Properties": {
1337
+ "AlarmDescription": "Your cluster is blocking write requests.",
1337
1338
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
1338
1339
  "EvaluationPeriods": 1,
1339
- "AlarmDescription": "Your cluster is blocking write requests.",
1340
1340
  "MetricName": "ClusterIndexWritesBlocked",
1341
1341
  "Namespace": "AWS/ES",
1342
1342
  "Period": 300,
@@ -1347,9 +1347,9 @@
1347
1347
  "testlambdaelasticsearchkibana4AutomatedSnapshotFailureTooHighAlarm53EB1ABB": {
1348
1348
  "Type": "AWS::CloudWatch::Alarm",
1349
1349
  "Properties": {
1350
+ "AlarmDescription": "An automated snapshot failed. This failure is often the result of a red cluster health status.",
1350
1351
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
1351
1352
  "EvaluationPeriods": 1,
1352
- "AlarmDescription": "An automated snapshot failed. This failure is often the result of a red cluster health status.",
1353
1353
  "MetricName": "AutomatedSnapshotFailure",
1354
1354
  "Namespace": "AWS/ES",
1355
1355
  "Period": 60,
@@ -1360,9 +1360,9 @@
1360
1360
  "testlambdaelasticsearchkibana4CPUUtilizationTooHighAlarm29B67D10": {
1361
1361
  "Type": "AWS::CloudWatch::Alarm",
1362
1362
  "Properties": {
1363
+ "AlarmDescription": "100% CPU utilization is not uncommon, but sustained high usage is problematic. Consider using larger instance types or adding instances.",
1363
1364
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
1364
1365
  "EvaluationPeriods": 3,
1365
- "AlarmDescription": "100% CPU utilization is not uncommon, but sustained high usage is problematic. Consider using larger instance types or adding instances.",
1366
1366
  "MetricName": "CPUUtilization",
1367
1367
  "Namespace": "AWS/ES",
1368
1368
  "Period": 900,
@@ -1373,9 +1373,9 @@
1373
1373
  "testlambdaelasticsearchkibana4JVMMemoryPressureTooHighAlarm9DDED711": {
1374
1374
  "Type": "AWS::CloudWatch::Alarm",
1375
1375
  "Properties": {
1376
+ "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
1376
1377
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
1377
1378
  "EvaluationPeriods": 1,
1378
- "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
1379
1379
  "MetricName": "JVMMemoryPressure",
1380
1380
  "Namespace": "AWS/ES",
1381
1381
  "Period": 900,
@@ -1386,9 +1386,9 @@
1386
1386
  "testlambdaelasticsearchkibana4MasterCPUUtilizationTooHighAlarmE66867F2": {
1387
1387
  "Type": "AWS::CloudWatch::Alarm",
1388
1388
  "Properties": {
1389
+ "AlarmDescription": "Average CPU utilization over last 45 minutes too high. Consider using larger instance types for your dedicated master nodes.",
1389
1390
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
1390
1391
  "EvaluationPeriods": 3,
1391
- "AlarmDescription": "Average CPU utilization over last 45 minutes too high. Consider using larger instance types for your dedicated master nodes.",
1392
1392
  "MetricName": "MasterCPUUtilization",
1393
1393
  "Namespace": "AWS/ES",
1394
1394
  "Period": 900,
@@ -1399,9 +1399,9 @@
1399
1399
  "testlambdaelasticsearchkibana4MasterJVMMemoryPressureTooHighAlarm83E1822E": {
1400
1400
  "Type": "AWS::CloudWatch::Alarm",
1401
1401
  "Properties": {
1402
+ "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
1402
1403
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
1403
1404
  "EvaluationPeriods": 1,
1404
- "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
1405
1405
  "MetricName": "MasterJVMMemoryPressure",
1406
1406
  "Namespace": "AWS/ES",
1407
1407
  "Period": 900,