{"id":681,"date":"2025-06-01T06:11:37","date_gmt":"2025-06-01T06:11:37","guid":{"rendered":"https:\/\/datadandies.nl\/?p=681"},"modified":"2025-06-05T06:29:26","modified_gmt":"2025-06-05T06:29:26","slug":"networking-project-ec2-instance-in-a-public-subnet-in-a-vpc-with-an-internet-gateway-attached","status":"publish","type":"post","link":"https:\/\/datadandies.nl\/index.php\/2025\/06\/01\/networking-project-ec2-instance-in-a-public-subnet-in-a-vpc-with-an-internet-gateway-attached\/","title":{"rendered":"Networking project: EC2 instance in a public subnet in a VPC with an Internet Gateway attached"},"content":{"rendered":"\n<p>Some time ago I shared that I would try to broaden my knowledge in the networking department.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>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!<\/p>\n\n\n\n<p>For clarification: a route table contains routing rules. It tells the network where traffic should go based on destination IP\u2019s.<\/p>\n\n\n\n<p>Very fun little project which gave me a lot of insight!<\/p>\n\n\n<div class=\"ead-preview\"><div class=\"ead-document\" style=\"position: relative;padding-top: 90%;\"><div class=\"ead-iframe-wrapper\"><iframe src=\"\/\/docs.google.com\/viewer?url=https%3A%2F%2Fdatadandies.nl%2Fwp-content%2Fuploads%2F2025%2F06%2Finfra_diagram_vpc_public_subnet_ec2.pdf&amp;embedded=true&amp;hl=en\" title=\"Ingesloten document\" class=\"ead-iframe\" style=\"width: 100%;height: 100%;border: none;position: absolute;left: 0;top: 0;visibility: hidden;\"><\/iframe><\/div>\t\t\t<div class=\"ead-document-loading\" style=\"width:100%;height:100%;position:absolute;left:0;top:0;z-index:10;\">\n\t\t\t\t<div class=\"ead-loading-wrap\">\n\t\t\t\t\t<div class=\"ead-loading-main\">\n\t\t\t\t\t\t<div class=\"ead-loading\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/datadandies.nl\/wp-content\/plugins\/embed-any-document\/images\/loading.svg\" width=\"55\" height=\"55\" alt=\"Lader\">\n\t\t\t\t\t\t\t<span>Bezig met laden&#8230;<\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"ead-loading-foot\">\n\t\t\t\t\t\t<div class=\"ead-loading-foot-title\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/datadandies.nl\/wp-content\/plugins\/embed-any-document\/images\/EAD-logo.svg\" alt=\"EAD logo\" width=\"36\" height=\"23\"\/>\n\t\t\t\t\t\t\t<span>Duurt het te lang?<\/span>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<div class=\"ead-document-btn ead-reload-btn\" role=\"button\">\n\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/datadandies.nl\/wp-content\/plugins\/embed-any-document\/images\/reload.svg\" alt=\"Opnieuw laden\" width=\"12\" height=\"12\"\/> Laad het document opnieuw\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<span>|<\/span>\n\t\t\t\t\t\t\t<a href=\"https:\/\/datadandies.nl\/wp-content\/uploads\/2025\/06\/infra_diagram_vpc_public_subnet_ec2.pdf\" class=\"ead-document-btn\" target=\"_blank\">\n\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/datadandies.nl\/wp-content\/plugins\/embed-any-document\/images\/open.svg\" alt=\"Open\" width=\"12\" height=\"12\"\/> Openen in nieuwe tab\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>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&hellip;<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/datadandies.nl\/index.php\/2025\/06\/01\/networking-project-ec2-instance-in-a-public-subnet-in-a-vpc-with-an-internet-gateway-attached\/\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,72,63],"class_list":["post-681","post","type-post","status-publish","format-standard","hentry","category-blog","tag-aws","tag-networking","tag-project"],"_links":{"self":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/comments?post=681"}],"version-history":[{"count":1,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/681\/revisions"}],"predecessor-version":[{"id":683,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/posts\/681\/revisions\/683"}],"wp:attachment":[{"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/media?parent=681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/categories?post=681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/datadandies.nl\/index.php\/wp-json\/wp\/v2\/tags?post=681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}