This message was deleted.
# general
s
This message was deleted.
b
There is. All of the places in AWSX that take inline lambdas can alternatively take instances of
aws.lambda.Function
(including
aws.lambda.CallbackFunction
). That means you can create one in JavaScript that references your Python folder, similar to this example: https://github.com/pulumi/examples/blob/45cded108b7037757d6ffacd224b05bc030ef196/aws-ts-serverless-raw/index.ts#L52-L66
a
Nice, thanks!
Hm so in this snippet of code:
I can replace eventHandler with an instance of
aws.lambda.function
?
b
Yes, exactly right, it can take either.
a
Awesome, appreciate it, diving right in! Pulumi's coming into our company 😄
🎉 1