Within a template or migration, the
builders section is an array of objects, describing the list of machine images to build (and where possible publish). For example if you wished to build an AMI image for Amazon EC2 and another for Microsoft Azure, you would specify a builder for each.
The information may include H/W requirements, authentication information (known as a cloud account) or where to upload and register the machine image after the build is complete.
Please refer to the specific machine image format for the mandatory and optional attributes.
A Word on Cloud Accounts
For “cloud” machine images, for example Amazon EC2, Azure CloudStack and OpenStack, the
builder requires account information to the cloud environment. Information from the builder is used to correctly generate the machine image (for example AMI images for Amazon EC2 requires to have certain certificates embedded into the machine image) and to upload and register the machine image into the correct region, zone or datacenter.
The cloud account information can be part of the builder section, however as this includes sensitive information, hammr provides other mechanisms to include this information in the builder section. A safer way is to store this information in a separate file (JSON or YAML) and create the cloud account using
account create; then reference the account
name in the builder.
Please refer to the specific machine image format for the cloud account options and examples.