<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Goldenboy58</title>
    <description>The latest articles on Forem by Goldenboy58 (@goldenboy58).</description>
    <link>https://forem.com/goldenboy58</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3387981%2Ffe2287c4-6c40-4c3d-b5a7-7dcda588a7e6.png</url>
      <title>Forem: Goldenboy58</title>
      <link>https://forem.com/goldenboy58</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/goldenboy58"/>
    <language>en</language>
    <item>
      <title>Getting Started with AMI, Snapshots &amp; EBS Multi-Attach in AWS</title>
      <dc:creator>Goldenboy58</dc:creator>
      <pubDate>Fri, 29 Aug 2025 05:33:52 +0000</pubDate>
      <link>https://forem.com/goldenboy58/getting-started-with-ami-snapshots-ebs-multi-attach-in-aws-gfe</link>
      <guid>https://forem.com/goldenboy58/getting-started-with-ami-snapshots-ebs-multi-attach-in-aws-gfe</guid>
      <description>&lt;p&gt;__&lt;strong&gt;If you're just starting out with Amazon Web Services (AWS), you might feel overwhelmed by all the acronyms and tools. But don’t worry—this guide breaks down three key concepts that are essential for managing virtual machines and storage in the cloud: Amazon Machine Images (AMI), EBS Snapshots, and EBS Multi-Attach.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let’s walk through each one with simple explanations and real-world analogies.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Is an Amazon Machine Image (AMI)?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Definition&lt;/strong&gt;&lt;br&gt;
An &lt;strong&gt;Amazon Machine Image (AMI)&lt;/strong&gt; is like a blueprint for launching virtual servers (EC2 instances) in AWS. It contains the operating system, software, and settings needed to start a machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-Life Analogy&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Think of an AMI like a smartphone backup. When you restore your phone from a backup, it brings back your apps, settings, and data. Similarly, launching an EC2 instance from an AMI gives you a ready-to-use server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use Cases&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Quick Deployment&lt;/strong&gt;: Launch multiple identical servers for scaling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disaster Recovery&lt;/strong&gt;: Restore a crashed server with the same setup.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Testing&lt;/strong&gt;: Create a safe copy of your production server for experiments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before you start make sure you have an ebs running&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-by-Step: Create an AMI&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Launch and configure an EC2 instance&lt;/strong&gt; (install software, set up environment).&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffabzfjyat3w3w2m52vlj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffabzfjyat3w3w2m52vlj.png" alt=" " width="800" height="370"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Go to EC2 Dashboard → Instances.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi4xnbb5vk4n5sdtgakto.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi4xnbb5vk4n5sdtgakto.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Select your instance → Actions → Image → Create Image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7uqjw5uj0kvyc8mdji7a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7uqjw5uj0kvyc8mdji7a.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Name your image and click Create Image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ho701zxlklzhm41sakx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ho701zxlklzhm41sakx.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2v9za7vbweyupgfxduyh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2v9za7vbweyupgfxduyh.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt;AWS creates an AMI and stores it under AMIs.&lt;/p&gt;

&lt;p&gt;Install Sample Software&lt;br&gt;
SSH into your EC2 and run:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6tv4co20k6lprug2cnf0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6tv4co20k6lprug2cnf0.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
CopyEdit&lt;br&gt;
sudo apt update -y&lt;br&gt;
sudo apt install nginx -y&lt;br&gt;
sudo systemctl start nginx&lt;br&gt;
sudo systemctl enable nginxg&lt;br&gt;
echo "Hello from my custom AMI" | sudo tee /var/www/html/index.html&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcqbt1lgo4zvsvut49qld.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcqbt1lgo4zvsvut49qld.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Test in browser:&lt;br&gt;
• Visit your EC2’s public IP.&lt;br&gt;
• You should see the message: ✅ "Hello from my custom AMI"&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvbneayub9jxf4bcficja.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvbneayub9jxf4bcficja.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.Launch EC2 from Custom AMI&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Go to AMIs, select your new image.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faaxwy9d4y7yrsmibg6l7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faaxwy9d4y7yrsmibg6l7.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click Launch Instance from Image&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe49oa82purm0ls53baix.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe49oa82purm0ls53baix.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose instance type: t2.micro or t3.micro.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcigmb2wkd1fbxq5fq4il.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcigmb2wkd1fbxq5fq4il.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Use existing key pair or create new one.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Finix8h5si1pxqx8mpn68.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Finix8h5si1pxqx8mpn68.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; Click Launch.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhbb6lhyhg5p42z3dryxw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhbb6lhyhg5p42z3dryxw.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;5. Test Your New EC2&lt;/strong&gt;&lt;br&gt;
• Once launched, go to Public IP of the new instance.&lt;br&gt;
• Open in browser.&lt;br&gt;
• ✅ You should see: "Hello from my custom AMI"&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fngw0dp976b40wxqelwbn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fngw0dp976b40wxqelwbn.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Your entire setup is cloned and working!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Is EBS Multi-Attach?&lt;/strong&gt;&lt;br&gt;
 &lt;strong&gt;Definition&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;EBS Multi-Attach&lt;/strong&gt; allows a single EBS volume to be attached to multiple EC2 instances at the same time—ideal for applications that need shared access to data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-Life Analogy&lt;/strong&gt;&lt;br&gt;
Think of a shared Google Doc. Multiple people can view and edit it simultaneously. EBS Multi-Attach works similarly, but only for applications that can safely handle concurrent access.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use Cases&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;High Availability Clusters: Multiple servers accessing the same data.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Distributed Databases: Shared storage across nodes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Parallel Processing: Multiple instances working on the same dataset.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Important Notes&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Only works with io1 or io2 volume types.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;All EC2 instances must be in the same Availability Zone.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Your application must handle concurrent writes properly.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step-by-Step: Set Up EBS Multi-A&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Go to EC2 → Volumes → Create Volume.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbapmq6h2xapd959lx0xb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbapmq6h2xapd959lx0xb.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose io1/io2 type and enable Multi-Attach.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhcii55xl1dgbxbudd4qv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhcii55xl1dgbxbudd4qv.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzheajugtrzld0zk07mdn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzheajugtrzld0zk07mdn.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Launch EC2 instances in the same Availability Zone.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9b3x8wyrh6wvwt67v8o5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9b3x8wyrh6wvwt67v8o5.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Attach the volume to each instance via Actions → Attach Volume.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx0wwn2jcbwiypcpavdtq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx0wwn2jcbwiypcpavdtq.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04rg72n6wr2a0xq5y3pz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04rg72n6wr2a0xq5y3pz.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SSH into each instance and mount the volume using Linux commands.&lt;br&gt;
lsblk.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk0pe2vkyp6m3y3ue530f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk0pe2vkyp6m3y3ue530f.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fes08iyfdzetltovlwfjt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fes08iyfdzetltovlwfjt.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Is an EBS Snapshot?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Definition&lt;/strong&gt;&lt;br&gt;
An EBS Snapshot is a backup of your EC2 instance’s storage (EBS volume). It captures the data at a specific point in time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-Life Analogy&lt;/strong&gt;&lt;br&gt;
Imagine taking a photo of your whiteboard during a meeting. Even if someone erases it later, you still have the snapshot to refer back to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use Cases&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Data Backup: Protect against accidental deletion or corruption.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Volume Restoration: Recreate a volume from a snapshot.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Migration: Move data between regions or accounts.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step-by-Step&lt;/strong&gt;: Create a Snapshot&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Go to EC2 → Volumes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select the volume → Actions → Create Snapshot.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add a name and description → Click Create Snapshot.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Find your snapshot under Snapshots.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Step-by-Step&lt;/strong&gt;: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Make Sure You Have EC2 + EBS Volume Running&lt;/strong&gt;&lt;br&gt;
You should have:&lt;br&gt;
• EC2 running (from earlier)&lt;br&gt;
• EBS volume mounted and data written (e.g., hello.txt)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Create a Snapshot&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Go to EC2 Dashboard → Elastic Block Store → Volumes&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select your EBS volume&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7k96od3lgln63toz4k4y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7k96od3lgln63toz4k4y.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click Actions → Create Snapshot&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffkkzrlbkhyfrugc4yvz2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffkkzrlbkhyfrugc4yvz2.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Name it: MyBackupSnapshot.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs6yo9oqhlmab8vo98yzu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs6yo9oqhlmab8vo98yzu.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click Create Snapshot&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxamrrvdeov89a3dpqza.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxamrrvdeov89a3dpqza.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;3. Delete the Original Volume (Optional for Testing)&lt;/strong&gt;&lt;br&gt;
 Warning: This will remove the original data (but we have a backup)&lt;br&gt;
• Detach the volume from EC2&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ek97n8npmp48164rcd7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2ek97n8npmp48164rcd7.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Go to Volumes → Select → Delete&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxlq30noujkkddeuu87a5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxlq30noujkkddeuu87a5.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Restore Volume from Snapshot&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Go to EC2 → Snapshots&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Find your snapshot (MyBackupSnapshot)&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnl187bczfpr85se1n0ba.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnl187bczfpr85se1n0ba.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Click Actions → Create Volume from snapshot.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F793ozsb13gvmuchadt1t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F793ozsb13gvmuchadt1t.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose:&lt;br&gt;
o   Same Availability Zone as your EC2&lt;br&gt;
o   Volume Type: gp2&lt;br&gt;
    or io1/io2 if you are attaching it to more than one ec2&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjw31e7h3a9v53taexbkt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjw31e7h3a9v53taexbkt.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;o   Size: Same or larger than original&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcejz4r0s0judsyp01hhf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcejz4r0s0judsyp01hhf.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Click Create Volume
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04c9b6gdfggcbfdkf296.png" alt=" " width="800" height="373"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;5. Attach the Restored Volume to EC2&lt;/strong&gt;&lt;br&gt;
• Go to Volumes → Select new one → Attach Volume&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz6zi1588fyeb4nxwtea7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz6zi1588fyeb4nxwtea7.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzn59u1s05g1g0fwtyks.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzn59u1s05g1g0fwtyks.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Choose EC2 instance and set device name (e.g., /dev/xvdf)&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn3sbtzbcmg4td303vb8g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn3sbtzbcmg4td303vb8g.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Mount and Check Your Data&lt;/strong&gt;&lt;br&gt;
SSH into EC2 and run:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F170qh9w0vh673bmpucbl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F170qh9w0vh673bmpucbl.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
CopyEdit&lt;/p&gt;

&lt;h1&gt;
  
  
  Check device
&lt;/h1&gt;

&lt;p&gt;lsblk.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi3bux9vz5pnzcxnzjag8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi3bux9vz5pnzcxnzjag8.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Mount it
&lt;/h1&gt;

&lt;p&gt;sudo mkdir /restore&lt;br&gt;
sudo mount /dev/xvdf /restore&lt;/p&gt;

&lt;h1&gt;
  
  
  Create a mount point
&lt;/h1&gt;

&lt;p&gt;sudo mkdir /restore&lt;/p&gt;

&lt;h1&gt;
  
  
  View the restored file
&lt;/h1&gt;

&lt;p&gt;cat /restore/hello.txt&lt;br&gt;
 You should see the file: Hello from EBS!&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flso6av3kqoqtdyc1ctyp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flso6av3kqoqtdyc1ctyp.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Amount of gigs used:df -h
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff81t73y7j50b0fktfiv0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ff81t73y7j50b0fktfiv0.png" alt=" " width="800" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You just successfully backed up and restored an EBS volume using a snapshot!&lt;/p&gt;

&lt;p&gt;How They Interact                                                  &lt;/p&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

&lt;p&gt;component   Role               Relationship&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EBS&lt;/strong&gt;  &lt;strong&gt;Stores data for EC2&lt;/strong&gt;     &lt;strong&gt;Basis for snapshots and part of AMI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Snapshot   Backup of EBS         Used to create new volumes or AMIs&lt;/p&gt;

&lt;p&gt;AMI Launch template for EC2   Built from EBS snapshots&lt;/p&gt;

&lt;p&gt;So, when you launch an EC2 instance from an AMI:&lt;/p&gt;

&lt;p&gt;AWS uses the snapshots embedded in the AMI to recreate the EBS volumes.&lt;/p&gt;

&lt;p&gt;These volumes are then attached to the new instance, ready to boot with your pre-configured environment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Final Conclusion&lt;/strong&gt;&lt;br&gt;
In the ever-evolving world of cloud infrastructure, understanding and leveraging AMIs, snapshots, and EBS Multi-Attach is more than just technical know-how—it's about building systems that are resilient, scalable, and future-ready. These AWS features offer the flexibility and control needed to architect solutions that meet real-world demands with confidence.&lt;/p&gt;

&lt;p&gt;“The best way to predict the future is to invent it.” — Alan Kay&lt;/p&gt;

&lt;p&gt;So here’s your challenge: don’t just read about these tools—use them. Spin up your own AMI, automate your snapshot strategy, and experiment with Multi-Attach in a test environment. Push the boundaries of what your infrastructure can do. Because in the cloud, innovation favors the bold.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Goldenboy58</dc:creator>
      <pubDate>Sun, 24 Aug 2025 23:42:32 +0000</pubDate>
      <link>https://forem.com/goldenboy58/-252c</link>
      <guid>https://forem.com/goldenboy58/-252c</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/goldenboy58/how-i-attached-and-mounted-an-ebs-volume-to-my-ubuntu-ec2-instance-12kl" class="crayons-story__hidden-navigation-link"&gt;How I Attached and Mounted an EBS Volume to My Ubuntu EC2 Instance&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/goldenboy58" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3387981%2Ffe2287c4-6c40-4c3d-b5a7-7dcda588a7e6.png" alt="goldenboy58 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/goldenboy58" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Goldenboy58
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Goldenboy58
                
              
              &lt;div id="story-author-preview-content-2796515" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/goldenboy58" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3387981%2Ffe2287c4-6c40-4c3d-b5a7-7dcda588a7e6.png" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Goldenboy58&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/goldenboy58/how-i-attached-and-mounted-an-ebs-volume-to-my-ubuntu-ec2-instance-12kl" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Aug 24 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/goldenboy58/how-i-attached-and-mounted-an-ebs-volume-to-my-ubuntu-ec2-instance-12kl" id="article-link-2796515"&gt;
          How I Attached and Mounted an EBS Volume to My Ubuntu EC2 Instance
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/goldenboy58/how-i-attached-and-mounted-an-ebs-volume-to-my-ubuntu-ec2-instance-12kl" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;6&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/goldenboy58/how-i-attached-and-mounted-an-ebs-volume-to-my-ubuntu-ec2-instance-12kl#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              &lt;span class="hidden s:inline"&gt;Add Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            3 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>How I Attached and Mounted an EBS Volume to My Ubuntu EC2 Instance</title>
      <dc:creator>Goldenboy58</dc:creator>
      <pubDate>Sun, 24 Aug 2025 23:38:02 +0000</pubDate>
      <link>https://forem.com/goldenboy58/how-i-attached-and-mounted-an-ebs-volume-to-my-ubuntu-ec2-instance-12kl</link>
      <guid>https://forem.com/goldenboy58/how-i-attached-and-mounted-an-ebs-volume-to-my-ubuntu-ec2-instance-12kl</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction: What Is Amazon EBS and Why Does It Matter?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Amazon Elastic Block Store (EBS) is AWS’s scalable, high-performance block storage service designed for use with EC2 instances. Think of it as a virtual hard drive in the cloud—one that you can attach, detach, resize, and persist independently of your compute resources.&lt;/p&gt;

&lt;p&gt;Unlike the ephemeral storage that comes with EC2 instances (which vanishes when the instance is stopped or terminated), EBS volumes are durable and persistent. This makes them ideal for storing critical data like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Databases and transaction logs&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Application files and binaries&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Backups and snapshots&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Media assets or user uploads&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;EBS volumes are also highly configurable. You can choose between SSD-backed volumes for fast IOPS or HDD-backed volumes for throughput-heavy workloads. And with features like encryption, snapshots, and multi-attach, EBS becomes a powerful tool for building resilient, secure, and scalable cloud architectures.&lt;/p&gt;

&lt;p&gt;In short: if your EC2 instance needs reliable storage that survives reboots, scales with your needs, and integrates seamlessly with AWS services—EBS is your go-to solution.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
Before we begin, make sure you have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
An EC2 instance running Ubuntu&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Appropriate IAM permissions to create and manage EBS volumes&lt;/p&gt;

&lt;p&gt;Access to the AWS Management Console or CLI&lt;br&gt;
&lt;strong&gt;Step 1:&lt;/strong&gt; Create an EBS Volume&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Go to the EC2 Dashboard → Elastic Block Store → Volumes &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F05cqcd26dehnphe2kzqh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F05cqcd26dehnphe2kzqh.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Click Create Volume&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxtaojtekz51j2dnko2b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxtaojtekz51j2dnko2b.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Choose:&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Volume type: gp2 or gp3&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Size: e.g., 5 GiB&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8sg45vjlcfuvnf8o3har.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8sg45vjlcfuvnf8o3har.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;4.Availability Zone: must match your EC2 instance’s AZ&lt;/p&gt;

&lt;p&gt;Click Create Volume&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsbt9fn8pdyh4iaskaw3b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsbt9fn8pdyh4iaskaw3b.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tip: You can find your EC2 instance’s AZ under Instance Details.&lt;br&gt;
 &lt;strong&gt;Step 2: Attach the Volume to Your EC2 Instance&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Select the newly created volume&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8mum5lrd6h6cqk8ewan.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr8mum5lrd6h6cqk8ewan.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click Actions → Attach Volume&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyn6x7cdr7781a9ao60h7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyn6x7cdr7781a9ao60h7.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Choose your EC2 instance&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv0so0c7byj210cditdj3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv0so0c7byj210cditdj3.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Set the device name (e.g., /dev/xvdf)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fojnbywoezbk6b6kv6uws.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fojnbywoezbk6b6kv6uws.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Click Attach
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhnfaajur9xk3bu2dtjot.png" alt=" " width="800" height="373"&gt;
&lt;strong&gt;Step 3: Connect to Your EC2 Instance&lt;/strong&gt;
Use SSH to connect:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;bash&lt;br&gt;
ssh -i your-key.pem ubuntu@your-ec2-public-ip&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh5qr5hxd2f508lhw0her.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh5qr5hxd2f508lhw0her.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;br&gt;
 &lt;strong&gt;Step 4: Verify the Volume Is Attached&lt;/strong&gt;&lt;br&gt;
Run:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
lsblk&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa9n7jc532yqk2e8r1urd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa9n7jc532yqk2e8r1urd.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 5: Format the Volume&lt;/strong&gt;&lt;br&gt;
If the volume is new, format it:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
sudo mkfs -t ext4 /dev/xvdf&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flnu9dm6googckfqxe5l8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flnu9dm6googckfqxe5l8.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 6: Create a Mount Point&lt;/strong&gt;&lt;br&gt;
bash&lt;br&gt;
sudo mkdir /mnt/myvolume&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi6azrvotgdtrt91v72st.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi6azrvotgdtrt91v72st.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;br&gt;
Step 6: Create a Mount Point&lt;br&gt;
bash&lt;br&gt;
sudo mkdir /mnt/myvolume&lt;br&gt;
 &lt;strong&gt;Step 7: Mount the Volume&lt;/strong&gt;&lt;br&gt;
bash&lt;br&gt;
sudo mount /dev/xvdf /data&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm9682wee6p0oth6fp4on.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm9682wee6p0oth6fp4on.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;br&gt;
E&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
Create a new file,like writting something into it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;bash&lt;br&gt;
echo "Hello from EBS!" | sudo tee /data/hello.txt&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhpkm5j7pyyrvs80uhns0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhpkm5j7pyyrvs80uhns0.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
Verify the file was created
bash&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;cat /data/hello.txt&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvf3criafwyz7m3d0bvmi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvf3criafwyz7m3d0bvmi.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step 8: Stop and Start the EC2&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Go back to EC2 console→stop the instance&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmbku7zkrr6ol356wg0q2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmbku7zkrr6ol356wg0q2.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Wait→start it again&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmd34ycoedeile4lxivb1.png" alt=" " width="800" height="373"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;SSH back in&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbxfysswrsbmymyrsez6g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbxfysswrsbmymyrsez6g.png" alt=" " width="800" height="457"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;check your data:&lt;br&gt;
    bash&lt;br&gt;
   copy Edit&lt;br&gt;
sudo mount /dev/xvdf /data&lt;br&gt;
cat /data/hello.txt&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwackx3xcly4wcrfuf97m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwackx3xcly4wcrfuf97m.png" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Data is still there.because EBS is persistent&lt;br&gt;
&lt;strong&gt;So to know the number of gig used&lt;/strong&gt;&lt;br&gt;
    df -h&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fodnxjebu7mcerhu7exd0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fodnxjebu7mcerhu7exd0.png" alt=" " width="800" height="415"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
And that’s it! You’ve successfully attached and mounted an EBS volume to your Ubuntu EC2 instance. This setup is perfect for storing logs, databases, or any data that needs to persist beyond instance termination.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How I Deployed an Apache Web Server on Ubuntu and Built an Eatery Website</title>
      <dc:creator>Goldenboy58</dc:creator>
      <pubDate>Mon, 18 Aug 2025 00:47:27 +0000</pubDate>
      <link>https://forem.com/goldenboy58/how-i-deployed-an-apache-web-server-on-ubuntu-and-built-an-eatery-website-4ce8</link>
      <guid>https://forem.com/goldenboy58/how-i-deployed-an-apache-web-server-on-ubuntu-and-built-an-eatery-website-4ce8</guid>
      <description>&lt;p&gt;&lt;strong&gt;This is a short guide on how I set up an Apache server on AWS to host a simple eatery website.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Steps&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Launching an EC2 Instance on AWS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sign in to your AWS Management Console.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fep3vqhy3d1atekmktjpo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fep3vqhy3d1atekmktjpo.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go to EC2 Dashboard → Click Launch Instance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzhbbt09dv9g1d4dvphpd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzhbbt09dv9g1d4dvphpd.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose Ubuntu Server 22.04 LTS (free-tier eligible).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyim5bnp1wztqgtin0kx3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyim5bnp1wztqgtin0kx3.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzfdu7afrbmlnxrdrdamv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzfdu7afrbmlnxrdrdamv.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select t3.micro or t2.micro instance type.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvc9a33fbg18gatl8vaeb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvc9a33fbg18gatl8vaeb.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Create a key pair (for SSH access).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F121tiwgtrwow9mdf3zr3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F121tiwgtrwow9mdf3zr3.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Allow HTTP (port 80) and SSH (port 22) in the security group.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo70v025sz12g8q06809l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo70v025sz12g8q06809l.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyv9t56n7n9hc0og9rq96.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyv9t56n7n9hc0og9rq96.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Launch the instance.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs7deqko39djkhhvxrbme.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs7deqko39djkhhvxrbme.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Connect to Your EC2 Instance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open a terminal (or use PuTTY on Windows).&lt;/p&gt;

&lt;p&gt;Run:&lt;/p&gt;

&lt;p&gt;ssh -i your-key.pem ubuntu@your-ec2-public-ip&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs25igj0esju3iot60cwu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs25igj0esju3iot60cwu.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Install Apache Web Server&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once inside your Ubuntu instance:&lt;/p&gt;

&lt;p&gt;sudo apt update&lt;br&gt;
sudo apt install apache2 -y&lt;/p&gt;

&lt;p&gt;Enable and start Apache:&lt;/p&gt;

&lt;p&gt;sudo systemctl enable apache2&lt;br&gt;
sudo systemctl start apache2&lt;/p&gt;

&lt;p&gt;Open your browser and visit:&lt;/p&gt;

&lt;p&gt;http://&lt;/p&gt;

&lt;p&gt;g)&lt;/p&gt;

&lt;p&gt;You should see the Apache2 Ubuntu Default Page &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq5yczeqrdqikpysmvsgk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq5yczeqrdqikpysmvsgk.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Deploy the Eatery Website&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Go to the web root directory:&lt;/p&gt;

&lt;p&gt;cd /var/www/html&lt;br&gt;
sudo nano /var/www/html/index.html&lt;/p&gt;

&lt;p&gt;Remove the default index.html:&lt;/p&gt;

&lt;p&gt;sudo rm index.html&lt;/p&gt;

&lt;p&gt;Upload your Eatery website files (HTML, CSS, images, etc.) using:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuipdyz4a0yf57pf2ph1e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuipdyz4a0yf57pf2ph1e.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;scp -i your-key.pem -r ./eatery-website/* ubuntu@your-ec2-public-ip:/var/www/html/&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Test the Website&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open your browser again:&lt;/p&gt;

&lt;p&gt;http://&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foyux6vgjjr7db4mchg94.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foyux6vgjjr7db4mchg94.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, your Eatery Website should appear live &lt;/p&gt;

&lt;p&gt;Final Result&lt;/p&gt;

&lt;p&gt;You successfully:&lt;/p&gt;

&lt;p&gt;Launched an Ubuntu EC2 instance&lt;/p&gt;

&lt;p&gt;Installed Apache Web Server&lt;/p&gt;

&lt;p&gt;Deployed your Eatery Website on AWS&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Deploying an Apache Web Server on Ubuntu via AWS EC2 was an exciting hands-on project that gave me practical cloud computing experience. I learned how to:&lt;/p&gt;

&lt;p&gt;Launch and configure an Ubuntu EC2 instance&lt;/p&gt;

&lt;p&gt;Install and run the Apache Web Server&lt;/p&gt;

&lt;p&gt;Upload and host my own Eatery Website online&lt;/p&gt;

&lt;p&gt;This project showed me how quickly a simple idea can be brought to life in the cloud. With just a few steps, I transformed a local website into a publicly accessible web application. Beyond building the eatery site, this knowledge now empowers me to host more projects, experiment with cloud deployments, and explore more AWS services like domain setup, SSL certificates, and scalable infrastructure.&lt;/p&gt;

&lt;p&gt;In short: I turned AWS + Apache into a real-world website deployment experience.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ec2</category>
      <category>ubuntu</category>
      <category>apache</category>
    </item>
    <item>
      <title>MY FIRST EC2 PROJECT:Hosting a website on Aws as a beginner</title>
      <dc:creator>Goldenboy58</dc:creator>
      <pubDate>Mon, 11 Aug 2025 16:50:48 +0000</pubDate>
      <link>https://forem.com/goldenboy58/my-first-ec2-projecthosting-a-website-on-aws-as-a-beginner-5h5o</link>
      <guid>https://forem.com/goldenboy58/my-first-ec2-projecthosting-a-website-on-aws-as-a-beginner-5h5o</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl0rxdzlrfaqam1g8vift.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl0rxdzlrfaqam1g8vift.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My First EC2 Project: Hosting a Website on AWS as a Beginner&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As someone new to cloud computing, I recently took on the challenge of hosting my first website using &lt;em&gt;Amazon EC2 (Elastic Compute Cloud)&lt;/em&gt;. This project was a hands-on introduction to deploying a web server in the cloud, and it gave me a solid foundation in AWS infrastructure. Here's how I did it—and how you can too.&lt;br&gt;
  &lt;strong&gt;What Is EC2?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Amazon EC2 is a service that lets you rent virtual servers in the cloud. Instead of buying physical hardware, you can launch an EC2 instance (a virtual machine) and run your applications from anywhere in the world. It’s scalable, flexible, and perfect for beginners who want to learn cloud hosting.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Step-by-Step: How I Hosted My Website&lt;/strong&gt;      &lt;/p&gt;

&lt;h3&gt;
  
  
  1. &lt;em&gt;Creating an AWS Account&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;I started by signing up for an AWS Free Tier account, which gave me access to a t3.micro instance—ideal for small projects like mine.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3kzcfkacsp7btbm4hz7b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3kzcfkacsp7btbm4hz7b.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. &lt;em&gt;Launching an EC2 Instance&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;From the AWS Management Console:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I opened the EC2 dashboard and clicked &lt;em&gt;Launch Instance&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;I named my instance “My-ec2-key”.&lt;/li&gt;
&lt;li&gt;I selected &lt;em&gt;Amazon Linux 2023&lt;/em&gt; as my operating system.&lt;/li&gt;
&lt;li&gt;I chose the &lt;em&gt;t3.micro&lt;/em&gt; instance type to stay within the Free Tier.
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh8ilet01wdjfajsvo3j1.png" alt=" " width="800" height="373"&gt;
&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk0gwiqjqgmdr682fot7l.png" alt=" " width="800" height="373"&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. &lt;em&gt;Setting Up a Key Pair&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;To securely connect to my server, I created a key pair named wale-key.pem and downloaded it to my computer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0gwovwoifj4vza8rfh8r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0gwovwoifj4vza8rfh8r.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;strong&gt;I successfully initiated launch instance and got my public and private IP4 address&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk7usjza8cf41yvgecamk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk7usjza8cf41yvgecamk.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvfqwvbgunl1ovu1mnbb0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvfqwvbgunl1ovu1mnbb0.png" alt=" " width="800" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  4. &lt;em&gt;Configuring Security Groups&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;I configured the firewall to allow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;SSH (port 22)&lt;/em&gt; for remote access.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;HTTP (port 80)&lt;/em&gt; so my website could be viewed publicly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpobl96gv8am205fnyxs1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpobl96gv8am205fnyxs1.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  5. &lt;em&gt;Connecting to the Instance&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;Using SSH, I connected to my EC2 instance:&lt;br&gt;
bash&lt;br&gt;
ssh -i "wale-key.pem" ec2-user@&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0m5uyloqsvmlsxr5m2k5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0m5uyloqsvmlsxr5m2k5.png" alt=" " width="800" height="513"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  6. &lt;em&gt;Installing Apache Web Server&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;Once inside the server, I installed Apache:&lt;br&gt;
bash&lt;br&gt;
sudo yum update -y&lt;br&gt;
sudo yum install httpd -y&lt;br&gt;
sudo systemctl start httpd&lt;br&gt;
sudo systemctl enable httpd&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flhrkfz43x7fiyjw11y10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flhrkfz43x7fiyjw11y10.png" alt=" " width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  7. &lt;em&gt;Creating My First Web Page&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;I created a simple HTML page:&lt;br&gt;
bash&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7t69nkp9384sh2s8e62q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7t69nkp9384sh2s8e62q.png" alt=" " width="800" height="36"&gt;&lt;/a&gt;&lt;strong&gt;After creating my simple html,and then type my Ip address into the browser and got,Hello from ec2&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7qf0o5ka74jm6cf3hpn4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7qf0o5ka74jm6cf3hpn4.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  8. &lt;em&gt;Accessing the Website&lt;/em&gt;
&lt;/h3&gt;

&lt;p&gt;I opened my browser and entered the public IP of my EC2 instance. Voilà! My website was live.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;How to launch and configure a virtual server.&lt;/li&gt;
&lt;li&gt;Basics of Linux command line and SSH.&lt;/li&gt;
&lt;li&gt;Installing and running a web server.&lt;/li&gt;
&lt;li&gt;Managing security groups and firewall rules.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What’s Next?
&lt;/h3&gt;

&lt;p&gt;Now that I’ve hosted a static website, I’m excited to explore:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hosting dynamic sites with Node.js or PHP.&lt;/li&gt;
&lt;li&gt;Deploying WordPress on EC2.&lt;/li&gt;
&lt;li&gt;Setting up a custom domain and SSL certificate.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Final Thoughts
&lt;/h3&gt;

&lt;p&gt;Launching my first EC2 instance was a rewarding experience. It demystified cloud hosting and gave me confidence to build more complex projects. If you're a beginner looking to get started with AWS, EC2 is a fantastic place to begin.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ec2</category>
      <category>instances</category>
      <category>ami</category>
    </item>
  </channel>
</rss>
