Last active
November 2, 2016 10:59
-
-
Save sebsto/c41461767273451cbdad to your computer and use it in GitHub Desktop.
EB Command Line Tool Installation
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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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