sparse-intern-71089
12/05/2018, 12:31 AMbig-piano-35669
TopicSubscription
doesn't create the requisite permissions. @lemon-spoon-91807 what do you think?lemon-spoon-91807
12/05/2018, 3:45 AMlemon-spoon-91807
12/05/2018, 3:46 AMTopicEventSubscription
which also make's this permission for you automatically:lemon-spoon-91807
12/05/2018, 3:46 AMthis.permission = new lambda.Permission(name, {
action: "lambda:invokeFunction",
function: this.func,
principal: "<http://sns.amazonaws.com|sns.amazonaws.com>",
sourceArn: topic.id,
}, parentOpts);
lemon-spoon-91807
12/05/2018, 3:47 AMfull-dress-10026
12/05/2018, 3:56 AMTopicEventSubscription
located?full-dress-10026
12/05/2018, 3:57 AMlemon-spoon-91807
12/05/2018, 3:57 AMlemon-spoon-91807
12/05/2018, 3:58 AMlemon-spoon-91807
12/05/2018, 3:58 AMlemon-spoon-91807
12/05/2018, 3:58 AMlemon-spoon-91807
12/05/2018, 3:58 AMfull-dress-10026
12/05/2018, 3:58 AMlemon-spoon-91807
12/05/2018, 3:58 AM@pulumi/aws-serverless
has been deprecatedlemon-spoon-91807
12/05/2018, 3:59 AMbig-piano-35669
onEvent
?
E.g., for Kenny's example
alertsSnsTopic.onEvent(..)
rather than
new aws.sns.TopicSubscription(..., {
topic: alertsSnsTopic,
...
);
lemon-spoon-91807
12/05/2018, 4:00 AMbig-piano-35669
lemon-spoon-91807
12/05/2018, 4:01 AMlemon-spoon-91807
12/05/2018, 4:01 AM