Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
A tool for creating AWS AMI from an existing AMI and an install packages script
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
= AWS AMI A tool for creating AWS AMI from a base AMI and an install packages script Example: After installed aws-ami. Setup aws access env variables: export AWS_ACCESS_KEY_ID='your aws access key id' export AWS_SECRET_ACCESS_KEY='your aws secret access key' Pick base ami and setup base_ami_yml file (As we use user-data to inject install_packages_script to install packages, the base AMI need support user-data.): us-west-1: ami-102923 eu-west-1: ami-232340 write a script to install packages on the AMI (install_packages_script.sh example): #!/bin/sh -eu sudo apt-get install rubygems .... Then you should be ready to run the following command to create a new AMI: aws-ami -n ami_name -r us-west-1 -f install_packages_script.sh -k ssh_key_name -b base_ami_yml_path All options: aws-ami -h