This message was deleted.
# general
s
This message was deleted.
f
I did a MIW episode on a related topic, which was to do it via GCP, but I’m guessing a lot of it will be fairly similar:

https://www.youtube.com/watch?v=mU5_aclyQR8

Probably the biggest difference is you’ll want to use something like
awsx.api
https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/apigateway/ to wire up the Lambda function to an endpoint
b
thanks, I'll check it out.
the apollo-server-lambda handler function doesn't work as pulumi aws.apigateway.eventHandler. Two things: Context types are different and pulumi complains about apollo-server-lambda using 'this' and it fails
creating the aws.lambdaFunction('my-func', apolloLambdaHandler) fails too with same error
it seems that Pulumi cannot serialize Apollo
Please let me know if you have any suggestions. Same happens if I try
aws.lambda.Function("f", graphqlHandler)
ah yeah, watching the video now. Thanks this is exactly what I was looking for
f
Awesome! If you get a working example, happy to take submissions in https://github.com/pulumi/examples
👍 1