Add sns subscription

This commit is contained in:
Layla 2020-11-25 23:54:37 -05:00
parent 1bf9a3ac89
commit 9b37253cee
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31

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