Creating an internet gateway and making subnets public | Scribe

    Creating an internet gateway and making subnets public

    • Hafeez Baig |
    • 30 steps |
    • 2 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 **VPC** in the search bar and click on **VPC** to view the VPC Dashboard

    information ordinal icon

    **What is VPC in AWS?** In Amazon Web Services (AWS), a Virtual Private Cloud (VPC) is a virtual network environment that you define within the AWS cloud. It allows you to provision a logically isolated section of the AWS cloud where you can launch AWS resources such as EC2 instances, databases, and Lambda functions.

    3

    On the VPC dashboard click on **Internet gateways** from the left bar to view the Internet gateways

    information ordinal icon

    **What is an Internet Gateway in AWS?** In AWS, an Internet Gateway (IGW) is a virtual component that allows communication between resources within your Virtual Private Cloud (VPC) and the Internet. It serves as a gateway for internet-bound traffic to and from your VPC.

    4

    Internet gateways wizard will open, On the top right corner click on the **Create internet gateway** button

    5

    **Create internet gateway** wizard will open, Under the Internet gateway settings provide the **Name tag** as "**my-internet-gateway**"

    6

    Scroll the page and click on the **Create internet gateway** button

    7

    On the **Internet gateways** wizard, checkbox the **my-internet-gateway**

    8

    Click on the **Actions** dropdown button and click the **Attach to VPC** option

    9

    **Attach to VPC** wizard will open, select **my-custom-vpc** from the dropdown and click the **Attach internet gateway** button

    10

    Open the **Command prompt** and run the command [[ping 18.226.251.31]], you will notice that you are getting the replies from the IP address Note: If there is no output follow the below steps

    11

    Go back to the **VPC** Dashboard and from the left bar click on **Route tables**

    12

    Route tables wizard will open, select the route table with no subnets

    13

    Scroll to the **Details** tab, you can view the Route table ID and VPC of **my-custom-vpc**

    14

    Hover over the selected **Route table** and rename it to "**My VPC Route Table**" and click **Save** button

    15

    Scroll to the **Details** tab, you can view the Route table ID and VPC

    16

    Click on the **Routes** tab

    17

    You will notice that the Route table's target is the default internet gateway so this route table is associated with the Default VPC