<?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>DEV Community: Augustine Okwaraebuzie</title>
    <description>The latest articles on DEV Community by Augustine Okwaraebuzie (@augustine_okwaraebuzie_4e).</description>
    <link>https://dev.to/augustine_okwaraebuzie_4e</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%2F3305743%2F9e36bef2-2daa-45cd-be9e-7ef353ca42b8.png</url>
      <title>DEV Community: Augustine Okwaraebuzie</title>
      <link>https://dev.to/augustine_okwaraebuzie_4e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/augustine_okwaraebuzie_4e"/>
    <language>en</language>
    <item>
      <title>🟢 How to Launch an Ubuntu EC2 Instance on AWS (Step-by-Step Guide)</title>
      <dc:creator>Augustine Okwaraebuzie</dc:creator>
      <pubDate>Sun, 13 Jul 2025 12:47:36 +0000</pubDate>
      <link>https://dev.to/augustine_okwaraebuzie_4e/how-to-launch-an-ubuntu-ec2-instance-on-aws-step-by-step-guide-59al</link>
      <guid>https://dev.to/augustine_okwaraebuzie_4e/how-to-launch-an-ubuntu-ec2-instance-on-aws-step-by-step-guide-59al</guid>
      <description>&lt;p&gt;&lt;strong&gt;📘 INTRODUCTION&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Amazon EC2 (Elastic Compute Cloud) provides scalable computing capacity in the AWS cloud. By launching an Ubuntu EC2 instance, you're essentially creating a virtual server on the cloud that can run applications, host websites, and perform development/testing activities. Ubuntu is a popular Linux distribution due to its security, open-source nature, and ease of use.&lt;/p&gt;

&lt;p&gt;This guide walks you through each step, from logging into AWS to connecting to your Ubuntu server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;✅ Step-by-Step Process to Launch an Ubuntu EC2 Instance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Requirements&lt;/strong&gt;&lt;br&gt;
To begin, make sure you have the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;An active AWS account&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An Installed text editor like (Powershell)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SSH client (e.g., Terminal on macOS/Linux, PuTTY on Windows)&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Log in to AWS Management Console&lt;/strong&gt;&lt;br&gt;
🔹 Go to &lt;a href="https://aws.amazon.com" rel="noopener noreferrer"&gt;https://aws.amazon.com&lt;/a&gt;&lt;br&gt;
🔹 Click on Sign In to the Console&lt;br&gt;
🔹 Enter your username and password&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%2Ftiltj9cwz8rpbzptsssz.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%2Ftiltj9cwz8rpbzptsssz.png" alt="AWS Rooter sign in" width="800" height="509"&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%2Fn3ptmxw4qix3q5ue956l.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%2Fn3ptmxw4qix3q5ue956l.png" alt=" " width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Navigate to EC2 Dashboard&lt;/strong&gt;&lt;br&gt;
🔹 On the AWS Console, search for EC2 in the “Find Services” bar.&lt;br&gt;
🔹 Click on EC2 under “Compute”.&lt;/p&gt;

&lt;p&gt;The EC2 Dashboard shows all running instances, volumes, security groups, and key pairs.&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%2Fo455iaoc1csd01d20lx8.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%2Fo455iaoc1csd01d20lx8.png" alt=" " width="800" height="455"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Click “Launch Instance”&lt;/strong&gt;&lt;br&gt;
🔹 In the EC2 Dashboard, click the “Launch Instance” button.&lt;br&gt;
🔹 You’ll be taken to the instance creation wizard.&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%2Fvmi63yqianmbq4jkl2n8.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%2Fvmi63yqianmbq4jkl2n8.png" alt=" " width="800" height="264"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Name Your Instance&lt;/strong&gt;&lt;br&gt;
🔹 In the “Name and tags” section, type a name like: Ubuntu-Web-Server.&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%2Fqc7n8fqpg55hor4eu6s4.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%2Fqc7n8fqpg55hor4eu6s4.png" alt=" " width="800" height="201"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Choose an Amazon Machine Image (AMI)&lt;/strong&gt;&lt;br&gt;
🔹 In the “Application and OS Images” section:&lt;br&gt;
🔸 Click “Browse more AMIs”&lt;br&gt;
🔸 In the search bar, type Ubuntu&lt;br&gt;
🔸 Choose an Ubuntu Server (e.g., Ubuntu Server 22.04 LTS)&lt;br&gt;
🔸 Make sure it says Free Tier eligible (if you're using the free tier)&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%2F3uittf6qt0abn76pattu.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%2F3uittf6qt0abn76pattu.png" alt=" " width="800" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6: Choose an Instance Type&lt;/strong&gt;&lt;br&gt;
🔹 Select t2.micro (eligible for Free Tier: 1 vCPU, 1GB RAM).&lt;br&gt;
🔹 For more power, choose higher specs—but note, it may incur charges.&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%2F76ud6g60s7grq7hh6k47.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%2F76ud6g60s7grq7hh6k47.png" alt=" " width="800" height="223"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7: Create (or Use) a Key Pair&lt;/strong&gt;&lt;br&gt;
🔹 A key pair lets you securely SSH into your instance.&lt;br&gt;
🔸 Choose Create new key pair&lt;br&gt;
🔸 Give it a name: ubuntu-key&lt;br&gt;
🔸 Select .pem as file format&lt;br&gt;
🔸 Click Create key pair — a file will download (save this safely)&lt;/p&gt;

&lt;p&gt;⚠️ You won’t be able to download the key again. Keep it secure and don’t lose it.&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%2Fcrp1tnwldxuj4kpbmqmo.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%2Fcrp1tnwldxuj4kpbmqmo.png" alt=" " width="800" height="188"&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%2F7nw49js8hooqn551x24a.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%2F7nw49js8hooqn551x24a.png" alt=" " width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8: Configure Network Settings, Review and Launch&lt;/strong&gt;&lt;br&gt;
🔹 Choose or leave the default VPC and subnet&lt;br&gt;
🔹 Under “Firewall (security groups)”, choose:&lt;br&gt;
🔸 Create security group&lt;br&gt;
🔸 Allow SSH (port 22) from your IP&lt;br&gt;
🔸 Optional: Add HTTP (port 80) if you're hosting a web server&lt;br&gt;
🔸 Click on Launch&lt;br&gt;
🔸 Check Configure Storage and leave it on default&lt;br&gt;
🔸 You will see a successful message, scroll down and click on "view instance" to go to dashboard.&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%2Fd2iwk9uknc97aclyjgp0.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%2Fd2iwk9uknc97aclyjgp0.png" alt=" " width="676" height="222"&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%2Fbdeuypfw0odbdr9j4n96.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%2Fbdeuypfw0odbdr9j4n96.png" alt=" " width="800" height="223"&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%2F4hcuzn0wgx4qquen4ah2.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%2F4hcuzn0wgx4qquen4ah2.png" alt=" " width="800" height="50"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 9: Connect to Your Ubuntu EC2 Instance via PowerShell&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open your terminal and run the command from the directory containing your .pem file.&lt;/li&gt;
&lt;li&gt;Copy the SSH command that looks like:
ssh -i "ubuntu-key.pem" ubuntu@your IP address&lt;/li&gt;
&lt;li&gt;Accept the connection (type yes)&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%2Fhluac2gnigrxn2ojyr0y.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%2Fhluac2gnigrxn2ojyr0y.png" alt=" " width="579" height="246"&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%2F1y1p2urh637iozm69ohx.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%2F1y1p2urh637iozm69ohx.png" alt=" " width="800" height="160"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 10:Installing and configuring NGINX Web Server&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Installing NGINX:&lt;/strong&gt; Enter the command "sudo apt install nginx -y"&lt;br&gt;
Note that "nginx" is the web server software&lt;br&gt;
          "-y" means you agree to install without asking again&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%2Fc3jctv1jfydakfijto8u.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%2Fc3jctv1jfydakfijto8u.png" alt=" " width="742" height="234"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start NGINX:&lt;/strong&gt; Enter the command "sudo systemctl start nginx"&lt;br&gt;
This is to start nginx server&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check NGINX status:&lt;/strong&gt; Enter the command "sudo systemctl status nginx"&lt;br&gt;
This shows if NGINX is running properly&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Enabling NGINX to Auto-start:&lt;/strong&gt; Enter the command "sudo systemctl enable nginx"&lt;br&gt;
This ensures NGINX starts automatically if the server restarts&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%2Fvsk85exv0y0a5j0a4e23.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%2Fvsk85exv0y0a5j0a4e23.png" alt=" " width="800" height="294"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 11: Testing and Customizing the Web Page&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Testing:&lt;/strong&gt; Open your browser and login to http//:(your-ec2-IP)&lt;br&gt;
         You will see the default NGINX welcome page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Editing the web page:&lt;/strong&gt; Enter the command &lt;br&gt;
"sudo /var/www/html/index.nginx-debian.html" . This is to open the default web page file that NGINX shows to visitors, the files are stored in the /var/www/html folder on the server&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps to Edit:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Delete the existing text in the file by holding the ctrl key and press K repeatedly (deletes lines one after the other).&lt;/li&gt;
&lt;li&gt;Type this:&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%2F0f1d8ql1updt4icfpaad.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%2F0f1d8ql1updt4icfpaad.png" alt=" " width="800" height="66"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You should see the NGINX web page in this effect&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%2Fl3lhxy0672vimj3cv6le.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%2Fl3lhxy0672vimj3cv6le.png" alt=" " width="800" height="149"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🎯 Conclusion&lt;/strong&gt;&lt;br&gt;
You’ve successfully launched and connected to an Ubuntu EC2 instance! From here, you can install software, host websites, configure firewalls, and much more — all from a scalable cloud environment.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>STEPS ON HOW TO LAUNCH AN APACHE WEB SERVER USING EC2 INSTANCE</title>
      <dc:creator>Augustine Okwaraebuzie</dc:creator>
      <pubDate>Sat, 05 Jul 2025 03:58:53 +0000</pubDate>
      <link>https://dev.to/augustine_okwaraebuzie_4e/steps-on-how-to-launch-an-apache-web-server-using-ec2-instance-3i0k</link>
      <guid>https://dev.to/augustine_okwaraebuzie_4e/steps-on-how-to-launch-an-apache-web-server-using-ec2-instance-3i0k</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Amazon Elastic Compute Cloud (EC2) offers the broadest and deepest compute platform, Its a powerful service that allows users to run virtual machines in the cloud. Launching a web server on EC2 is a fundamental task for developers, DevOps engineers, and anyone working with cloud infrastructure&lt;/p&gt;

&lt;p&gt;As part of this process, I will also show detailed screenshots annotated using Screenpresso at each step to make the process clear and easy to follow.&lt;/p&gt;

&lt;p&gt;This article provides a step by step guide on how to launch an EC2 web server using AWS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Requirements&lt;/strong&gt;&lt;br&gt;
To begin, make sure you have the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;An active AWS account&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;An Installed text editor like (Gitbash)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SSH client (e.g., Terminal on macOS/Linux, PuTTY on Windows)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Log in to the AWS Management Console&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First you Visit &lt;a href="https://aws.amazon.com/" rel="noopener noreferrer"&gt;https://aws.amazon.com/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on “Sign In to the Console.”&lt;/p&gt;

&lt;p&gt;Enter your login credentials and navigate to the EC2 Dashboard.&lt;/p&gt;

&lt;p&gt;Its important to note that the AWS Console is the web interface that &lt;br&gt;
allows you to manage all AWS services&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%2Ftiltj9cwz8rpbzptsssz.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%2Ftiltj9cwz8rpbzptsssz.png" alt="Image description" width="800" height="509"&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%2Fn3ptmxw4qix3q5ue956l.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%2Fn3ptmxw4qix3q5ue956l.png" alt="Image description" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Launch a New EC2 Instance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;From the EC2 Dashboard, click on “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%2Fvmi63yqianmbq4jkl2n8.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%2Fvmi63yqianmbq4jkl2n8.png" alt="Image description" width="800" height="264"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enter a name for your instance (e.g., MyWebServer).&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%2Fh72st4ohd42g6x1l2ueu.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%2Fh72st4ohd42g6x1l2ueu.png" alt="Image description" width="800" height="213"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choose an Amazon Machine Image (AMI):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Select Amazon Linux 2023, Ubuntu Server 22.04, or any preferred Linux distribution.&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%2F8cwhjrb94jm7o512uxwx.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%2F8cwhjrb94jm7o512uxwx.png" alt="Image description" width="800" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choose an Instance Type:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Select t2.micro (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%2F76ud6g60s7grq7hh6k47.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%2F76ud6g60s7grq7hh6k47.png" alt="Image description" width="800" height="223"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create or choose a key pair for SSH access:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If new, click “Create new key pair” and download the .pem file.&lt;br&gt;
Choose RSA and select .pem format (for Git Bash).&lt;/p&gt;

&lt;p&gt;Download and securely save the key file (example: MyKeyPairin.pem).This file is the only way to SSH into your instance. Don’t lose it!&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%2Fj8xankx5i6g7jhtkekyz.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%2Fj8xankx5i6g7jhtkekyz.png" alt="Image description" width="800" height="188"&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%2Fwmlg2obdlrd9bcb0131w.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%2Fwmlg2obdlrd9bcb0131w.png" alt="Image description" width="609" height="507"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configure Network Settings:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Create or use an existing security group.&lt;/p&gt;

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

&lt;p&gt;Leave the rest of the settings at default and 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%2Fd2iwk9uknc97aclyjgp0.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%2Fd2iwk9uknc97aclyjgp0.png" alt="Image description" width="676" height="222"&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%2Fbdeuypfw0odbdr9j4n96.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%2Fbdeuypfw0odbdr9j4n96.png" alt="Image description" width="800" height="223"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Connect to Your EC2 Instance&lt;/strong&gt;&lt;br&gt;
After the instance is running, click on “Connect” in the EC2 dashboard.&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%2Fo455iaoc1csd01d20lx8.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%2Fo455iaoc1csd01d20lx8.png" alt="Image description" width="800" height="455"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Open Git Bash&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Git Bash allows Windows users to use Linux commands and connect via SSH.&lt;/p&gt;

&lt;p&gt;** Navigate to Your Key Pair File**&lt;/p&gt;

&lt;p&gt;cd /c/Users/YourUsername/Downloads&lt;/p&gt;

&lt;p&gt;Replace YourUsername with your actual Windows username.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Set Correct File Permissions&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;chmod 400 MyKeyPairin.pem&lt;/p&gt;

&lt;p&gt;This step is required to ensure your SSH key is secure. Without this, Git Bash will not allow the connection.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Connect via SSH&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;ssh -i MyKeyPairin.pem ec2-user@&lt;/p&gt;

&lt;p&gt;Replace with the IP address of your EC2 instance.&lt;/p&gt;

&lt;p&gt;What to expect:You will see a security prompt the first time. Type yes to continue. You should now be inside your EC2 server terminal.&lt;br&gt;
Use the provided SSH command in your terminal&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%2F5iqh2w92cvxre1745onk.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%2F5iqh2w92cvxre1745onk.png" alt="Image description" width="304" height="50"&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%2Ftjqeavziaod7vxs7lazv.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%2Ftjqeavziaod7vxs7lazv.png" alt="Image description" width="287" height="54"&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%2Frc4d5ux7vw5ajbokjikd.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%2Frc4d5ux7vw5ajbokjikd.png" alt="Image description" width="583" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 4: Update system and Install a Web Server (Apache or Nginx)&lt;br&gt;
&lt;strong&gt;Update System Packages&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;sudo yum update -y&lt;/p&gt;

&lt;p&gt;This ensures your system is up to date.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Install NGINX Web Server&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;sudo amazon-linux-extras install nginx1 -y&lt;/p&gt;

&lt;p&gt;This installs NGINX from the Amazon Linux repositories.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Start the NGINX Service&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;sudo systemctl start nginx&lt;/p&gt;

&lt;p&gt;Starts the web server so it can serve web pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Enable NGINX on Boot&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;sudo systemctl enable nginx&lt;/p&gt;

&lt;p&gt;This ensures NGINX starts automatically when the server restarts.&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%2Fz3rmm9s1s8whnklznzs6.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%2Fz3rmm9s1s8whnklznzs6.png" alt="Image description" width="725" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test Apache HTTP Web Server in Browser&lt;/strong&gt;&lt;/p&gt;

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

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

&lt;p&gt;You should see the default Apache HTTP server has been installed and working properly.&lt;/p&gt;

&lt;p&gt;Why this is significant because it confirms that your NGINX web server is correctly installed and reachable.&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%2Fcv233zhp6wzjdhpl69ly.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%2Fcv233zhp6wzjdhpl69ly.png" alt="Image description" width="800" height="271"&gt;&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;In this article, You've successfully launched an EC2 web server. From here, you can upload your website files, configure domains, install SSL, or build a dynamic application. Amazon EC2 is a versatile and scalable platform that provides the foundation for many cloud-hosted applications.&lt;/p&gt;

</description>
      <category>ubuntu</category>
      <category>aws</category>
      <category>webdev</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
