This lab teaches you the basics of working with Amazon DynamoDB Streams using the AWS CLI and then demonstrates their integration with AWS Lambda functions built using the AWS SDK for Python (Boto3).
Level
Intermediate
Duration
1 Hours 30 MinutesCourse Objectives
In this course, you will learn how to:
- Use the AWS CLI and shell variables to enable DynamoDB Streams
- Connect a Lambda function built with the AWS SDK for Python (Boto3) to a DynamoDB Stream
- Send email notifications to a user whenever an item is added to, modified, or removed from a DynamoDB table
- Automate DynamoDB item removal by enabling a Time To Live (TTL) attribute for a table item
- Create a workflow to move expired DynamoDB items to long term storage in Amazon S3
Intended Audience
This course is intended for:
- Architects
- Data Engineers
- Developers
Prerequisites
We recommend that attendees of this course have the following prerequisites:
- Familiar with using a linux console, NoSQL database concepts, and basic bash scripting.
- Comfortable editing files using a text editor
Course Outline
- Task 1: Connect to AWS Cloud9
- Task 2: Enable DynamoDB Streams
- Task 3: Connect an AWS Lambda Function to DynamoDB Streams
- Task 4: Subscribe to an SNS topic
- Task 5: Enable Time to Live
- Task 6: Archive Expired Items