Skip to content

Commit 37b5f82

Browse files
committed
add s3 destination to dump the data from lambda
1 parent 8b54c96 commit 37b5f82

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

template.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,22 @@ Resources:
6868
Code:
6969
ImageUri: !Sub 294331937131.dkr.ecr.ca-central-1.amazonaws.com/fraud-detection/validation-lambda:${ECRRepositoryTag}
7070
PackageType: Image
71+
72+
version:
73+
Type: AWS::Lambda::Version
74+
Properties:
75+
FunctionName: !Ref LambdaFunction
76+
77+
ValidDataDump:
78+
Type: AWS::Lambda::EventInvokeConfig
79+
Properties:
80+
DestinationConfig:
81+
OnSuccess:
82+
Destination: !GetAtt FraudDetectionBucket.Arn
83+
FunctionName: !Ref LambdaFunction
84+
MaximumRetryAttempts: 2
85+
Qualifier: !GetAtt version.Version
86+
7187

7288
LambdaPermission:
7389
Type: AWS::Lambda::Permission

0 commit comments

Comments
 (0)