Creating your first API Gateway | Scribe

    Creating your first API Gateway

    • Hafeez Baig |
    • 16 steps |
    • 4 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 **API Gateway** in the search bar and click on **API Gateway** to view the API Gateway page

    3

    On the **API Gateway** page , scroll down to the **REST API** section and click on the **Build** button

    information ordinal icon

    **What is REST API in AWS?** A REST API in AWS is a way for applications to communicate with AWS services over the internet using standard HTTP methods like GET, POST, PUT, and DELETE. It allows developers to access and manage AWS resources programmatically without needing to interact with the AWS Management Console directly.

    4

    RESE API Creation wizard will open, In the **API details** section select **New API** option and give the **API name** as "**hello-world-api-gateway**"

    5

    Select the **API endpoint type** as **Regional** from the dropdown and then click on the **Create API** button

    6

    The **REST API** "**hello-world-api-gateway**" has been successfully created

    7

    Click on **Create method** button on the right side of the page

    8

    The method creation wizard will open. Under the Method details, select **GET** from the Method type dropdown

    9

    Under the Integration type choose **Lambda function** option

    10

    Scroll to the **Lambda function** section and select the Lambda Function\ \ Choose the lambda function from the list that we created in this demo <https://scribehow.com/shared/Creating_your_first_AWS_Lambda_Function__yiSoRke_T3q56oZpUcRduA>

    information ordinal icon

    Refer to this guide to learn how to create an AWS Lambda Function and follow the steps <https://scribehow.com/shared/Creating_your_first_AWS_Lambda_Function__yiSoRke_T3q56oZpUcRduA>

    11

    Scroll the page and click on **Create method** button

    12

    The **GET** method has been successfully created

    13

    You can view your GET method Execution by clicking on the **GET** option on the left bar

    14

    Scroll the page and click on **Test** tab

    15

    Scroll to the **Test method** section, leave the settings as default and click on the **Test** button

    16

    After clicking on the **Test** button, you will be able to view the **GET method test results**

    information ordinal icon

    Congratulations on completing the lab and successfully creating your first API Gateway! Well done!