Programmatically Utilizing Data From S3

1 hour
  • 4 Learning Objectives

About this Hands-on Lab

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.

S3 list Objects V2

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.

S3 Get Object

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.

Additional Resources

You've been brought into a team to complete a proof of concept for a low cost employee directory for your company. The team has created a simple web interface, organized some placeholder employee information, and placed it in S3. They're having trouble getting the data from S3 into Lambda and need your assistance. You will need to collect all 1500 placeholder records from JSON files stored in an S3 bucket and return them in a single return from the Lambda function provided in the lab environment.

Boto3 S3 List Objects V2

Boto3 Get Object

Lambda Function

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!