Skip to content

Commit

Permalink
[sdlf-monitoring] log group for data firehose lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
cnfait committed Sep 9, 2024
1 parent cba9d8f commit ab9d5c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sdlf-monitoring/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,16 @@ Resources:
Resource: !GetAtt rCloudwatchLogsFirehose.Arn
RoleName: !Ref rCloudwatchLogsFirehoseLambdaRole

rCloudwatchLogsFirehoseLambdaLogGroup:
Type: AWS::Logs::LogGroup
Condition: cLogsForwardingEnabled
DeletionPolicy: Delete
UpdateReplacePolicy: Delete
Properties:
LogGroupName: !Sub /aws/lambda/${rCloudwatchLogsFirehoseLambda}
RetentionInDays: !Ref pCloudWatchLogsRetentionInDays
KmsKeyId: "{{resolve:ssm:/SDLF/KMS/KeyArn}}"

rCloudwatchLogsFirehoseLambda:
Type: AWS::Serverless::Function
Condition: cLogsForwardingEnabled
Expand Down

0 comments on commit ab9d5c0

Please sign in to comment.