Aminator 是创建 EBS AMIs 的工具,当前支持 CentOS/RedHat Linux 镜像,可以在 EC2 实例中运行。
Aminator 容易创建特定应用的自定义 AMIs。
Aminator 创建一个自定义 AMI:
一个基础的 ami ID
一个链接到 deb 或者 rpm 包的链接,用来安装你的应用
这对大量的 AWS 工作流特别有用。
Python 2.6+ (暂时还不支持 Python 3.x )
Linux 或者 UNIX 云实例 (当前支持 EC2 )
Clone 然后运行:
# python setup.py install
或者
# pip install git+https://github.com/Netflix/aminator.git#egg=aminator
usage: aminate [-h] [-e ENVIRONMENT] [--version] [--debug] [-n NAME] [-s SUFFIX] [-c CREATOR] (-b BASE_AMI_NAME | -B BASE_AMI_ID) [--ec2-region REGION] [--boto-secure] [--boto-debug] package positional arguments: package package to aminate. A string resolvable by the native package manager or a file system path or http url to the package file. optional arguments: -h, --help show this help message and exit -e ENVIRONMENT, --environment ENVIRONMENT The environment configuration for amination --version show program's version number and exit --debug Verbose debugging output AMI Tagging and Naming: Tagging and naming options for the resultant AMI -n NAME, --name NAME name of resultant AMI (default package_name-version- release-arch-yyyymmddHHMM-ebs -s SUFFIX, --suffix SUFFIX suffix of ami name, (default yyyymmddHHMM) -c CREATOR, --creator CREATOR The user who is aminating. The resultant AMI will receive a creator tag w/ this user Base AMI: EITHER AMI id OR name, not both! -b BASE_AMI_NAME, --base-ami-name BASE_AMI_NAME The name of the base AMI used in provisioning -B BASE_AMI_ID, --base-ami-id BASE_AMI_ID The id of the base AMI used in provisioning EC2 Options: EC2 Connection Information --ec2-region REGION EC2 region (default: us-east-1) --boto-secure Connect via https --boto-debug Boto debug output