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.
I think I solved the issue by adding the following permissions.
"ec2:CreateNetworkInterface" "ec2:DescribeNetworkInterfaces" "ec2:DeleteNetworkInterface"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With