From 9b37253cee3e23e666a5c29d5c2d6769acf3f15d Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Wed, 25 Nov 2020 23:54:37 -0500 Subject: [PATCH] Add sns subscription --- top.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/top.yaml b/top.yaml index 3aa5d8d..96fd56d 100644 --- a/top.yaml +++ b/top.yaml @@ -44,3 +44,11 @@ Resources: Principal: sns.amazonaws.com SourceArn: !Ref SnsTopic FunctionName: !GetAtt CreateIssueLambda.Arn + + SnsLambdaSubscription: + Type: AWS::SNS::Subscription + Properties: + Endpoint: !GetAtt CreateIssueLambda.Arn + Protocol: lambda + TopicArn: !Ref SnsTopic +