We are going to create the Lambda function and the IAM role and policies. The first thing that you need to do is to log on to the AWS Management Console. In IAM, we want to create the actual policy itself. You can click on Create policies, and we are going to use the JSON editor.