Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Creating a Simple AWS Lambda Function

This Learning Activity provides hands-on experience with creating and customizing Python3-based Lambda functions from within the console. The primary focus will be on the following features within AWS Lambda: 1. Lambda Console 2. Function Code 3. Execution Roles 4. Test Events 5. Execution Results AWS Lambda allows you to create functions and you only have to worry about managing your code. AWS handles the underlying infrastructure for you. This *HelloWorld* function will allow you to see just how easy it is to get started.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 25, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create a Lambda Function within the AWS Lambda Console
    1. Navigate to the Lambda portion of the AWS Console.
    2. Select Create your Lambda Function from scratch.
    3. Select Python3.6 as your runtime.
    4. Copy the code from the example code provided. https://raw.githubusercontent.com/linuxacademy/content-lambda-deep-dive/master/section_2/live_act_1/lambda_function.py
    5. Deploy your function after adding the sample code.
  2. Challenge

    Create a Test Event and Manually Invoke the Function Using the Test Event
    1. Select the drop-down next to Test at the top of the Lambda console.
    2. From the drop-down, select Configure test events.
    3. Select the Hello World event template.
    4. Erase the code in there and copy and paste the provided JSON code, then select Create.
    5. Click on the Test button and verify your function succeeds.
  3. Challenge

    Verify that CloudWatch has Captured Function Logs
    1. Navigate to the CloudWatch portion of the AWS Console.
    2. Select Logs from the selection on the left.
    3. Select the log group with your function name in it.
    4. Select the log stream within the log group.
    5. Verify the output is present and correct.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight