Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

serverless.yaml example returns an error when includeing s3:event. #721

Open
your-eminence opened this issue Apr 27, 2023 · 0 comments
Open

Comments

@your-eminence
Copy link

The example serverless.yaml in the readme provides:

  s3hook:
    handler: handler.s3hook
    events:
      - s3: local-bucket
        event: s3:*

Which gives the following error when used:

Warning: Invalid configuration encountered
  at 'functions.index.events.0': unrecognized property 'event'

The only way I could get the event line to work was to use the following notation:

  s3hook:
    handler: handler.s3hook
    events:
      - s3:
          bucket: local-bucket
          event: s3:*
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant