Execution failed due to configuration error: Invalid permissions on Lambda function

I recently implemented some Lambda functions and API Gateways using swagger definitions from a colleague. But when I tried to test the gateways, I was always getting the message “Execution failed due to configuration error: Invalid permissions on Lambda function”. This had me stumped because I had set up the appropriate permissions on my lambdas. […]