Skip to content

ThoughtWorksStudios/aws-ami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

= 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

About

A tool for creating AWS AMI from an existing AMI and an install packages script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages