We will be signing into the AWS Management Console. The reason we are using the Management Console first is to give you a better understanding of how Lambda functions work, and how they integrate with the other AWS services, such as API Gateway and DynamoDB. In later chapters, we will show you how to deploy Lambda functions using the AWS CLI. If you are a first-timer to Lambda, then I always find it useful to first create a full serverless stack manually in the Management Console to gain a better and deeper understanding than, say, have a magic command spin up the full AWS infrastructure!
We are going to first use the AWS Management Console to create the Lambda IAM role and policies, so that the Lambda function can access DynamoDB, and also write any logs or any statuses to CloudWatch. The Management Console, which we used...