ami-publisher

A utility to manage and publish Amazon Machine Images (AMIs) using images stored in the imageserver, using ImageUnpacker instances.

The ami-publisher allows you to efficiently create (publish) AMIs in multiple AWS accounts and regions. It uses ImageUnpacker instances running in AWS to effeciently fetch images from the imageserver and then issues AWS API calls to create the AMIs. It may be run on any machine which has access to AWS credentials. It is typically run from a script which may be part of an image build pipeline.

See the design document for more information.

Usage

Ami-publisher supports several sub-commands. There are many command-line flags which provide parameters for these sub-commands. The most commonly used parameter is -imageServerHostname which specifies which host the imageserver to talk to is running on. The basic usage pattern is:

ami-publisher [flags...] command [args...]

Built-in help is available with the command:

ami-publisher -h

Some of the sub-commands available are:

Security

Imageserver restricts RPC access using TLS client authentication. Ami-Publisher will load certificate and key files from the ~/.ssl directory. Ami-Publisher will present these certificates to imageserver. If one of the certificates is signed by a certificate authority that imageserver trusts, imageserver will grant access.