Skip to content

Instantly share code, notes, and snippets.

@sebsto
Last active November 2, 2016 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sebsto/c41461767273451cbdad to your computer and use it in GitHub Desktop.
Save sebsto/c41461767273451cbdad to your computer and use it in GitHub Desktop.
EB Command Line Tool Installation
# Set working directory
cd /home/ec2-user
# Install EB Command line tool
wget https://s3.amazonaws.com/elasticbeanstalk/cli/AWS-ElasticBeanstalk-CLI-2.6.3.zip
unzip AWS-ElasticBeanstalk-CLI-2.6.3.zip
sed -i -e "/PATH=/ aPATH=\$PATH:/home/ec2-user/AWS-ElasticBeanstalk-CLI-2.6.3/eb/linux/python2.7" /home/ec2-user/.bash_profile
chown -R ec2-user:ec2-user /home/ec2-user/.elasticbeanstalk && chown -R ec2-user:ec2-user /home/ec2-user/AWS-ElasticBeanstalk-CLI-2.6.3 && chmod 744 /home/ec2-user/AWS-ElasticBeanstalk-CLI-2.6.3/eb/linux/python2.7/eb
# Install Python 2.7
curl https://gist.githubusercontent.com/sebsto/2b7516a61db432ebe77c/raw/5f27c2e84ee5a48e43d88e0d9852693107acdb8e/gistfile1.sh | sh
# keep using python 2.6 for cfn-signal
sed -i s/python/python2.6/g /opt/aws/bin/cfn-signal
# re-install boto & co for python 2.7
pip install boto awscli
@sebsto
Copy link
Author

sebsto commented Dec 3, 2014

This is deprecated now that EB CLI 3.x is available
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-getting-set-up.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment