From the course: Learning Amazon Web Services Lambda
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Solution - Amazon Web Services (AWS) Tutorial
From the course: Learning Amazon Web Services Lambda
Solution
(upbeat music) - [Instructor] So in this video, I want to show you how I will solve the challenge. The first thing we are going to do is to create a new function from the Lambda console. We put a name to it, Challenge 1. I leave everything else as it is, we create the function. This takes a little while, and then we can continue with the configuration. The specification said that the function needs to be triggered by an API gateway. So we are going to create that one. And then we are able now to change the code of the function in order to fulfill the requirements. So let's go to the code of the function. The first thing we want to do is to get those values from the query string parameters. Then we are going to create a message. If the values are not there then we are going to do a validation. If the values are there then we can sum them and return them. And in order to sum them we need to parse them because these…
Contents
-
-
-
-
-
(Locked)
Create your first AWS Lambda3m 21s
-
(Locked)
AWS Lambda function triggers2m 44s
-
(Locked)
Introduction to API Gateway2m 38s
-
(Locked)
Add API Gateway as a trigger to Lambda4m 13s
-
(Locked)
Test your function with Postman2m 34s
-
(Locked)
Monitor your function with CloudWatch metrics3m 7s
-
(Locked)
Adding CloudWatch Logs3m 52s
-
(Locked)
Challenge39s
-
(Locked)
Solution2m 17s
-
(Locked)
-
-
-