[Recipes] Creating and Publishing Amazon Machine Images (AMI)

Problem: 

Create and publish the AMI of a custom EC2 instance.

Solution Summary: 

Create and publish the AMI of a custom EC2 instance from the console.

Solution Steps: 

  1. Login to AWS console and go to EC2.

  2. Create a snapshot of the default root volume.

  3. Go to Actions > Create Image

    1. Give a name and description. E.g. DemoWebServerAMI and Demo WebServer AMI

    2. Leave other details as is, but look into each of the options: Architecture, Virtualization Type, Root Device Name, Kernel ID, RAM Disk ID. You can also change the size and type of the root volume.

    3. Click on Create

    4. Go to AMIs (Under Images Sidebar) and wait for image to appear. It might take some time to create the Image.

  4. Make the image public

    1. Select the image and click on Modify Image Permissions (under Actions menu)

    2. Click on public and save.

    3. Guidelines are available at:

      1. https://aws.amazon.com/articles/9001172542712674

      2. http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/building-shared-amis.html

 

Exam Tips

  1. Private images can be shared with another AWS account alone. Select the image and click on Modify Image Permissions (under Actions menu)

  2. AMIs are regional.

Learn Serverless from Serverless Programming Cookbook

Contact

Please first use the contact form or facebook page messaging to connect.

Offline Contact
We currently connect locally for discussions and sessions at Bangalore, India. Please follow us on our facebook page for details.
WhatsApp (Primary): (+91) 7411174113
Phone (Escalations): (+91) 7411174114

Business newsletter

Complete the form below, and we'll send you an e-mail every now and again with all the latest news.

About

Cloudericks.com is my blog to share notes and learning materials on Cloud and Data Analytics. My current focus is on Amazon Web Services.

I like to write. I try to document what I learn and share with others. I believe that knowledge is useless unless you share it; the more you share, the more you learn.

Recent comments

Photo Stream