Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda: Failed to restore the function . The function's execution role doesn't have permission to perform this operation

I had a perfectly working AWS Lambda function. It processes some data from S3 and then writes some data on S3 and then finishes.

Without updating the code or permissions it now suddenly fails.

When browsing to the lambda function on AWS there is a red bar in the top stating:

Failed to restore the function "function name". The function's execution role doesn't have permission to perform this operation.

There is a button "restore". Upon pressing it I get the error:

There was a function configuration error. Contact the function’s owner.

When I try to test the function the response is as follows:

Calling the invoke API action failed with this message: Resources for the function are being restored. A previous restore operation failed with reason. The function's execution role doesn't have permission to perform this operation.

I did not change the permissions. The role use to work just fine. I have tried adding extra permissions up to the point of Lambda Full access, but this did not resolve the issue.

Any suggestions would be much appreciated.

like image 839
Christopher Lynch Avatar asked Sep 02 '25 16:09

Christopher Lynch


1 Answers

I think I solved the issue by adding the following permissions.

"ec2:CreateNetworkInterface" "ec2:DescribeNetworkInterfaces" "ec2:DeleteNetworkInterface"

like image 114
Christopher Lynch Avatar answered Sep 04 '25 06:09

Christopher Lynch