Add sns subscription
This commit is contained in:
parent
1bf9a3ac89
commit
9b37253cee
8
top.yaml
8
top.yaml
@ -44,3 +44,11 @@ Resources:
|
|||||||
Principal: sns.amazonaws.com
|
Principal: sns.amazonaws.com
|
||||||
SourceArn: !Ref SnsTopic
|
SourceArn: !Ref SnsTopic
|
||||||
FunctionName: !GetAtt CreateIssueLambda.Arn
|
FunctionName: !GetAtt CreateIssueLambda.Arn
|
||||||
|
|
||||||
|
SnsLambdaSubscription:
|
||||||
|
Type: AWS::SNS::Subscription
|
||||||
|
Properties:
|
||||||
|
Endpoint: !GetAtt CreateIssueLambda.Arn
|
||||||
|
Protocol: lambda
|
||||||
|
TopicArn: !Ref SnsTopic
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user