Lambda function policy vs. execute role.
Jun 28, 2021
Function Policy
It simplifies defines which AWS resources are allowed to invoke your lambda function.
Example: Added s3 as a trigger, lambda will automatically add function policy.
Execute Role
It determines what resources the function role has access to when the function is being run.