From the course: Learning Amazon Web Services Lambda
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
See function logs with SAM - Amazon Web Services (AWS) Tutorial
From the course: Learning Amazon Web Services Lambda
See function logs with SAM
- [Instructor] So now we have our function deployed in the cloud and we tested it and it worked. So we can check in the AWS console, the metrics for this function. So we can go to the Lambda page where that function is, we go to monitor metrics and we can start seeing the different metrics. How many times it was executed, how many invocations, what is the duration, how many errors and so on and so forth. Also, we also saw that we have the CloudWatch logs. We can see them from Lambda. But I have to say that I'm not a fan of checking the logs from the Lambda console. It's takes me out from the focus when I'm working on a piece of code. I like to check my logs from the ID I'm working in. That's why this function from sam is really cool. It allows us to tail the logs as they come in. So we can do sam logs. Then the name of the function we want to get the logs from and this is the roll the dice function. Then we need the…