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

average-dream-51210

05/19/2019, 8:03 PM
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

big-piano-35669

05/19/2019, 9:11 PM
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

average-dream-51210

05/19/2019, 10:30 PM
Nice, thanks!
Hm so in this snippet of code:
I can replace eventHandler with an instance of
aws.lambda.function
?
b

big-piano-35669

05/20/2019, 3:06 AM
Yes, exactly right, it can take either.
a

average-dream-51210

05/21/2019, 8:16 PM
Awesome, appreciate it, diving right in! Pulumi's coming into our company 😄
🎉 1