creamy-traffic-12121
03/30/2020, 4:13 PMconst topicSubscription = new aws.sns.TopicSubscription("topic", {
topic: snsTopic,
protocol: "lambda",
endpoint: lambda.arn
})
This is throwing the following error when running `$ pulumi up`:
error: Running program '/Users/michaelstott/sns' failed with an unhandled exception:
TypeError: Cannot read property 'arn' of undefined
at Object.<anonymous> (/Users/michaelstott/sns/sns.ts:10:25)
at Module._compile (internal/modules/cjs/loader.js:955:30)
The lambda in question is defined in another file and would be provisioned normally if not for this error. It seems that Pulumi is attempting to create the topic before the lambda is created. Is there a workaround for this?miniature-musician-31262
03/30/2020, 5:01 PMlambda
?.creamy-traffic-12121
03/30/2020, 5:23 PM