Use AWS Lambda Custom Runtimes to Run Bash Commands

Lab Steps

keyboard_tab
lock
Logging in to the Amazon Web Services Console
lock
Lambda layers and runtimes overview
lock
Creating a Lambda Layer
lock
Creating the Custom Runtime Lambda Function
lock
Testing the Custom Runtime Lambda Function
lock
Validate Introduction to Custom Runtimes for Lambda Functions

Ready for the real environment experience?

DifficultyBeginner
Max Duration45m
Students74
Ratings
5/5
star star star star star

Description

AWS Lambda is the core service for building Serverless applications in AWS. It allows you to create functions that are executed in response to events. You only pay for the time the function is executing. You can monitor functions and attach a wide variety of event triggers. You only have to select the runtime for the function you are creating and then you can start writing your code. The only limitation is that you have to use one of the programming languages that AWS provides. Well, this is no longer the case. Now you can create Lambda functions written in any kind of language by providing a custom runtime which teaches the Lambda function to understand the syntax of the language you want to use. In this Lab, you will be guided into the creation of a Lambda Layer which will contain the runtime configuration and the creation of a function that executes Bash shell commands.

Lab Objectives

Upon completion of this Lab you will be able to:

  • Create a Lambda layer and deploy the custom runtime the function will run on
  • Create a Lambda function written in Bash associated with the layer
  • Test the Lambda function

Lab Prerequisites

You should be familiar with:

  • Working at the command-line in Linux
  • Basic concepts of AWS Lambda
Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW

About the Author

Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Amazon Web Services is the provider he prefers and Node.js the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.