Custom AMI in CML

CML supports custom AMI (Amazon Machine Image) for use in cases where you need to use a customized operating system.

AMIs are templates for creating EC2 compute resources. The template specifies the operating system and software that is required in the user’s operating environment. An AMI template also specifies the region, system architecture (32 or 64 bit), launch permissions, storage (EBS or instance store).

Users can create a custom AMI by modifying a standard template, and then saving the template for future use. This is useful for example in the healthcare industry, which uses special security protocols and requires a hardened operating system. Instructions for creating Amazon machine images can be found in AWS documentation, for example Using a custom Amazon machine image (AMI)

To use custom AMIs in CML, follow these steps:

  1. Create a Catalog definition - the catalog contains a list of the AMIs available for use.

  2. Create the Catalog - Use a CLI command to create the catalog, based on the catalog definition. This catalog can be referred to in the following command, instead of the default AMI catalog.

  3. Create a cluster - Execute a CLI command to select one AMI from the catalog, and create a cluster based on the image.