Hello, I have a recurring error, when sls deploy on my project.
An error occurred: XXXXXLambdaFunction - The role defined for the function cannot be assumed by Lambda…
I had no problem and suddendly, this happens. I have 30 lambda in a file.
That’s usually caused by an IAM issue, not a code issue. Did something change with your IAM roles?
If you look at the configuration for your Lambda functions, you’ll see the role that they’re trying to assume - is it correct? Does it have a trust relationship with the Lambda service (i.e.