Add sns subscription

This commit is contained in:
2020-11-25 23:54:37 -05:00
parent 1bf9a3ac89
commit 9b37253cee

View File

@ -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