EC2 Webapp


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


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


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.


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


  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.

  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

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

You May Also Like
Read More

AWS EC2: Region vs VPC vs AZs

AWS providing Infrastructure as a Service (IaaS). Below diagram depicts various resources can be created on AWS to…