Networking project: EC2 instance in a public subnet in a VPC with an Internet Gateway attached

Some time ago I shared that I would try to broaden my knowledge in the networking department.

True to my word, I finished my first networking project: deploying an EC2 instance (a sort of virtual machine) in a public subnet within an Amazon Virtual Private Cloud (VPC). A VPC is like a cloud network environment that is isolated from other networks by default but can be configured for public access.

I needed to be able to access my EC2 instance using SSH, so I made sure to attach an internet gateway to the VPC. In combination with a security group with port 22 opened, and a route table that defined a route for the public internet (0.0.0.0/0) pointing to the internet gateway, this was made possible!

For clarification: a route table contains routing rules. It tells the network where traffic should go based on destination IP’s.

Very fun little project which gave me a lot of insight!

Lader Bezig met laden…
EAD logo Duurt het te lang?

Opnieuw laden Laad het document opnieuw
| Open Openen in nieuwe tab

Leave Comment