You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue while deploying Lambda function with provisionedConcurrency enabled which uses SQS as event source. The error message is following:
An error occurred: LambdaEventSourceMappingSQSqueue - Invalid request provided: Function does not exist (Service: Lambda, Status Code: 400, Request ID: 2774b672-c894-4a5a-b478-79d2230ad64e, Extended Request ID: null).
It seems that SLS is not injecting DependsOn for Event Source Mapping into CFN template which expects alias to be present while creating this event source mapping (here template generated):
If I deploy Lambda with events section commented but with provisionedConcurrency enabled, and after that I uncomment events section and redeploy - it works fine. So my conclusion is, that there is missing dependency for provisioned alias that is expected for CFN. The error message Function does not exist is confusing, but it apparently means that alias provisioned is not yet created. I think that might be related to this: #8059.
We had issues where Provisioned Concurrency would not get setup for an API Gateway in our automatic build environment that uses the latest serverless version. We had to roll back to an older version to get our Provisioned Concurrency to work again via serverless. I don't have too much time or expertise at the moment to track down the bug like @medikoo@grozdz did, but wanted to report this.
@radove if you have a scenario where provisioned concurrency setup worked with older Framework version, and it's not working with latest version, if possible please open new bug report with all the details
AFAIK This report describes case where provisioned concurrency never worked (when it was introduced, it didn't come with necessary changes to SQS event)
Hello,
There is an issue while deploying Lambda function with provisionedConcurrency enabled which uses SQS as event source. The error message is following:
It seems that SLS is not injecting DependsOn for Event Source Mapping into CFN template which expects alias to be present while creating this event source mapping (here template generated):
If I deploy Lambda with events section commented but with provisionedConcurrency enabled, and after that I uncomment events section and redeploy - it works fine. So my conclusion is, that there is missing dependency for provisioned alias that is expected for CFN. The error message Function does not exist is confusing, but it apparently means that alias provisioned is not yet created. I think that might be related to this: #8059.
serverless.yml
serverless deploy --stage dev --config serverless.yml --conceal
outputInstalled version
The text was updated successfully, but these errors were encountered: