The AWS Marketplace has changed the way that software is managed and deployed. A vital component of the platform is the method of deployment that has made AWS Marketplace a huge success. This game-changing method of deployment is with Amazon Machine Image (AMI) set-up that addresses the problems posed by the traditional software installation methods.
The Marketplace has simplified the search and installation process for enterprise software, making AMI-based deployment the preferred approach for the users. An AMI (Amazon Machine Image) is a master image that contains the information required to launch virtual servers (or instances) in the cloud. AMI deployment makes the process seamless and faster than traditional software installations.
This blog post elucidates the process for AWS Marketplace sellers to list AMI-based products made out of AWS CloudFormation templates. You can use the templates to define a cluster or distributed architecture for the products or to select different AMI combinations or product configurations. The AWS CloudFormation templates can be configured to deliver single or multiple AMIs along with the associated config files and Lambda functions. For this article, we focus on providing a solution using a single AMI. Buyers can browse the selection of solutions on AWS Marketplace, buy with one click, and deploy with AWS CloudFormation templates.
AMI-based delivery approach provides faster set-up as it doesn’t require manual installation or additional hardware, making the configuration process simpler. Other methods, such as Sagemaker, do not allow usage of other Amazon Web services and product bundling. Therefore, to overcome this hurdle, we use the AMI- based approach, which does not restrict any outbound calls to other Amazon Web Services as long as the custom IAM (Identity and Access Management) role has all the necessary policies to access the services.
The steps for AMI-based delivery using AWS CloudFormation are:
This step involves developing the entire solution and packaging the code in a manner that makes the deployment easy. This solution was dockerized and ready to be tested before being shipped as an AMI. The services used for this use case were Amazon Textract, Amazon S3, Amazon EC2, Amazon CloudFormation, and Amazon VPC.
As we previously packaged our code to be used, in this step we orchestrate the infrastructure necessary to deploy the code and activate it. First, we
We manually enter the instance using AWS Session Manager and follow the below-mentioned steps:
We debug errors, if any, and move to the next step.
Now, we terminate the session manager tab and stop the instance. We also create an AMI out of the selected instance.
We use YAML for creating and configuring AWS resources. To make the creation of CFT’s easy, we need to create product architecture. This architecture helps to map the understanding in the real world.
Finally, after the creation of all the resources, we test the solution endpoint, patch if new issues arise, and repeat steps 5 through 6.
Resources created through the CloudFormation Template:
As CFT deployments can be tricky, they require necessary permissions, especially when working with IAM role creation.
One requires access to a role that has IAM role creation policies attached to it. If the IAM role is not specified, the role which we use to login into the account is assumed for CFT creation.
The steps to consider before moving ahead with the submission are:
AWS topology diagrams are used to describe the design, security, and deployment of applications built on the AWS cloud. The AWS marketplace solution requires a topology diagram to be submitted during the solution review.
The submission requires an estimated infrastructure price for the default configuration of each template.
For single-AMI products, use the Commercial Product form. This is an extensive excel document that needs to be completed and attached to the final submission.
Use the AWS Marketplace Management Portal to submit the product, and allow three to five weeks for request processing, including:
Bonus debugging tip:
Silent issues, which do not throw an explicit error, can be discovered by navigating to the /home/ubuntu/var/log folder and searching through the files present there.
The AWS Marketplace makes software purchase and installation quicker and seamless while offering flexible licensing options and transparency in usage costs. AWS Marketplace can be used to showcase snippets of larger product offerings or list a fully functional product to cater to the consumer needs.
As an AWS Advanced Consulting partner, Quantiphi leverages AWS data and machine learning platforms to enable organizations embark on a data and AI-led digital transformation journey, and harness their true potential through cross-functional collaboration of teams. Get in touch with us to learn more.