Building a Logs Processing Pipeline with Amazon Kinesis
Building a Logs Processing Pipeline with Amazon Kinesis

CLOUD LABS

Building a Logs Processing Pipeline with Amazon Kinesis

In this Cloud Lab, you’ll learn to create a data processing pipeline using Kinesis Data Streams and Lambda, which processes the log files and logs the results in the CloudWatch.

11 Tasks

beginner

1hr 30m

Certificate of Completion

Desktop OnlyDevice is not compatible.
No Setup Required
Amazon Web Services

Learning Objectives

Ability to set up and configure the Kinesis agent on an EC2 instance to collect data from a log file
Knowledge of creating a Kinesis stream and configuring it to trigger a Lambda function
Hands-on experience with processing Kinesis stream data using Lambda and logging events in CloudWatch
Understanding of serverless data processing pipelines and their applications in modern cloud-based systems
Skill in designing and implementing similar data processing pipelines in your projects using AWS services like Kinesis and Lambda

Technologies
AWS logoAWS
Lambda
EC2
Kinesis
Cloud Lab Overview

In this Cloud Lab, you’ll learn to collect data from a log file using the Kinesis agent installed on an EC2 instance. The Kinesis agent sends this data to a Kinesis stream, which then triggers a Lambda function. The Lambda function processes the Kinesis stream and logs the event in CloudWatch. This technology is widely used in modern cloud-based systems to manage large amounts of data and process it in real-time.

This Cloud Lab will guide you on setting up and configuring the Kinesis agent on an EC2 instance. You’ll then create a Kinesis stream and set up a Lambda function to process the stream data. Moreover, you’ll learn to use CloudWatch to monitor the events processed by the Lambda function.

By the end of the Cloud Lab, you’ll have a working serverless data processing pipeline that can collect and store large amounts of data in real-time, have hands-on experience with AWS services like Kinesis data stream, Kinesis agent, and Lambda, and will be able to apply this knowledge to build similar data processing pipelines in your own projects. This Cloud Lab will equip you with the skills and knowledge needed to design and implement serverless data processing pipelines, advancing your career as a cloud developer.

The following is the high-level architecture diagram of the infrastructure you’ll create in this Cloud Lab:

Architecture diagram
Architecture diagram
Cloud Lab Tasks
1.Introduction
Getting Started
Create a Kinesis Data Stream
Create IAM roles
2.Configure Stream Producer
Create an EC2 Instance
Configure Kinesis Agent
3.Configure Stream Consumer
Create Lambda Function
Add the Trigger for the Lambda Function
4.Putting It All Together
Write Data to the Stream
Logs for the Consumer Lambda Function
5.Conclusion
Cleanup
Wrap Up
Labs Rules Apply
Stay within resource usage requirements.
Do not engage in cryptocurrency mining.
Do not engage in or encourage activity that is illegal.

Trusted by 1.4 million developers working at companies including

Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg
Don’t take our word for it. See what our developers have to say.

Your method is simple, straight to the point and I can practice with it everywhere, even from my phone, that's something I have never had in other learning platforms.

Felipe Matheus
TestimonialsImg

I highly recommend Educative. The courses are well organized and easy to understand.

Adina Ong
TestimonialsImg

I prefer Educative courses because they have a nice mix of text & images. I find that with full video courses, it can often be too easy to go into passive learning mode.

Clifford Fajardo
TestimonialsImg

Get access to Educative Cloud Labs

Course Footer Image
Course Footer Image