EC2 & NGINX

Roland Archie
3 min readFeb 19, 2023

--

Introduction:

Welcome back everyone, this week we will be focusing on creating a free tier EC2 instance using an Operating System of your choosing. Your operating system will be required to update packages, install and start the server as well. This is called bootstrapping.

Prerequisites:

Making an AWS Account: https://aws.amazon.com/premiumsupport/knowledge-center/create-and-activate-aws-account/

Tasks:

  1. Create a t2.micro EC2 instance with the OS of your choice (Just make sure it is free tier).
  2. In the user-data field, use a script that updates all packages, installs NGINX, and start the service.
  3. Verify that the instance has the NGINX webserver downloaded and installed through the public IP.

In last week’s lab we launched an EC2 Instance. If you need a refresher on how to do so you can check out this link: https://www.youtube.com/watch?v=sRRO5TEGfY4

Now that we are refreshed and caught up, we now have our foundation and can build upon it with todays project.

First things first! We will have to create an EC2 Instance

Named my Project Feb19Project
We select t2.micro as its free and will not cause a bill
Create Your Key Pair
We will ensure we can access the Instance from Port 22 & Port 80
We will open this drop box

After opening Advanced details, we will scroll all the way down until we see the “user data” box. We will insert the following

Success! We have launched and verified our Instance is running
We will copy our Public IPV4 address
Paste the IP Address in the Web Browser. If done correctly you have completed the project!

Thank you for following along once again! Each project builds on our foundational knowledge and will allow us to grow our skills with AWS! Hopefully you learned something new today.

--

--