Challenge Lab: EC2 Instance Exercise

The lab is relatively easy but:

  1. If you use putty you should know how to convert your Keypair with Putty Key Generator to PPK format for making a connection to your EC2 instance. No need to generate, load the key pair and save it as a PPK format. if you can't find your file you need to select all files from the drop-down menu which you have on the downside of the load screen.

 

 

 

 

  1. you need to copy this code in the User Data text box when you create the EC2 instance. by this code you will install The Apache HTTP Server on your EC2.
#!/bin/bash  
yum update -y  
yum install httpd -y  
service httpd start  
chkconfig httpd on  
cd /var/www/html

   3. the trick is when you open the IP address of EC2, you must copy the link of the IP address but not open it by click, otherwise, some browsers will assume SSL and will open it on HTTPS mode which is not set in our instance and will make you sad about your lab. so open the IP address with copy and paste in browser.

Good luck!