From 36e1bba05b02ce456c187e6bca9475712ac717ff Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Fri, 15 May 2020 20:25:01 -0400 Subject: [PATCH] Add lambda perms --- infrastructure/cloudformation/dt/cloudwatch.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/infrastructure/cloudformation/dt/cloudwatch.yaml b/infrastructure/cloudformation/dt/cloudwatch.yaml index d0ccd2e..a7563cf 100644 --- a/infrastructure/cloudformation/dt/cloudwatch.yaml +++ b/infrastructure/cloudformation/dt/cloudwatch.yaml @@ -25,6 +25,15 @@ Parameters: Resources: + CloudWatchLambdaPermission: + Type: AWS::Lambda::Permission + Condition: Automated + Properties: + Action: lambda:InvokeFunction + Principal: events.amazonaws.com + SourceArn: !GetAtt TaskListRule.Arn + FunctionName: !Ref LambdaArn + TaskListRule: Type: AWS::Events::Rule Properties: