Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.
This repository was 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

Description

@your-eminence

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:*

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions