AMI-How to take AMI and Launch Instance From AMI

Table of contents

No heading

No headings in the article.

What is AMI(provides the information required to launch an instance) We create AMI with apache service running. After launch AMI we check that apache running or not.

Go to instance->Launch instance

LZxX6NXQ52.png

Give Name and tags

chrome_3vlKFA15nL.png

Choose Application and OS Images

chrome_FsFkOEfX64.png Select Key pair

chrome_RMVv9G0TOU.png

Choose Network Settings

chrome_99L6mLl4Fb.png

Configure Storage and launch instance

chrome_ccjdT2mS8h.png

Login this OS using putty.

AlVzBjOOg2.png

Login this os as Root sudo su then Install Apache service yum install httpd -y

mLjakMN4Pg.png

Start the Apache service httpd start

PUTTY_bv2aoIckUO.png

Check the service status service httpd status

PUTTY_1kA9D2lLDM.png

Now copy the public IP to the browser. See the below result. Apache running.

chrome_tkSnjycXqO.png

Then stop this EC2 instance and Take AMI. Choose instance->Actions->Image and Templates->Create Image.

chrome_T3YN5iBleT.png

Give the Image name.

chrome_0X2Ni3lcDV.png

Create Image chrome_yP7LmeS1ey.png

Go to AMI->Choose AMI->Launch instance from AMI

chrome_BAWJ0NyN6M.png

Give Name

chrome_ychoraJjAS.png Application and OS Images no need to change

chrome_yrsPbD7j7u.png

Choose Network settings and Launch

chrome_9bOsb1Jd6J.png

Now instance created

chrome_SeC4viqKZx.png

Check apche server running or not, here not running.

chrome_0T31QLRKIN.png Check Apache server status. service httpd status,here not running

3WzUJ9EEi6.png Start the service, service httpd start.

PUTTY_F2GV5vWi9x.png Now check the service status,here running

PUTTY_Y20NmpPIU3.png

Give the public ip to browser, now apache server running. So working fine

chrome_SHoetk2O86.png