https://pulumi.com logo
Title
l

lemon-spoon-91807

07/09/2018, 9:31 PM
Note: this example only requires
@pulumi/aws
and
@pulumi/aws-serverless
. These are our APIs for providing great access to the AWS cloud. Right now, i would recommend using them over
cloud.API
for more technical scenarios (like this one).
cloud.API
is more a work in progress, and wants to provide easy cloud app building, but without necessarily being able to take care of complex situations like yours
t

tall-librarian-49374

07/10/2018, 8:06 AM
I don't think that's too complex scenario, it's just a lambda done in another language. Would be nice to get it running in a couple lines of JS wiring + reference to proper compiled binary.
Creating aws.Function is fine, but then I need to do all dancing with api gateway, IAM etc, which I'm afraid of 🙂
Do you think there will be some API close to cloud.API supporting custom binaries? cc @white-balloon-205
Got it working. Basically, the only noice there is role/policy definition
w

white-balloon-205

07/10/2018, 4:26 PM
Right - the goal of
serverless.apigateway.API
is to take care of all the complex stuff needed to configure API Gateway. The Role/Policy is part of the specific Lambda, and in the cases where you are providing that yourself, that part still has to be done manually. But even that we will likely add some helpers to make it a bit simpler to create with sensible defaults.