Creating your first AWS Lambda Function | Scribe

    Creating your first AWS Lambda Function

    • Hafeez Baig |
    • 17 steps |
    • 3 minutes
    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

    The source code is also automatically created

    9

    Click on the **Test** button in the **Code source** section

    10

    Configure 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**

    11

    Scroll the page and click on **Save** button

    12

    Click on the **dropdown icon** beside the **Test** button to select the event

    13

    From the dropdown list, choose **FirstEvent**

    14

    After selecting the event, click on the **Test** button to execute the test

    15

    You can view the execution results in the **Execution results** section

    16

    You can view the **Response** below the Test Event Name in the Execution results section

    17

    You can view the **Function Logs** below the Response in the Execution results section

    information ordinal icon

    Congratulations on completing the lab and successfully creating your first AWS Lambda Function! Well done!