Every Lambda function has an IAM role associated with it.
This role defines what other AWS services the function is allowed to interact with.
Step 1: Go to AWS IAM console
Step 2: Select Roles in the left navigation bar and then choose Create role
Step 3: Select Lambda for the role type from the AWS service group, then click Next: Permissions
Selecting a role type automatically creates a trust policy for your role that allows AWS services to assume this role on your behalf. If you were creating this role using the CLI, AWS CloudFormation or another mechanism, you would specify a trust policy directly.
Step 4: Type AWSLambdaBasicExecutionRole in the Filter text box and check the box next to that role
Step 7: Click Next:Review
Step 8: Enter WildRydesLambda for the Role name
Step 9: Choose Create Role