Skip to content

Instantly share code, notes, and snippets.

@tmatilai
Created February 7, 2013 21:20
Show Gist options
  • Save tmatilai/4734265 to your computer and use it in GitHub Desktop.
Save tmatilai/4734265 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
CONF='.ec2-credentials'
if [ -f "$CONF" ]; then
# export EC2_URL=https://ec2.us-east-1.amazonaws.com/
# export EC2_ACCESS_KEY=''
# export EC2_SECRET_KEY=''
. "$CONF"
fi
apt-get update
apt-get install -qy git
git clone https://github.com/andsens/ec2debian-build-ami.git
cd ec2debian-build-ami
./ec2debian-build-ami --codename wheezy --volume-size 8 --plugin plugins/admin-user --description 'Debian 7.0 Wheezy (pre)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment