Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: [AEA-4488] - Gives filter unique name #1348

Merged
merged 13 commits into from
Oct 7, 2024
4 changes: 2 additions & 2 deletions SAMtemplates/alarms/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Resources:
GetMyPrescriptionsErrorsLogsMetricFilter:
Type: AWS::Logs::MetricFilter
Properties:
FilterName: GetMyPrescriptionsErrors
FilterName: !Sub ${StackName}_GetMyPrescriptionsErrors
FilterPattern: !Sub '{ ($.level = "ERROR") && ($.function_name = "${GetMyPrescriptionsFunctionName}") && ($.message != %error in request to serviceSearch%) }'
LogGroupName:
Fn::ImportValue: !Sub ${StackName}:functions:${GetMyPrescriptionsFunctionName}:LambdaLogGroupName
Expand Down Expand Up @@ -128,7 +128,7 @@ Resources:
EnrichPrescriptionsErrorsLogsMetricFilter:
Type: AWS::Logs::MetricFilter
Properties:
FilterName: EnrichPrescriptionsErrors
FilterName: !Sub ${StackName}_EnrichPrescriptionsErrors
FilterPattern: ERROR
LogGroupName:
Fn::ImportValue: !Sub ${StackName}:functions:${EnrichPrescriptionsFunctionName}:LambdaLogGroupName
Expand Down
Loading