Working with AWS Cloud from CommandLine — Part5

In this article, we will learn how to host a web application on a webserver configured on aws cloud.

  • An AWS Account.
  • AWS CLI pre-configured in the system.
Command: aws --version

Step 1: Launch an ec2 instance.

Step 2: Installing the Apache httpd Webserver in the instance.

Command: sudo yum install httpd -y

Step 3: Copying the Web application pages into webserver.

Step 4: To start the httpd service.

Command: sudo systemctl start httpd
Command: sudo systemctl status httpd
Command: aws ec2 authorize-security-group-ingress --group-name=<> 
--protocol=<> --port=<> --cidr=0.0.0.0/0
Command: aws   ec2   describe-security-groups 
--group-name=<security_group_name>
  1. We have not attached a persistent storage to this instance. In case, if the instance gets terminated, then entire web application data along with the instance, would get deleted. This type of storage is called ephemeral storage.

📝 ️Few Last Words

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store