Skip to content

Commit 8ae893b

Browse files
committed
move back to firehose setup
1 parent 2a7786e commit 8ae893b

File tree

1 file changed

+10
-23
lines changed

1 file changed

+10
-23
lines changed

template.yaml

+10-23
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,6 @@ Resources:
7070
Code:
7171
ImageUri: !Sub 294331937131.dkr.ecr.ca-central-1.amazonaws.com/fraud-detection/validation-lambda:${ECRRepositoryTag}
7272
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-
9173

9274
LambdaPermission:
9375
Type: AWS::Lambda::Permission
@@ -123,14 +105,11 @@ Resources:
123105
Statement:
124106
- Effect: Allow
125107
Action:
126-
- s3:AbortMultipartUpload
127-
- s3:GetBucketLocation
128-
- s3:GetObject
129108
- s3:ListBucket
130-
- s3:ListBucketMultipartUploads
131109
- s3:PutObject
132110
Resource:
133111
- !GetAtt FraudDetectionBucket.Arn
112+
- !Sub "arn:aws:s3:::${Region}-${Environment}-fraud-detection-data/*"
134113
- Effect: Allow
135114
Action:
136115
- lambda:GetFunctionConfiguration
@@ -147,6 +126,11 @@ Resources:
147126
BucketARN: !GetAtt FraudDetectionBucket.Arn
148127
Prefix: processed-data/
149128
ErrorOutputPrefix: failed-data/
129+
BufferingHints:
130+
SizeInMBs: 1
131+
IntervalInSeconds: 0
132+
EncryptionConfiguration:
133+
NoEncryptionConfig: NoEncryption #
150134
ProcessingConfiguration:
151135
Enabled: true
152136
Processors:
@@ -161,4 +145,7 @@ Outputs:
161145
Description: Name of the Kinesis stream created
162146
BucketARN:
163147
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

Comments
 (0)