Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Using AWS Lambda With Amazon Kinesis Data Stream

In this lab, you will step into the shoes of a data engineer who is challenged with moving some taxi data from a Cloud9 instance to a DynamoDB table so the data analyst team can easily access and view it. To accomplish this, you will launch a CloudFormation stack, create a Kinesis Data Stream, create a DynamoDB table, format a Lambda function, and finally, move data from the Cloud9 instance to the DynamoDB table.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 1h 0m
Published
Clock icon Dec 27, 2023

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create an Amazon Kinesis Data Stream

    Create a Kinesis Data Stream named input-stream.

  2. Challenge

    Populate Data on the Cloud9 Instance

    1. Add the lab1.py file from the lab GitHub repo to the Cloud9 instance.
    2. Install boto3 on the instance using pip install boto3.
    3. Run the newly created lab.py file with python lab.py.
  3. Challenge

    Create a DynamoDB Table

    Create a new DynamoDB table named kinesisAggs and add a partition key named vendorId with type of Number.

  4. Challenge

    Create and Configure a Lambda Function

    1. Create a new Lambda function named kinesisLambdaConsumer01.
    2. Set the IAM role to KinesisLambdaConsumerRole-Kinesislab
    3. Download and modify the lambda-deploy.zip file from the lab GitHub repo.
  5. Challenge

    Confirm Data is Populating to DynamoDB

    In the DynamoDB section of the console, explore items in the table and confirm that you have at least two entries.

    (If you are not seeing data after 5 minutes, your python script may have timed out. If you do not see data flowing in the CLI, rerun the python lab.py command and data should start flowing through in about 3-5 minutes)

  6. Challenge

    Create a CloudFormation Stack

    Create a CloudFormation stack using the template file provided in the GitHub repo for this lab named CFN Build.yaml.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans