Created
February 19, 2014 02:10
-
-
Save pepoviola/9084805 to your computer and use it in GitHub Desktop.
install ec2 ami tools. based on http://www.dowdandassociates.com/blog/content/howto-install-aws-cli-amazon-elastic-compute-cloud-ec2-ami-tools/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p /tmp/aws | |
mkdir -p /opt/aws | |
curl --silent -o /tmp/aws/ec2-ami-tools.zip http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.zip | |
rm -fR /tmp/aws/ec2-ami-tools-* | |
unzip -d /tmp/aws /tmp/aws/ec2-ami-tools.zip | |
rm -fR /opt/aws/ec2-ami-tools | |
mv /tmp/aws/ec2-ami-tools-* /opt/aws/ec2-ami-tools | |
rm -f /tmp/aws/ec2-ami-tools.zip | |
cat <<'EOF'>/etc/profile.d/ec2-api-tools.sh | |
export EC2_AMITOOL_HOME=/opt/aws/ec2-ami-tools | |
export PATH=$PATH:$EC2_AMITOOL_HOME/bin | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment