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

happy-egg-47291

10/05/2018, 5:51 PM
Can you use a manually created
aws.lambda.Function
object with a cloud.API endpoint?
w

white-balloon-205

10/05/2018, 6:13 PM
Not currently - but you can with the AWS-specific
@pulumi/aws-serverless
package. Cc @lemon-spoon-91807 who can point at examples.
l

lemon-spoon-91807

10/05/2018, 6:14 PM
I definitely can! However, this is also changing right this moment, as we're merging this directly into the
@pulumi/aws
layer.
How badly do you need this? 🙂 Can definitely walk you through what should work on current bits. But if you want to wait until next release (next few days i think) it will get much simpler.
h

happy-egg-47291

10/05/2018, 6:18 PM
Not urgent, real cool though. I can wait to check it out.
This looks great. I'm playing with this https://github.com/srijs/rust-aws-lambda which spits out a rust binary (already zipped up) that runs with the lambda golang runtime but I don't wanna go through the whole work of https://github.com/pulumi/examples/tree/master/aws-ts-serverless-raw to get it running. Would love to just slot it in as a
cloud.API
endpoint.
l

lemon-spoon-91807

10/05/2018, 6:21 PM
wow!
note: we don't have any plans to make that possible directly from cloud.API. but it would be very doable by directly making an "aws.apigateway.x.API"
like the example does that i linked to
h

happy-egg-47291

10/05/2018, 6:22 PM
yeah, that seems good too
l

lemon-spoon-91807

10/05/2018, 6:22 PM
ok great 🙂