Ravi Sir's Cards › AWS
Lambda execution role
This revision card explains Lambda execution role. It starts from the need that lambda also needs a role — and basic CloudWatch Logs permissions or you see no logs. It describes create a Lambda execution role trusted by lambda.amazonaws.com; attach AWSLambdaBasicExecutionRole plus your S3 read policy. The how-to section notes function › Configuration › Permissions › use the new role; test an S3 GetObject handler. An example on the card is test event succeeds; CloudWatch log stream shows START/END without AccessDenied on logs.
Read card text
What this card says
Why do we need it?
Lambda also needs a role — and basic CloudWatch Logs permissions or you see no logs.
What is it?
Create a Lambda execution role trusted by lambda.amazonaws.com; attach AWSLambdaBasicExecutionRole plus your S3 read policy.
lambda.amazonaws.com
How to do it
Function › Configuration › Permissions › use the new role; test an S3 GetObject handler.
Example
Test event succeeds; CloudWatch log stream shows START/END without AccessDenied on logs.