Creating your first AWS Lambda Function | Scribe

    Creating your first AWS Lambda Function

    • Hafeez Baig |
    • 17 steps |
    • 4 minutes
    • Amazon Web ServicesAmazon Web Services
    information ordinal icon
    Refer to the following guide to learn how to use IAM in the cloud\ <https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>
    1
    Sign in to **AWS Management Console** as an **IAM User** **Pre-requisite** - Ensure you have selected the AWS region closest to your location\ For this guide, we will be using us-east-2 (Ohio) as a preferred choice
    2
    Type **Lambda** in the search bar and click on **Lambda** to view the Lambda page
    3
    On the **Lambda** page click on **Create function** button on the right side
    4
    The Function creation wizard will open, select the **Author from scratch** option and under the **Basic information** section give the Function name as "**my-node-js-lambda**"
    5
    In the **Runtime** dropdown, select and use the latest version of Node.js
    6
    Scroll the page and click on the **Create function** button to start the creation process
    7
    The lambda function "**my-node-js-lambda**" has been successfully created
    8
    ***( Optional Step )*** If you see the screen below, choose **Switch to the new editor**, as we will continue with the new editor UI.
    9
    The source code is also automatically created
    10
    Click on the **Test** button in the **Code source** section
    11
    The test event wizard will open, under the **Test event action** section, select the **Create new event** option and Provide the **Event name** as "**FirstEvent**" Select the **Event sharing settings** option as **Private**
    12
    Click on the **Save** button located on the right side.
    13
    Click on the **Test** button next to **Save**.
    14
    Click on the **Details** button.
    15
    You can view the execution summary in this section.
    16
    You can view the **Response** in the Execution log section.
    17
    Scroll down and you can view the **Function Logs** in the **Log output** section.
    information ordinal icon
    Congratulations on completing the lab and successfully creating your first AWS Lambda Function! Well done!