Is it possible to set the runtime of my `.onObject...
# general
j
Is it possible to set the runtime of my
.onObjectCreated()
lambda (in typescript) to
nodejs10.x
or am I looking at completely recreating the
BucketEventSubscription
class? I’ve looked at the options that are passed through to the handler but it’s just
{ parent: this }
w
You can create a
CallbackFunction
object, and pass that to
onObjectCrrated
. The former allows configuring any Lambda function settings, but also passing a callback as the code to execute.
j
Ok cool, I’ll give it a crack. Also what method does pulumi use to (tree shake? and) work out what libraries to bring over to the lambda function?
w
Some details in here: https://www.pulumi.com/docs/reference/serializing-functions/#determining-the-appropriate-node-modules-packages-to-include-with-a-lambda Any questions beyond that -let us know here or in #docs so we can address.