• Labs icon Lab
  • Cloud
Google Cloud Platform icon
Labs

Using the AWS CLI to Create an AWS Lambda Function

This hands-on lab provides experience with creating and customizing Lambda functions, all from within the CLI. The primary focus will be on Lambda, AWS CLI, and CloudWatch log streams. AWS Lambda allows you to create functions and only have to worry about managing your code. Using the CLI allows you to "ditch the clicks" — all those mouse gestures required when you create a function within the console.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 30m
Published
Clock icon Aug 03, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Create a Lambda Function Using the AWS CLI

    Create your Lambda function with the AWS CLI and verify it exists using the console:

    • SSH into the provided instance.
    • Create a local zip file containing the Node.js code.
    • Run the AWS CLI Lambda command to create a function (using the zipped file).
    • Update the configuration settings for the function (256 MB, 5 Sec Timeout).
    • Verify that the function shows within AWS.
  2. Challenge

    Invoke Your Function Using AWS CLI

    Using the AWS CLI, invoke the function you just created:

    • Use the AWS CLI Lambda command to invoke the function you created.
    • Verify it was invoked using the monitoring section of the AWS Lambda console.
    • Check the CloudWatch Logs for the proper logging.

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.

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.