Re-deploy an updated aws lambda

Hi community,

I’ve been playing around with the serverless framework for node since a past couple of days and would like to start by saying kudos to the dev-team building an amazing framework. It’s been really easing out the hefty process of building, testing and deploying things on aws :smiley:

I’ve been trying to plug a lambda function to an existing s3 bucket which is configured for all s3:createObject:* events, I would like to know how do I re-deploy a lambda function (written in node) via the serverless framework once i’ve made some changes to it on my local machine.

Thanks

Hello @cantordust, let me see if I can help you.

To add a trigger to Lambda based on an existing S3 bucket you must do:

functions:
users:
handler: users.handler
events:

I am assuming your lambda is created through serverless. Let me know if this was helpful if not could you please detail your current scenario (manually created or serverless created lambda for example).