Hm with the awsx cloud api thing, is there a way t...
# general
a
Hm with the awsx cloud api thing, is there a way to reference a folder to bundle up for a lambda upload? We have Python Lambdas and if we wanted to use javascript we'd have to reference the location of the python lambdas 😮
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