I'm doing some training on serverless applications and upon trying to build a new stack I receive the following error:
Configuration warning at 'functions['s3-thumbnail-generator'].events[0]': unsupported function event
functions:
s3-thumbnail-generator:
handler: handler.s3-thumbnail-generator
events:
- s3:
bucket: ${self:custom.bucket}
event: s3:ObjectCreated:*
rules:
-suffix: .png
I cannot tell what is wrong. Can anyone let me know?
Thanks,