Lambda trigger on existing s3 bucket


#1

If i need to launch a lambda that gets triggered everytime a new file is added to existing bucket, what should be the settings in serverless.yml file?

Currently, i am following this example and it trys to create a new bucket and fails since the bucket is already existing.


#2

You’ll need to use an existing plugin like https://www.npmjs.com/package/serverless-plugin-existing-s3