Skip to content

Custom function configuration is broken #83

Description

@ab-wave-rider

Using serverless-plugin-log-subscription version 2.2

Official documentation says:
Custom function settings:

custom:
  logSubscription:
    destinationArn: 'some-arn'

functions:
  myFunction:
    logSubscription:
      filterPattern: 'WARN*'

But adding

    logSubscription:
      filterPattern: 'WARN*'

to function does't work.

SLS outputs an error:

Warning: Invalid configuration encountered
  at 'functions.myFunction.logSubscription': must be boolean
Learn more about configuration validation here: http://slss.io/configuration-validation

And cloudwatch subscription filter ends up being w/o filter name or filter pattern.

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