Skip to content

Commit

Permalink
fix(dependency issue): Add an implicit dependency between the metric …
Browse files Browse the repository at this point in the history
…filters and the cloudwatch log groups, to avoid a race condition (#109)
  • Loading branch information
mdial89f authored Aug 31, 2023
1 parent e058af5 commit 96e9dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/data/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ resources:
SeatoolLogMessageMetricFilter:
Type: "AWS::Logs::MetricFilter"
Properties:
LogGroupName: /aws/lambda/${self:service}-${sls:stage}-sinkSeatool
LogGroupName: !Ref SinkSeatoolLogGroup
FilterPattern: '"SEATOOL Validation Error"'
MetricTransformations:
- MetricName: SeatoolValidationErrors
Expand All @@ -373,7 +373,7 @@ resources:
OnemacLogMessageMetricFilter:
Type: "AWS::Logs::MetricFilter"
Properties:
LogGroupName: /aws/lambda/${self:service}-${sls:stage}-sinkOnemac
LogGroupName: !Ref SinkOnemacLogGroup
FilterPattern: '"ONEMAC Validation Error"'
MetricTransformations:
- MetricName: ONEMACValidationErrors
Expand Down

0 comments on commit 96e9dda

Please sign in to comment.