Custom AMIs are required when you want to replicate your environments or launch a new EC2 in your autoscaling group, which has the same image as the EC2s which are already running. You lose a lot of time in setting up your server with the required applications, if you are doing it from scratch all the time.
Commands Used in this Lab are below:
sudo apt update -y
sudo apt install apache2 -y
sudo service apache2 status
sudo service apache2 start
index.html file
============
(Please note that video description does not allow 'greater than' and 'less than'
symbol. Hence I have removed those from below code. Please readd.
html
body
h1 Welcome to my Page /h1
h2 We are creating a customised AMI image /h2
/body
/html
sudo mv index.html /var/www/html