Skip to content

Commit

Permalink
Try and fix the original exception in #5
Browse files Browse the repository at this point in the history
Make the delivery stream wait on the permissions to execute the processing Lambda
Thanks Niklas Rosencrantz for pointing it out
  • Loading branch information
kichik committed Aug 15, 2021
1 parent 75d977b commit 6163cbb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CloudWatch2S3.template
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Mappings:
- logs.ap-east-1.amazonaws.com
- logs.ap-northeast-1.amazonaws.com
- logs.ap-northeast-2.amazonaws.com
- logs.ap-northeast-3.amazonaws.com
- logs.ap-south-1.amazonaws.com
- logs.ap-southeast-1.amazonaws.com
- logs.ap-southeast-2.amazonaws.com
Expand Down Expand Up @@ -312,6 +313,8 @@ Resources:
PolicyName: DeliveryPolicy
Type: AWS::IAM::Role
DeliveryStream:
DependsOn:
- KinesisRoleLambdaPolicy
Properties:
DeliveryStreamType: KinesisStreamAsSource
ExtendedS3DestinationConfiguration:
Expand All @@ -328,7 +331,7 @@ Resources:
SizeInMBs:
Ref: BufferSizeHint
CloudWatchLoggingOptions:
Enabled: 'true'
Enabled: true
LogGroupName:
Ref: DeliveryStreamLog
LogStreamName:
Expand All @@ -346,7 +349,7 @@ Resources:
ProcessingConfiguration:
Fn::If:
- ProcessingRequired
- Enabled: 'true'
- Enabled: true
Processors:
- Parameters:
- ParameterName: LambdaArn
Expand Down

0 comments on commit 6163cbb

Please sign in to comment.