EC2 & NGINX
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:
- Create a t2.micro EC2 instance with the OS of your choice (Just make sure it is free tier).
- In the user-data field, use a script that updates all packages, installs NGINX, and start the service.
- 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
After opening Advanced details, we will scroll all the way down until we see the “user data” box. We will insert the following
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.