AWS : EC2 Instances .
Jul 20, 2024
--
While creating EC2 , we have to select :
- AMI .
- Instance type .
- Create new key pair for login purpose .
For AMI and instance type , we will use the one which is free tier available .
Let’s connect to server using EC2 instance connect .
We will execute below commands :
sudo su
yum update -y
yum install httpd
systemctl start httpd
systemctl enable httpd
echo "Hello World" > /var/www/html/index.html
For purpose of load balancing hands-on as in below post , create 1 more instance in similar way but having different message . https://medium.com/@sapnarsy2612/aws-elastic-load-balancers-ba36e7d6aed8