Building Custom AWS Lambda Runtimes

Building Custom AWS Lambda Runtimes
Building Custom AWS Lambda Runtimes

CLOUD LABS

Building Custom AWS Lambda Runtimes

Explore creating custom AWS Lambda runtimes to enable non-native language support for your application.

10 Tasks

intermediate

2hr

Certificate of Completion

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

Learning Objectives

Hands-on experience creating a custom runtime for AWS Lambda
A thorough understanding of custom runtimes in AWS Lambda
Understanding of Lambda execution life cycle

Technologies
Lambda logoLambda
EC2 logoEC2
Cloud Lab Overview

In this Cloud Lab, you’ll explore the concept of custom runtimes in AWS Lambda. Custom runtimes allow you to bring your runtime environment to AWS Lambda, enabling the use of any programming language or specific runtime configuration that AWS Lambda does not natively support.

In this Cloud lab, you will learn to create a custom runtime in the Lambda function. You will start the lab by creating a security group and an EC2 instance, then attach the security group to the EC2 instance. You will then use the EC2 instance to configure a PHP runtime and publish the runtime as a Lambda layer. Lastly, you will create an IAM role and a Lambda function to test the PHP custom runtime.

After completing this Cloud Lab, you can build Lambda functions with custom runtimes. This allows you to utilize programming languages and runtime setups beyond AWS Lambda’s native support. This expands the flexibility and capabilities of your serverless applications, making AWS Lambda an even more powerful and versatile tool in your development toolkit.

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

Custom runtimes in AWS Lambda
Custom runtimes in AWS Lambda
Cloud Lab Tasks
1.Introduction
Getting Started
2.Understand How Lambda Works
AWS Lambda Execution
Lambda Runtimes
How a Custom Runtime Works
3.Configure a Custom Runtime for Lambda
Create a Security Group
Create an EC2 Instance
Configure a Custom Runtime for AWS Lambda
Test the Custom Runtime
4.Conclusion
Clean Up
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.

Relevant Courses

Use the following content to review prerequisites or explore specific concepts in detail.

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