Can you use a manually created `aws.lambda.Functio...
# general
h
Can you use a manually created
aws.lambda.Function
object with a cloud.API endpoint?
w
Not currently - but you can with the AWS-specific
@pulumi/aws-serverless
package. Cc @lemon-spoon-91807 who can point at examples.
l
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
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
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
yeah, that seems good too
l
ok great 🙂