<?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[Ishwari Yadav]]></title><description><![CDATA[Ishwari Yadav]]></description><link>https://ishwariyadav.hashnode.dev</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1593680282896/kNC7E8IR4.png</url><title>Ishwari Yadav</title><link>https://ishwariyadav.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 17:00:12 GMT</lastBuildDate><atom:link href="https://ishwariyadav.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[My First Time Launching an AWS EC2 Instance (And the Error I Hit Along the Way)]]></title><description><![CDATA[I decided to learn AWS from scratch by actually doing something instead of just reading docs — so I opened up the EC2 console and launched my first instance. Within the first ten minutes, I hit a real]]></description><link>https://ishwariyadav.hashnode.dev/my-first-time-launching-an-aws-ec2-instance-and-the-error-i-hit-along-the-way</link><guid isPermaLink="true">https://ishwariyadav.hashnode.dev/my-first-time-launching-an-aws-ec2-instance-and-the-error-i-hit-along-the-way</guid><category><![CDATA[AWS]]></category><category><![CDATA[ec2]]></category><category><![CDATA[Cloud Computing]]></category><category><![CDATA[Beginner Developers]]></category><category><![CDATA[Devops]]></category><dc:creator><![CDATA[Ishwari Yadav]]></dc:creator><pubDate>Sun, 23 Aug 2026 08:29:43 GMT</pubDate><content:encoded><![CDATA[<p>I decided to learn AWS from scratch by actually doing something instead of just reading docs — so I opened up the EC2 console and launched my first instance. Within the first ten minutes, I hit a real, production-style error. Here's the full story: what happened, what went wrong, how I fixed it, and what I learned.</p>
<h2>What is EC2, Anyway?</h2>
<p><strong>Amazon EC2 (Elastic Compute Cloud)</strong> lets you rent a virtual computer in the cloud instead of buying physical hardware. You pick an operating system, a "size" (CPU/RAM), and AWS spins up a server for you — billed by the second or hour depending on usage.</p>
<p>Before launching, there are a few key concepts to understand:</p>
<ul>
<li><strong>AMI (Amazon Machine Image)</strong> — a template that defines the operating system and pre-installed software on your instance.</li>
<li><strong>Instance type</strong> — the "size" of your virtual machine (how much CPU and RAM it gets). <code>t2.micro</code> and <code>t3.micro</code> are the free-tier-eligible starter sizes.</li>
<li><strong>Key pair</strong> — a security credential used to prove your identity when connecting. AWS gives you a private key file (<code>.pem</code>) to keep safe, while the matching public key stays on the instance.</li>
</ul>
<h2>Step 1: My First Launch Attempt (and a Real Error)</h2>
<p>I went with a <strong>macOS Sequoia AMI</strong> for my first attempt, mostly out of curiosity. I created a key pair, configured the instance, and hit launch.</p>
<p>It failed with:</p>
<pre><code>Instance launch failed
A Dedicated host for the specified launch parameters could not be found.
</code></pre>
<h3>Why this happened</h3>
<p>Turns out, <strong>EC2 Mac instances can only run on Dedicated Hosts</strong> — physical Apple hardware that AWS reserves exclusively for one customer at a time. This isn't an AWS limitation; it's an <strong>Apple licensing requirement</strong>. Unlike Linux or Windows instances, which share underlying physical hardware across many customers, macOS instances need their own dedicated physical Mac hardware, allocated for a minimum of 24 hours at a time.</p>
<p>Since I hadn't allocated a Dedicated Host, my launch had nowhere to go.</p>
<h2>Step 2: The Fix — Switching to Amazon Linux 2023</h2>
<p>Instead of provisioning a Dedicated Host (which costs real money, no free tier), I switched to <strong>Amazon Linux 2023</strong> — a free, lightweight Linux distribution maintained by AWS — paired with a <strong>t3.micro</strong> instance type, which is free-tier eligible.</p>
<p>This time, the launch succeeded immediately:</p>
<pre><code>Success
Successfully initiated launch of instance (i-07898b4cbb86ebe12)
</code></pre>
<h2>Step 3: Connecting to My Instance</h2>
<p>Rather than setting up an SSH client locally, I used <strong>EC2 Instance Connect</strong> — a browser-based terminal built directly into the AWS console. No key pair juggling, no terminal app needed. One click, and I was in:</p>
<pre><code>Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023

Last login: Sun Aug 23 08:00:29 2026 from 13.233.177.4
[ec2-user@ip-172-31-4-73 ~]$
</code></pre>
<p>Seeing that prompt for the first time — knowing it was a real, live server running in a data center somewhere — was a genuinely satisfying moment.</p>
<h2>Step 4: Poking Around Like a Sysadmin</h2>
<p>I ran a few basic diagnostic commands just to get a feel for what I was working with:</p>
<pre><code class="language-bash">whoami
# ec2-user

cat /etc/os-release
# NAME="Amazon Linux"
# VERSION="2023"
# PRETTY_NAME="Amazon Linux 2023.12.20260817"

df -h
# /dev/nvme0n1p1   8.0G   1.7G   6.4G   21%   /

free -h
#            total   used   free
# Mem:       913Mi   159Mi  509Mi

uptime
# 08:05:13 up 29 min, 2 users, load average: 0.00, 0.00, 0.00
</code></pre>
<p>A few things stood out:</p>
<ul>
<li><strong>8 GB of disk</strong>, only 21% used — plenty of room for small projects.</li>
<li><strong>~913 MB of RAM</strong> — a dead giveaway that this is a <code>.micro</code> instance (they're intentionally small, meant for learning and light workloads, not heavy apps).</li>
<li><strong>Load average: 0.00</strong> — the server was basically idle, just waiting for me to give it something to do.</li>
</ul>
<h2>Step 5: Cleaning Up</h2>
<p>Once I was done exploring, I went back to <strong>EC2 → Instances</strong>, selected my instance, and terminated it:</p>
<pre><code>Instance ID: i-07898b4cbb86ebe12
Instance state: Terminated
Instance type: t3.micro
</code></pre>
<p>This step matters more than it seems. <strong>Forgetting to terminate unused instances is one of the most common ways beginners rack up unexpected AWS bills.</strong> Since mine was a free-tier <code>t3.micro</code> running for under an hour, cost wasn't a concern here — but it's a habit worth building early.</p>
<h2>Bonus: AWS Free Tier Credits</h2>
<p>While going through this, I discovered AWS's <strong>Explore AWS</strong> program: new accounts get <strong>$100 in credits</strong> at sign-up, plus the option to earn <strong>up to $100 more</strong> ($20 each) by completing five hands-on activities:</p>
<ol>
<li>Launch an instance using EC2 ✅ (this one!)</li>
<li>Use a foundation model in the Amazon Bedrock playground</li>
<li>Set up a cost budget using AWS Budgets</li>
<li>Create a web app using AWS Lambda</li>
<li>Create an Amazon RDS database</li>
</ol>
<p>Since I'd already completed the EC2 activity as part of this walkthrough, that's $20 down — with $80 more up for grabs. I'll be tackling AWS Budgets next since it's quick and doesn't require spinning up any infrastructure.</p>
<h2>Key Takeaways</h2>
<ul>
<li><strong>macOS EC2 instances need Dedicated Hosts</strong> — a common gotcha for anyone experimenting with different AMIs for the first time.</li>
<li><strong><code>t2.micro</code> / <code>t3.micro</code></strong> are the instance types to reach for when learning, since they're free-tier eligible.</li>
<li><strong>EC2 Instance Connect</strong> is the fastest way to get into an instance without any local SSH setup.</li>
<li><strong>Always terminate instances</strong> you're not using — it's the single easiest way to avoid surprise charges.</li>
<li>AWS actively <strong>rewards you with credits</strong> for completing basic learning activities, which makes experimenting essentially free if you stay within the guardrails.</li>
</ul>
<h2>What's Next</h2>
<p>Next up: setting up a cost budget with AWS Budgets to grab another $20 in credits, and probably trying the Lambda activity after that to get a taste of serverless computing.</p>
<p>If you're also just getting started with AWS, my biggest piece of advice: <strong>don't worry about hitting errors.</strong> The Dedicated Host error taught me more about how AWS actually works under the hood than a successful launch would have.</p>
]]></content:encoded></item></channel></rss>