How to publish an AWS AMI

by Tim Elston on Tips and Tricks • November 20, 2018

Snapt Aria was designed first and foremost for the cloud, and since it is a software-only solution our customers can access it through whichever platform they use in their environment. The Aria ADC includes load balancing, web accelerating, and web application firewall (WAF) for AWS and EC2.

Amazon has been leading the way in the public cloud space for many years and was the first public cloud to see an official Snapt offering listed on their marketplace. 

AWS provides you with all the tools you need to easily create and share virtual machine images with the world. This article details the process of creating and publishing your product through the AWS Marketplace.

1. Create A New VM using one of Amazon’s Official Base Images

Below are the top five most popular images, there are more available including Windows images.

aws-publish-1

2. Choose The Type and Size For Your VM

Amazon has a massive range of options, whether you need to optimize for storage, memory, compute, or graphics, they have it all.

Bonus: For individuals looking for a cheap way to prototype or test their products, Amazon also has a free tier.

aws-publish-2

3. Configure Your Settings

Next, you will configure your networking, storage, and security options before launching your new instance.

aws-publish-3

4. Create A Snapshot

Now you should have a running instance ready to be customized according to your requirements. Once you have integrated your product and are ready to share it with the world you need to create a snapshot. Be sure you’ve cleared any personal/user data from the machine.

Below is a range of useful commands to run before creating your snapshot.

Firstly, clear any files left in the /tmp/ directory and remove .bash_history file which stores a copy of all the CLI commands you ran as that user. The second line removes your ssh key from the server.

rm -rf /tmp/* /home/<user>/.bash_history
rm -rf /home/<user>/.ssh/authorized_keys

Be sure to do the same if you have been making use of the root user:

rm -rf /root/.bash_history
rm -rf /root/.ssh/authorized_keys

It’s also good practice to not allow access to the system via the root user account. This should be disabled by default, but it’s best to check this before distributing your image.

Now you can create your AMI (Amazon Marketplace Image).

aws-publish-4

5. Submit Your Image

Now it’s time to head over to the AWS Marketplace Management portal to submit your newly created AMI for scanning. 

  1. Select the heading “AMIs”, 
  2. Choose your AMI from the list of Unshared images 
  3. Click “Share AMIs”.

aws-publish-5

Amazon will then scan your image to ensure it meets its security guidelines.

Note: If you forgot to remove any ssh keys in the previous step your image will fail the scan. If you received a “successful” status from the scan you may proceed with listing your AMI on the marketplace. Head over to the “Listings” tab and select the type of product you would like to create in the “Create a new product” dropdown.

aws-publish-6

 

6. Add Service Listing Details

You will need to fill out a few pages detailing the particulars of your product and image including the regions you want to publish in and the instance types that you want to support, among others.

7. Begin The Review Process

Once you have filled all that in you can complete the process by clicking “Review”.

This will now submit your new product listing for review by the Amazon Marketplace team.

You should then receive a confirmation email, once approved, your new AMI will be available to users through the official AWS marketplace.

It’s a relatively easy process and as Amazon provides the tools you can create and share virtual machine images with the world, in a few simple steps.

Aria Software Load Balancer for AWS EC2

Our Aria load balancer is a full-featured software load balancer that can be launched directly from the AWS marketplace as an AMI. Aria offers AMI-based service discovery, which means the load balancing is based on EC2 AMI IDs instead of manual IP addresses. 

Launch our official AMI from the marketplace and get true Layer 7 load balancing in EC2. You’ll be up and running in minutes with load balancing, WAF, GSLB, comprehensive reporting, graphs, and flexible configurations. Learn more.

Try Aria Free