EC2 Webapp

Goal

Deploy Apache Webserver on Linux Instance and host a simple HTML based web application.

Pre-Requisites

  1. You must be having an AWS account to create infrastructure resources on AWS cloud.
  2. Source Code

Pre-Deployment

Customize the application dependencies mentioned below on AWS EC2 instance.

  1. Install Apache Web Server
  2. Install Git
  3. Configure Apache to start automatically after the instance reboot.

Deployment

Infrastructure Setup

  1. Create Security Group allowing port 22 from custom IP source ( Your workstation IP ) and port 80 from public.
  2. Create Key-Pair and download the private key.
  3. Create t2.micro type EC2 instance using  Amazon Linux2 AMI.
  4. Create Elastic IP and associate the IP to EC2 instance.
  5. Create Route53 hosted zone with your domain name and configure A record pointing to the EC2 EIP.

Application Setup

  1. Use Git commands and clone the source code from Bit Bucket repository provided in the pre-requisites.
  2. Deploy the source code into web server document root folder – /var/www/html

Validation

  1. Verify if you are able to access the web application from internet browser.

Kindly leave comment below with your experience with this simple project.

© Edwiki Trainings – Click HERE If you are interested to learn more on Cloud & DevOps stack.

0 Shares:
5 comments
  1. I was able to complete the assignment with ease, only confusion was about the destination location the code will be copied to by the git. Later came to know that the git will copy the code into the present working directory.

Leave a Reply to Ufuoma Cancel reply

Your email address will not be published. Required fields are marked *

You May Also Like