LAUNCH AN EC2 IN AWS

Benita Moore
2 min readApr 2, 2023

--

Amazon Web Services (AWS) Cloud provides infrastructure services, such as computer, storage, networking, and database. These services are available on demand through the internet and with pay as you go pricing.

Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud. Using Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster. You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage.

  1. To get started click into the AWS Console, and Click on EC2
  2. Click EC2 on the EC2 dashboard
  3. Choose AMI
  4. Create new key pair
  5. In User data type:

#!/bin/bash

# Update the package

yum update -y

# Install Apache

yum install -y httpd

Start the Apache service

systemctl start httpd.service

#Enable the Apache service to start at boot

systemctl enable httpd.service

Lauch instance.

The launch is complete once you see the Success screen.

--

--

No responses yet