AminatorEBS AMIs 創(chuàng)建工具
Aminator 是創(chuàng)建 EBS AMIs 的工具,當(dāng)前支持 CentOS/RedHat Linux 鏡像,可以在 EC2 實例中運行。
Aminator 容易創(chuàng)建特定應(yīng)用的自定義 AMIs。
Aminator 創(chuàng)建一個自定義 AMI:
-
一個基礎(chǔ)的 ami ID
-
一個鏈接到 deb 或者 rpm 包的鏈接,用來安裝你的應(yīng)用
這對大量的 AWS 工作流特別有用。
要求
-
Python 2.6+ (暫時還不支持 Python 3.x )
-
Linux 或者 UNIX 云實例 (當(dāng)前支持 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
評論
圖片
表情
