serverless-plugin-log-subscription icon indicating copy to clipboard operation
serverless-plugin-log-subscription copied to clipboard

Custom function configuration is broken

Open ab-wave-rider opened this issue 2 years ago • 0 comments

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.

ab-wave-rider avatar Oct 12 '23 21:10 ab-wave-rider