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.

Hear what others have to say
Join 1.4 million developers working at companies like