In this lab, we’re tasked with completing a Lambda function that collects data from S3, performs some basic formatting, and returns it to API Gateway to be loaded into a simple web interface.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Investigate the Lab Environment
In the lab interface, make note of the S3 bucket name that contains the data files necessary to complete the lab. The bucket name is prefixed with random-users-data .
Navigate to the Lambda web console and open the
Users_primary
function.- Collect Object Keys from S3
Add code to the
Users_primary
function to collect the keys of all objects within the _random_usersdata… bucket.- Collect and Combine Data from S3
Add code to the
Users_primary
function to collect and combine the appropriate data from the _random_usersdata… bucket.- Observe the Results on the Web Interface
Navigate to the web interface URL provided in the lab. If everything is working correctly, the counter should read 1500 and the users should be populated in the interface.