Serverless An error occurred: XXX – Resource of type ‘AWS::Lambda::EventSourceMapping’ with identifier ‘YYY’ did not stabilize..

I’ve started using SQS-driven functions in my Serverless project and immediately got the error in the title during every deployment. The solution is to give more permissions to the user that is used for deployments: Note the * symbol. The rule covers a number of lambda permissions ending with “EventSourceMapping”.