Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant