@@ -70,24 +70,6 @@ Resources:
70
70
Code :
71
71
ImageUri : !Sub 294331937131.dkr.ecr.ca-central-1.amazonaws.com/fraud-detection/validation-lambda:${ECRRepositoryTag}
72
72
PackageType : Image
73
-
74
- version :
75
- Type : AWS::Lambda::Version
76
- Properties :
77
- FunctionName : !Ref LambdaFunction
78
-
79
- ValidDataDump :
80
- Type : AWS::Lambda::EventInvokeConfig
81
- Properties :
82
- DestinationConfig :
83
- OnSuccess :
84
- Destination : !GetAtt FraudDetectionBucket.Arn
85
- OnFailure :
86
- Destination : !GetAtt FraudDetectionBucket.Arn
87
- FunctionName : !Ref LambdaFunction
88
- MaximumRetryAttempts : 2
89
- Qualifier : !GetAtt version.Version
90
-
91
73
92
74
LambdaPermission :
93
75
Type : AWS::Lambda::Permission
@@ -123,14 +105,11 @@ Resources:
123
105
Statement :
124
106
- Effect : Allow
125
107
Action :
126
- - s3:AbortMultipartUpload
127
- - s3:GetBucketLocation
128
- - s3:GetObject
129
108
- s3:ListBucket
130
- - s3:ListBucketMultipartUploads
131
109
- s3:PutObject
132
110
Resource :
133
111
- !GetAtt FraudDetectionBucket.Arn
112
+ - !Sub " arn:aws:s3:::${Region}-${Environment}-fraud-detection-data/*"
134
113
- Effect : Allow
135
114
Action :
136
115
- lambda:GetFunctionConfiguration
@@ -147,6 +126,11 @@ Resources:
147
126
BucketARN : !GetAtt FraudDetectionBucket.Arn
148
127
Prefix : processed-data/
149
128
ErrorOutputPrefix : failed-data/
129
+ BufferingHints :
130
+ SizeInMBs : 1
131
+ IntervalInSeconds : 0
132
+ EncryptionConfiguration :
133
+ NoEncryptionConfig : NoEncryption #
150
134
ProcessingConfiguration :
151
135
Enabled : true
152
136
Processors :
@@ -161,4 +145,7 @@ Outputs:
161
145
Description : Name of the Kinesis stream created
162
146
BucketARN :
163
147
Value : !Sub arn:aws:s3:::${Region}-${Environment}-fraud-detection-data/
164
- Description : ARN of the S3 bucket where processed data will be stored
148
+ Description : ARN of the S3 bucket where processed data will be stored
149
+ Firehose :
150
+ Value : !Ref KinesisFirehose
151
+ Description : Name of the Kinesis stream created
0 commit comments