serverless-plugin-log-subscription
serverless-plugin-log-subscription copied to clipboard
Custom function configuration is broken
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.