<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[AWS VPC Explained]]></title><description><![CDATA[AWS VPC Explained]]></description><link>https://robindevops.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 20:37:54 GMT</lastBuildDate><atom:link href="https://robindevops.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[AWS VPC: What I Learned Building My First Network from Scratch]]></title><description><![CDATA[Day 1 my DevOps journey: subnets, route tables, gateways, and the things I broke along the way.]]></description><link>https://robindevops.hashnode.dev/aws-vpc-what-i-learned-building-my-first-network-from-scratch</link><guid isPermaLink="true">https://robindevops.hashnode.dev/aws-vpc-what-i-learned-building-my-first-network-from-scratch</guid><category><![CDATA[Cloud]]></category><dc:creator><![CDATA[HADLEE ROBIN]]></dc:creator><pubDate>Wed, 25 Nov 2026 10:30:53 GMT</pubDate><content:encoded><![CDATA[<p><code>aws</code> <code>devops</code> <code>cloud</code> <code>networking</code> <code>100daysofdevops</code></p>
<p>Why have I learned vpc?</p>
<p>Networking is the main component for communication between servers. In aws vpc is the service for learning networking skills. vpc contain several components like Subnets, Routing Table, Internet Gateway, Nat Gateway etc...</p>
<p>What is vpc?</p>
<p>vpc is an own isolated network inside aws. It is used to choose ip range and split into subnets.</p>
<p>What I built?</p>
<p>Created the VPC with <code>10.0.0.0/16</code>.</p>
<ol>
<li>Created one public and one private subnet.</li>
<li>Attached an Internet Gateway and added a route in the public route table.</li>
<li>Launched an EC2 instance in the public subnet and connected through SSH.</li>
<li>Launched an instance in the private subnet and reached it from the public one (bastion pattern).</li>
<li>Added a NAT Gateway so the private instance could download updates.</li>
</ol>
<img src="https://cdn.hashnode.com/uploads/covers/6b058c7c3b84144cdcb1103c/c53d1a4a-10aa-41ea-9ce9-2034892fecec.png" alt="" style="display:block;margin:0 auto" />

<img src="https://cdn.hashnode.com/uploads/covers/6b058c7c3b84144cdcb1103c/852300a3-f361-4c37-85e5-d3bb6ec436bf.png" alt="" style="display:block;margin:0 auto" />

<img src="https://cdn.hashnode.com/uploads/covers/6b058c7c3b84144cdcb1103c/252ec92e-6e1c-4f25-b743-766439d832e9.png" alt="" style="display:block;margin:0 auto" />

<p>vpc, public subnet and private subnet has been created. Next step connect vpc attached to igw for connecting instance to internet.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6b058c7c3b84144cdcb1103c/6af3c312-36c7-4e87-bee4-85154c877fcc.png" alt="" style="display:block;margin:0 auto" />

<p>Deploy one ec2 instance in public subnet and deploy another ec2 instance in private subnet. Connect with public ec2 instance check internet is working in public subnet.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6b058c7c3b84144cdcb1103c/142bc1fb-2c2c-4fde-8d73-2b06991e5cc5.png" alt="" style="display:block;margin:0 auto" />

<p>Internet is working fine in public instance.</p>
<p>What I broke and fixed?</p>
<p><strong>SSH timed out:</strong> I forgot to add the route to the IGW. Public subnet in name only. Fixed by editing the route table.</p>
<p><strong>Bastion host:</strong> connect ec2 public instance with public ipv4 address but private instance has no public Ip. so, I have connected private instance using private ipv4 address.</p>
<p><strong>Private instance no internet:</strong> No internet in the private instance. Fixed by connecting Nat gateway.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6b058c7c3b84144cdcb1103c/c5926ffc-4358-49c6-8274-3dfb688c0eed.png" alt="" style="display:block;margin:0 auto" />

<p>private instance has no internet. for accessing internet for private instance. configure Nat gateway.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6b058c7c3b84144cdcb1103c/64f7512f-7043-42e9-8bdc-2951450bb26f.png" alt="" style="display:block;margin:0 auto" />

<p>After connecting Nat-gateway private instance can be accessing internet.</p>
]]></content:encoded></item></channel></rss>