DEV Community

isaac igwe
isaac igwe

Posted on

Deploy NGINX Web Server on AWS EC2 Ubuntu Server. DevOps HNG12 Stage 0 Task

Introduction

Cloud Computing is a fundamental skill for DevOps professionals. This document outlines the steps I took to install and configure an NGINX web server on an AWS EC2 instance with an Ubuntu image installed. The goal here is to deploy a functional web server on AWS cloud infrastructure.

Project Setup
Deploy AWS EC2 Instance

  1. My instance name: My Nginx Server
  2. AMI: Ubuntu Server 24.04
  3. Instance Type: t2 micro
  4. Key pair: nginx-web-key
  5. SG: Allow SSH traffic from 0.0.0.0/0

Image description

Connect to the EC2 instance

  • Connect to the EC2 instance using the EC2 CMD and run sudo apt update to update the package list.

Image description

  • Run Sudo apt install nginx -y to install the Nginx package.

Image description

  • Start and enable Nginx on the web server

Image description

Image description

  • Configure the html page, run sudo nano /var/www/html/index.html

  • Edit the html contant

  • Save and exit.

Image description

  • Restart and check the status of the Nginx package.

Image description

  • Status output

Image description

  • Open a web browser, then copy and paste the EC2 public URL.

Image description

  • Challenge Faced. My web page was not reachable until I opened the web page with Chrome incognito browser, that was when I was able to view the page.

Objective of this task to my DevOps Career

This task installs the fundamental knowledge required for cloud computing and DevOps roles.

upon completion of this task, i have gained:

  • Learn how to deploy and secure a web server.
  • Understand the AWS cloud infrastructure and resource management.
  • Understand the troubleshooting skills for common server deployment.

Conclusion

As a beginner in achieving this stage 0 task, I was excited after completing this project.

References

DevOps Engineers
Cloud Engineers
Platform Engineers
Kubernetes Specialists
AWS Solutions Architects
Azure DevOps Engineers
Google Cloud Engineers
CI/CD Pipeline Engineers
Monitoring/Observability Engineers
Automation Engineers
Docker Specialists
Linux Developers

Top comments (0)