I created a function that writes to dynamo and is associated with a custom role. When I remove the policy from the role that allows writes to my dynamo table and test the function again, the function is still able to write to the table.
Why does a change to the role not take effect in the lambda function? Is this a bug?
I found that if I modify the description of the function and save it, the function now cannot write to dynamo as originally expected.