Deployment of my serverless app to trigger on S3 events fails to create a S3 trigger to the existing bucket. Below my serverless config. Any ideas what is wrong here? How can one debug this in the serverless framework?
serverless.yml:
...
provider:
name: aws
runtime: nodejs12.x
memorySize: 128 # optional, in MB, default is 1024
timeout: 10 # optional, in seconds, default is 6
stage: ${opt:stage, 'dev'}
region: eu-west-1
iamRoleStatements:
- Effect: Allow
Action:
- s3:*
Resource: "*"
functions:
s3EventProcessor:
name: s3Importer-${opt:stage}
handler: handler.processor
events:
- s3:
bucket: upload-test
event: s3:ObjectCreated:*
rules:
- suffix: .csv
existing: true