In an earlier section, when creating a Lambda function using the console, we talked about creating an IAM role and assigning permissions to the role so that it has access to different AWS resources; let's look at that in detail now.
AWS IAM is a service that helps you securely control access to different AWS services. With IAM, you can control who is authenticated and who is authorized to access the resources. IAM helps controlling access to AWS Services in the following ways.