tsub / serverless-plugin-subscription-filter

Extend subscription filter events for the Serverless framework :zap:
https://www.npmjs.com/package/serverless-plugin-subscription-filter
MIT License
18 stars 5 forks source link

Increase filter subscription support with new limit #31

Open b-tin opened 3 months ago

b-tin commented 3 months ago

Current aws allow 2 filter subscription now so pls help review the PR

...
functions:
  monitoring:
    handler: handler.main
    layers:
      - "${cf:create-lambda-layers-ops.BtinDashpython311DashrequestsLambdaLayerQualifiedArn}"
      - "${cf:create-lambda-layers-ops.BtinDashpython311DashmarshmallowLambdaLayerQualifiedArn}"
    timeout: 60
    tags:
      monitoring: 'true'
    events:
      - subscriptionFilter:
          stage: ops
          logGroupName: /aws/lambda/log-group
          filterPattern: '{ ($.errorCode = "pattern-1") }'
      - subscriptionFilter:
          stage: ops
          logGroupName: /aws/lambda/log-group
          filterPattern: '{ ($.eventName = "pattern-2*") }'