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.

Challenge

Challenge

(upbeat music) - [Instructor] Welcome to the last challenge of this course. This challenge should take you around 15 to 20 minutes to complete. The objective of this challenge is to create a new function that gets triggered with an HTTP GET request using API Gateway, and deploy it to the cloud, and test it. The function should take one number in the request as a query string parameters and return the results of rolling a dice that has that many sides. So for example, you have a traditional dice with six sides. If you put six, then you roll a dice of six sides and what is the result. But you can have a dice of four sides or 10 sides or 20 sides. If there is no input or the input is not a number, then you can roll a dice of six sides by the default. So here is an example on the HTTP request and response when there is an amount of sides in the request parameters. So here we have the GET with this <URL>/roll, and then the…

Contents