AWS Virtual Private Cloud

Project Description:

We’ll explore the core concept of Amazon Web Service (AWS), focusing specifically on virtual Private Clouds (VPCs)

Subnets
Gateways
Routing tables
We’ll navigate the AWS management console to deploy and manage these c…


This content originally appeared on DEV Community and was authored by Oluwatobi

Project Description:

We'll explore the core concept of Amazon Web Service (AWS), focusing specifically on virtual Private Clouds (VPCs)

  • Subnets
  • Gateways
  • Routing tables We'll navigate the AWS management console to deploy and manage these critical components effectively.

Project Goals:

  • Setting up and configuring VPC, Subnets, internet gateway, NAT gateway
  • Enable internet connectivity securely within VPC
  • Implement outbound internet access through the NAT gateway.

Step 1: Setting up a Virtual Private Cloud (VPC)

  • Navigate to the search bar and enter VPC

1

  • Navigate to the "Create VPC" option and click on it

2

  • Select the "VPC only" option, specify the IPv4 CIDR block, and proceed by clicking on the "Create VPC" button.

3

Note: If you encounter an error message stating that the CIDR block must be between '/16 and /28' when creating a VPC, it indicates that your provided CIDR block falls outside of this recommended range.

  • VPC created

4

Step 2: Configuring Subnets within the VPC

  • Navigate to the "Subnets" option located on the left sidebar.

  • Proceed to click on the "Create Subnet" button.

5

  • Select the ID of the VPC that you created in the previous step

6

  • Enter the subnet name, and specify the IPv4 CIDR for the subnet.

  • choose the availability zone

  • Specify the IPv4 CIDR for the subnet

  • To create another subnet, Click on the "Add subnet" button.

7

  • Repeat the same steps for the second subnet

  • Ensuring to specify the subnet name, choose the availability zone, and provide the IPV4 CIDR

8

Your subnets is being created

9

Step 3: Creating Internet Gateway

  • Navigate to the "Internet Gateway"

  • Click on the "Create Internet Gateway"

10

  • Specify the name of Internet Gateway

  • Click on the "Creating Internet Gateway"

11

Your internet gateway is being successfully created.

12

Now, you will notice that it is currently detached, indicating that it is not associated with any VPC. To enable internet connectivity, you must attach the Internet Gateway to the VPC you have previously created.

Now, attach it to the VPC

13

Successfully attached

14

Step 4: Creating Route Tables

Let's come to the next part which is enabling internet connectivity with the internet Gateway by setting up routing tables

  • Proceed to the " Route Tables"

  • Click on the "Create route table

15

  • Enter the name of the route table and select the VPC you previously created

  • Create a route table

16

  • Click on "Subnet association" followed by "edit subnet associations" to associate the subnet with the route table

17

  • Choose the public subnet and click on Save association.

18

  • Navigate to "Routes" and then click on "Edit routes"

19

  • Click on add route

  • Select "Destination" as "0.0.0.0/0", indicating that every IPV4 address can access this subnet

  • "Target Field", Choose "Internet Gateway" and then select the Internet Gateway you created. finally, save the changes.

20

21

Step 5: Creating NAT Gateway

  • Navigate to the "NAT Gateways" then click on "Create NAT Gateway"

22

  • Choose the Private subnet

  • Select the connectivity type as private

  • Create NAT Gateway

23

Your NAT Gateway is being created successfully

  • Select your NAT Gateway.

  • Navigate to the " Details tab

  • Locate the subnet ID and click on it

24

  • Navigate to the "Route Table" section.

  • Then click on the "route table ID"

25

  • Proceed to the "Routes" section, then click on "Edit routes"

26

  • Then click on "Add routes"

  • Select "Destination" as "0.0.0.0/0"

  • In the "Target" field, choose the "NAT Gateway you created.

  • Finally, save the changes

27

  • On the subnet association section, click on the edit subnet association

28

  • Choose the private subnet and click on "Save associations"

29

The subnet has been successfully attached to the route table

30


This content originally appeared on DEV Community and was authored by Oluwatobi


Print Share Comment Cite Upload Translate Updates
APA

Oluwatobi | Sciencx (2024-09-01T20:53:07+00:00) AWS Virtual Private Cloud. Retrieved from https://www.scien.cx/2024/09/01/aws-virtual-private-cloud/

MLA
" » AWS Virtual Private Cloud." Oluwatobi | Sciencx - Sunday September 1, 2024, https://www.scien.cx/2024/09/01/aws-virtual-private-cloud/
HARVARD
Oluwatobi | Sciencx Sunday September 1, 2024 » AWS Virtual Private Cloud., viewed ,<https://www.scien.cx/2024/09/01/aws-virtual-private-cloud/>
VANCOUVER
Oluwatobi | Sciencx - » AWS Virtual Private Cloud. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/01/aws-virtual-private-cloud/
CHICAGO
" » AWS Virtual Private Cloud." Oluwatobi | Sciencx - Accessed . https://www.scien.cx/2024/09/01/aws-virtual-private-cloud/
IEEE
" » AWS Virtual Private Cloud." Oluwatobi | Sciencx [Online]. Available: https://www.scien.cx/2024/09/01/aws-virtual-private-cloud/. [Accessed: ]
rf:citation
» AWS Virtual Private Cloud | Oluwatobi | Sciencx | https://www.scien.cx/2024/09/01/aws-virtual-private-cloud/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.