Hi team, I'm trying to deploy a Lambda that shoul...
# general
e
Hi team, I'm trying to deploy a Lambda that should be triggered by an object creation in an S3 bucket. My stack is working on AWS, and so far it has been coded in Python. I've seen this post https://www.pulumi.com/docs/guides/crosswalk/aws/lambda/, is there any analogy for
onObjectCreated
in Python? I couldn't find it..
l
No, the s3Mixins are available only in nodejs. However the code is fairly straightforward to follow and reproduce: it just wraps creating a few other resources. You can start here: https://github.com/pulumi/pulumi-aws/blob/db52cdc7e10e53ebb6e1b90c7c344f1faa462ed6/sdk/nodejs/s3/s3Mixins.ts#L248 Which creates an EventRuleEventSubscription: https://github.com/pulumi/pulumi-aws/blob/db52cdc7e10e53ebb6e1b90c7c344f1faa462ed6/sdk/nodejs/cloudwatch/eventRuleMixins.ts#L70 You could easily rewrite the code in that class as a ComponentResource (and imo, Pulumi devs should probably do exactly that).