Project

aws-ami

0.0
No commit activity in last 3 years
No release in over 3 years
A tool for creating AWS AMI from a base AMI and an install packages script
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.8.2
 Project Readme
= 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