@aws-solutions-constructs/aws-lambda-opensearch 2.44.0 → 2.45.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.
@@ -139,12 +139,6 @@
139
139
  },
140
140
  "S3Key": "abbc4eca9e7ddabc31da3ce83159e6eee8e72e2c358ab8af0711044514c41290.zip"
141
141
  },
142
- "Role": {
143
- "Fn::GetAtt": [
144
- "testlambdaopensearchLambdaFunctionServiceRole4722AB8A",
145
- "Arn"
146
- ]
147
- },
148
142
  "Environment": {
149
143
  "Variables": {
150
144
  "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1",
@@ -157,6 +151,12 @@
157
151
  }
158
152
  },
159
153
  "Handler": "index.handler",
154
+ "Role": {
155
+ "Fn::GetAtt": [
156
+ "testlambdaopensearchLambdaFunctionServiceRole4722AB8A",
157
+ "Arn"
158
+ ]
159
+ },
160
160
  "Runtime": "nodejs16.x",
161
161
  "TracingConfig": {
162
162
  "Mode": "Active"
@@ -238,9 +238,6 @@
238
238
  "testlambdaopensearchCognitoUserPoolClient39C21D94": {
239
239
  "Type": "AWS::Cognito::UserPoolClient",
240
240
  "Properties": {
241
- "UserPoolId": {
242
- "Ref": "testlambdaopensearchCognitoUserPoolA09096F9"
243
- },
244
241
  "AllowedOAuthFlows": [
245
242
  "implicit",
246
243
  "code"
@@ -258,7 +255,10 @@
258
255
  ],
259
256
  "SupportedIdentityProviders": [
260
257
  "COGNITO"
261
- ]
258
+ ],
259
+ "UserPoolId": {
260
+ "Ref": "testlambdaopensearchCognitoUserPoolA09096F9"
261
+ }
262
262
  }
263
263
  },
264
264
  "testlambdaopensearchCognitoIdentityPool0B1FB311": {
@@ -608,9 +608,9 @@
608
608
  "testlambdaopensearchStatusRedAlarm1627144D": {
609
609
  "Type": "AWS::CloudWatch::Alarm",
610
610
  "Properties": {
611
+ "AlarmDescription": "At least one primary shard and its replicas are not allocated to a node. ",
611
612
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
612
613
  "EvaluationPeriods": 1,
613
- "AlarmDescription": "At least one primary shard and its replicas are not allocated to a node. ",
614
614
  "MetricName": "ClusterStatus.red",
615
615
  "Namespace": "AWS/ES",
616
616
  "Period": 60,
@@ -621,9 +621,9 @@
621
621
  "testlambdaopensearchStatusYellowAlarm57139CF0": {
622
622
  "Type": "AWS::CloudWatch::Alarm",
623
623
  "Properties": {
624
+ "AlarmDescription": "At least one replica shard is not allocated to a node.",
624
625
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
625
626
  "EvaluationPeriods": 1,
626
- "AlarmDescription": "At least one replica shard is not allocated to a node.",
627
627
  "MetricName": "ClusterStatus.yellow",
628
628
  "Namespace": "AWS/ES",
629
629
  "Period": 60,
@@ -634,9 +634,9 @@
634
634
  "testlambdaopensearchFreeStorageSpaceTooLowAlarm6A5E1E96": {
635
635
  "Type": "AWS::CloudWatch::Alarm",
636
636
  "Properties": {
637
+ "AlarmDescription": "A node in your cluster is down to 20 GiB of free storage space.",
637
638
  "ComparisonOperator": "LessThanOrEqualToThreshold",
638
639
  "EvaluationPeriods": 1,
639
- "AlarmDescription": "A node in your cluster is down to 20 GiB of free storage space.",
640
640
  "MetricName": "FreeStorageSpace",
641
641
  "Namespace": "AWS/ES",
642
642
  "Period": 60,
@@ -647,9 +647,9 @@
647
647
  "testlambdaopensearchIndexWritesBlockedTooHighAlarmD2E041A3": {
648
648
  "Type": "AWS::CloudWatch::Alarm",
649
649
  "Properties": {
650
+ "AlarmDescription": "Your cluster is blocking write requests.",
650
651
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
651
652
  "EvaluationPeriods": 1,
652
- "AlarmDescription": "Your cluster is blocking write requests.",
653
653
  "MetricName": "ClusterIndexWritesBlocked",
654
654
  "Namespace": "AWS/ES",
655
655
  "Period": 300,
@@ -660,9 +660,9 @@
660
660
  "testlambdaopensearchAutomatedSnapshotFailureTooHighAlarm9A4D0B1F": {
661
661
  "Type": "AWS::CloudWatch::Alarm",
662
662
  "Properties": {
663
+ "AlarmDescription": "An automated snapshot failed. This failure is often the result of a red cluster health status.",
663
664
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
664
665
  "EvaluationPeriods": 1,
665
- "AlarmDescription": "An automated snapshot failed. This failure is often the result of a red cluster health status.",
666
666
  "MetricName": "AutomatedSnapshotFailure",
667
667
  "Namespace": "AWS/ES",
668
668
  "Period": 60,
@@ -673,9 +673,9 @@
673
673
  "testlambdaopensearchCPUUtilizationTooHighAlarmC4850758": {
674
674
  "Type": "AWS::CloudWatch::Alarm",
675
675
  "Properties": {
676
+ "AlarmDescription": "100% CPU utilization is not uncommon, but sustained high usage is problematic. Consider using larger instance types or adding instances.",
676
677
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
677
678
  "EvaluationPeriods": 3,
678
- "AlarmDescription": "100% CPU utilization is not uncommon, but sustained high usage is problematic. Consider using larger instance types or adding instances.",
679
679
  "MetricName": "CPUUtilization",
680
680
  "Namespace": "AWS/ES",
681
681
  "Period": 900,
@@ -686,9 +686,9 @@
686
686
  "testlambdaopensearchJVMMemoryPressureTooHighAlarmEFB09A7C": {
687
687
  "Type": "AWS::CloudWatch::Alarm",
688
688
  "Properties": {
689
+ "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
689
690
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
690
691
  "EvaluationPeriods": 1,
691
- "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
692
692
  "MetricName": "JVMMemoryPressure",
693
693
  "Namespace": "AWS/ES",
694
694
  "Period": 900,
@@ -699,9 +699,9 @@
699
699
  "testlambdaopensearchMasterCPUUtilizationTooHighAlarm124D5748": {
700
700
  "Type": "AWS::CloudWatch::Alarm",
701
701
  "Properties": {
702
+ "AlarmDescription": "Average CPU utilization over last 45 minutes too high. Consider using larger instance types for your dedicated master nodes.",
702
703
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
703
704
  "EvaluationPeriods": 3,
704
- "AlarmDescription": "Average CPU utilization over last 45 minutes too high. Consider using larger instance types for your dedicated master nodes.",
705
705
  "MetricName": "MasterCPUUtilization",
706
706
  "Namespace": "AWS/ES",
707
707
  "Period": 900,
@@ -712,9 +712,9 @@
712
712
  "testlambdaopensearchMasterJVMMemoryPressureTooHighAlarmBC9524D3": {
713
713
  "Type": "AWS::CloudWatch::Alarm",
714
714
  "Properties": {
715
+ "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
715
716
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
716
717
  "EvaluationPeriods": 1,
717
- "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
718
718
  "MetricName": "MasterJVMMemoryPressure",
719
719
  "Namespace": "AWS/ES",
720
720
  "Period": 900,
@@ -740,9 +740,6 @@
740
740
  "VpcisolatedSubnet1SubnetE62B1B9B": {
741
741
  "Type": "AWS::EC2::Subnet",
742
742
  "Properties": {
743
- "VpcId": {
744
- "Ref": "Vpc8378EB38"
745
- },
746
743
  "AvailabilityZone": "test-region-1a",
747
744
  "CidrBlock": "10.0.0.0/18",
748
745
  "MapPublicIpOnLaunch": false,
@@ -759,21 +756,24 @@
759
756
  "Key": "Name",
760
757
  "Value": "disabled-zone-awareness/Vpc/isolatedSubnet1"
761
758
  }
762
- ]
759
+ ],
760
+ "VpcId": {
761
+ "Ref": "Vpc8378EB38"
762
+ }
763
763
  }
764
764
  },
765
765
  "VpcisolatedSubnet1RouteTableE442650B": {
766
766
  "Type": "AWS::EC2::RouteTable",
767
767
  "Properties": {
768
- "VpcId": {
769
- "Ref": "Vpc8378EB38"
770
- },
771
768
  "Tags": [
772
769
  {
773
770
  "Key": "Name",
774
771
  "Value": "disabled-zone-awareness/Vpc/isolatedSubnet1"
775
772
  }
776
- ]
773
+ ],
774
+ "VpcId": {
775
+ "Ref": "Vpc8378EB38"
776
+ }
777
777
  }
778
778
  },
779
779
  "VpcisolatedSubnet1RouteTableAssociationD259E31A": {
@@ -805,7 +805,7 @@
805
805
  "Tags": [
806
806
  {
807
807
  "Key": "Name",
808
- "Value": "disabled-zone-awareness/Vpc"
808
+ "Value": "disabled-zone-awareness/Vpc/FlowLog"
809
809
  }
810
810
  ]
811
811
  }
@@ -857,7 +857,7 @@
857
857
  "Tags": [
858
858
  {
859
859
  "Key": "Name",
860
- "Value": "disabled-zone-awareness/Vpc"
860
+ "Value": "disabled-zone-awareness/Vpc/FlowLog"
861
861
  }
862
862
  ]
863
863
  },
@@ -877,10 +877,6 @@
877
877
  "VpcFlowLog8FF33A73": {
878
878
  "Type": "AWS::EC2::FlowLog",
879
879
  "Properties": {
880
- "ResourceId": {
881
- "Ref": "Vpc8378EB38"
882
- },
883
- "ResourceType": "VPC",
884
880
  "DeliverLogsPermissionArn": {
885
881
  "Fn::GetAtt": [
886
882
  "VpcFlowLogIAMRole6A475D41",
@@ -891,10 +887,14 @@
891
887
  "LogGroupName": {
892
888
  "Ref": "VpcFlowLogLogGroup7B5C56B9"
893
889
  },
890
+ "ResourceId": {
891
+ "Ref": "Vpc8378EB38"
892
+ },
893
+ "ResourceType": "VPC",
894
894
  "Tags": [
895
895
  {
896
896
  "Key": "Name",
897
- "Value": "disabled-zone-awareness/Vpc"
897
+ "Value": "disabled-zone-awareness/Vpc/FlowLog"
898
898
  }
899
899
  ],
900
900
  "TrafficType": "ALL"
@@ -98,12 +98,6 @@
98
98
  },
99
99
  "S3Key": "abbc4eca9e7ddabc31da3ce83159e6eee8e72e2c358ab8af0711044514c41290.zip"
100
100
  },
101
- "Role": {
102
- "Fn::GetAtt": [
103
- "testlambdaopensearchLambdaFunctionServiceRole4722AB8A",
104
- "Arn"
105
- ]
106
- },
107
101
  "Environment": {
108
102
  "Variables": {
109
103
  "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1",
@@ -116,6 +110,12 @@
116
110
  }
117
111
  },
118
112
  "Handler": "index.handler",
113
+ "Role": {
114
+ "Fn::GetAtt": [
115
+ "testlambdaopensearchLambdaFunctionServiceRole4722AB8A",
116
+ "Arn"
117
+ ]
118
+ },
119
119
  "Runtime": "nodejs16.x",
120
120
  "TracingConfig": {
121
121
  "Mode": "Active"
@@ -181,9 +181,6 @@
181
181
  "testlambdaopensearchCognitoUserPoolClient39C21D94": {
182
182
  "Type": "AWS::Cognito::UserPoolClient",
183
183
  "Properties": {
184
- "UserPoolId": {
185
- "Ref": "testlambdaopensearchCognitoUserPoolA09096F9"
186
- },
187
184
  "AllowedOAuthFlows": [
188
185
  "implicit",
189
186
  "code"
@@ -201,7 +198,10 @@
201
198
  ],
202
199
  "SupportedIdentityProviders": [
203
200
  "COGNITO"
204
- ]
201
+ ],
202
+ "UserPoolId": {
203
+ "Ref": "testlambdaopensearchCognitoUserPoolA09096F9"
204
+ }
205
205
  }
206
206
  },
207
207
  "testlambdaopensearchCognitoIdentityPool0B1FB311": {
@@ -539,9 +539,9 @@
539
539
  "testlambdaopensearchStatusRedAlarm1627144D": {
540
540
  "Type": "AWS::CloudWatch::Alarm",
541
541
  "Properties": {
542
+ "AlarmDescription": "At least one primary shard and its replicas are not allocated to a node. ",
542
543
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
543
544
  "EvaluationPeriods": 1,
544
- "AlarmDescription": "At least one primary shard and its replicas are not allocated to a node. ",
545
545
  "MetricName": "ClusterStatus.red",
546
546
  "Namespace": "AWS/ES",
547
547
  "Period": 60,
@@ -552,9 +552,9 @@
552
552
  "testlambdaopensearchStatusYellowAlarm57139CF0": {
553
553
  "Type": "AWS::CloudWatch::Alarm",
554
554
  "Properties": {
555
+ "AlarmDescription": "At least one replica shard is not allocated to a node.",
555
556
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
556
557
  "EvaluationPeriods": 1,
557
- "AlarmDescription": "At least one replica shard is not allocated to a node.",
558
558
  "MetricName": "ClusterStatus.yellow",
559
559
  "Namespace": "AWS/ES",
560
560
  "Period": 60,
@@ -565,9 +565,9 @@
565
565
  "testlambdaopensearchFreeStorageSpaceTooLowAlarm6A5E1E96": {
566
566
  "Type": "AWS::CloudWatch::Alarm",
567
567
  "Properties": {
568
+ "AlarmDescription": "A node in your cluster is down to 20 GiB of free storage space.",
568
569
  "ComparisonOperator": "LessThanOrEqualToThreshold",
569
570
  "EvaluationPeriods": 1,
570
- "AlarmDescription": "A node in your cluster is down to 20 GiB of free storage space.",
571
571
  "MetricName": "FreeStorageSpace",
572
572
  "Namespace": "AWS/ES",
573
573
  "Period": 60,
@@ -578,9 +578,9 @@
578
578
  "testlambdaopensearchIndexWritesBlockedTooHighAlarmD2E041A3": {
579
579
  "Type": "AWS::CloudWatch::Alarm",
580
580
  "Properties": {
581
+ "AlarmDescription": "Your cluster is blocking write requests.",
581
582
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
582
583
  "EvaluationPeriods": 1,
583
- "AlarmDescription": "Your cluster is blocking write requests.",
584
584
  "MetricName": "ClusterIndexWritesBlocked",
585
585
  "Namespace": "AWS/ES",
586
586
  "Period": 300,
@@ -591,9 +591,9 @@
591
591
  "testlambdaopensearchAutomatedSnapshotFailureTooHighAlarm9A4D0B1F": {
592
592
  "Type": "AWS::CloudWatch::Alarm",
593
593
  "Properties": {
594
+ "AlarmDescription": "An automated snapshot failed. This failure is often the result of a red cluster health status.",
594
595
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
595
596
  "EvaluationPeriods": 1,
596
- "AlarmDescription": "An automated snapshot failed. This failure is often the result of a red cluster health status.",
597
597
  "MetricName": "AutomatedSnapshotFailure",
598
598
  "Namespace": "AWS/ES",
599
599
  "Period": 60,
@@ -604,9 +604,9 @@
604
604
  "testlambdaopensearchCPUUtilizationTooHighAlarmC4850758": {
605
605
  "Type": "AWS::CloudWatch::Alarm",
606
606
  "Properties": {
607
+ "AlarmDescription": "100% CPU utilization is not uncommon, but sustained high usage is problematic. Consider using larger instance types or adding instances.",
607
608
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
608
609
  "EvaluationPeriods": 3,
609
- "AlarmDescription": "100% CPU utilization is not uncommon, but sustained high usage is problematic. Consider using larger instance types or adding instances.",
610
610
  "MetricName": "CPUUtilization",
611
611
  "Namespace": "AWS/ES",
612
612
  "Period": 900,
@@ -617,9 +617,9 @@
617
617
  "testlambdaopensearchJVMMemoryPressureTooHighAlarmEFB09A7C": {
618
618
  "Type": "AWS::CloudWatch::Alarm",
619
619
  "Properties": {
620
+ "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
620
621
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
621
622
  "EvaluationPeriods": 1,
622
- "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
623
623
  "MetricName": "JVMMemoryPressure",
624
624
  "Namespace": "AWS/ES",
625
625
  "Period": 900,
@@ -630,9 +630,9 @@
630
630
  "testlambdaopensearchMasterCPUUtilizationTooHighAlarm124D5748": {
631
631
  "Type": "AWS::CloudWatch::Alarm",
632
632
  "Properties": {
633
+ "AlarmDescription": "Average CPU utilization over last 45 minutes too high. Consider using larger instance types for your dedicated master nodes.",
633
634
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
634
635
  "EvaluationPeriods": 3,
635
- "AlarmDescription": "Average CPU utilization over last 45 minutes too high. Consider using larger instance types for your dedicated master nodes.",
636
636
  "MetricName": "MasterCPUUtilization",
637
637
  "Namespace": "AWS/ES",
638
638
  "Period": 900,
@@ -643,9 +643,9 @@
643
643
  "testlambdaopensearchMasterJVMMemoryPressureTooHighAlarmBC9524D3": {
644
644
  "Type": "AWS::CloudWatch::Alarm",
645
645
  "Properties": {
646
+ "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
646
647
  "ComparisonOperator": "GreaterThanOrEqualToThreshold",
647
648
  "EvaluationPeriods": 1,
648
- "AlarmDescription": "Average JVM memory pressure over last 15 minutes too high. Consider scaling vertically.",
649
649
  "MetricName": "MasterJVMMemoryPressure",
650
650
  "Namespace": "AWS/ES",
651
651
  "Period": 900,