https://pulumi.com logo
#general
Title
# general
l

loud-computer-30956

03/05/2019, 7:22 PM
Oh think I figured it out simply with
Copy code
// SNS topic and subscription to Lambda
let sns = new aws.sns.Topic("CW_ALARM_PULUMI");
let topicSubscription = new aws.sns.TopicEventSubscription("eventsub", sns, lambda, {});
l

lemon-spoon-91807

03/05/2019, 9:29 PM
@loud-computer-30956 You can do this even more easily:
sns.onEvent("eventsub", lambda)
😁 1
l

loud-computer-30956

05/14/2019, 8:19 AM
super late reply but thank you @lemon-spoon-91807 !
l

lemon-spoon-91807

05/15/2019, 7:29 PM
you're welcome!
2 Views