agiledigital / serverless-sns-sqs-lambda

serverless plugin to make serverless-sns-sqs-lambda events
Apache License 2.0
81 stars 18 forks source link

Handle functions with provisioned concurrency #875

Open hrist0stoichev opened 4 months ago

hrist0stoichev commented 4 months ago

When using provisionedConcurrency, serverless creates an alias for it and, as a result, the SQS trigger is not attached to it, making the provisionedConcurrency basically useless because nothing calls it. This PR adds handling for functions with provisioned concurrency by attaching the SQS to the alias itself. It's tested in a real environment and works as expected.