Lab 6: Creating and Using AMIs

Lab 6: Creating and Using AMIs

In the Lab 6 I am going to create AMI images from my EC2 instances and using that image. 

Lets see how we can do it. 

Go to the EC2 instances and first right click on the Webserver and click image —> create image

Screen Shot 2017-10-20 at 2.21.03 PM

Create Image window will pop-up.
Image name – DinoStoreWebServer
Description – Image of DinoStore WebVM

Create Image

Screen Shot 2017-10-20 at 2.21.56 PM

Right click on the Queue Server as well and select Image –> Create Image

Screen Shot 2017-10-20 at 2.26.13 PM

Image name: DinoQueueServer
Image Description: Image of DinoStore Queue Server VM
Create Image

Screen Shot 2017-10-20 at 2.27.32 PM

Under the AMIs I can see my two images are getting created. 

Screen Shot 2017-10-20 at 2.27.57 PM

Once my WebServer image is done Im going to launch it. 
Right click on it and click Launch 

Screen Shot 2017-10-20 at 2.28.15 PM

Select the t2.micro (free tire one) for the image
Click Next

Screen Shot 2017-10-20 at 2.28.29 PM

Select IAM role as “WebServerRole”
Click Next

Screen Shot 2017-10-20 at 2.29.05 PM

Keep the default storage and click Next

Screen Shot 2017-10-20 at 2.29.11 PM

I am adding a tag as the name to identify easily later on. 
Name – WebServer02
Click Next

Screen Shot 2017-10-20 at 2.29.31 PM

In the security group configuration step, Click select existing security group
Select WebRDPGroup
Click Review and Launch 

Screen Shot 2017-10-20 at 2.30.06 PM

For the key pair I am going to use already created key pair. 

Screen Shot 2017-10-20 at 2.30.27 PM

Im going to run my website using the main EC2 web server instance. When I launched the website I can see IP address on the left hand side of the page that is – 172.31.23.185

Screen Shot 2017-10-20 at 2.33.49 PM

Now, I am going to run my website using the AMI image. 
In this my left hand side IP is different. Its 172.31.26.185

Screen Shot 2017-10-20 at 2.34.00 PM

Thats mean image is working now as a seperate server for the web application. 

This is the end of the Lab 6

 

Leave a comment