Not an answer, but StackOverflow doesn’t want to let me comment (new user & not enough reputation).
You say that you solved this by updating the permissions and then using an environment variable. Would you mind posting your configuration to show exactly what you did? I’m having the same issue and can set the permissions but I’m not seeing any suitable environment variables generated that help me get the table name inside the lambda :(