HowTo: Install AWS CLI - Amazon Elastic Load Balancing (ELB)
The Amazon Elastic Load Balancing API Tools are used for setting up load balancers for your EC2 instances.
The Amazon Elastic Load Balancing API Tools require Java 1.5 or greater and require the following environment variables to be set:
JAVA_HOME
- HowTo: Install JavaAWS_CREDENTIAL_FILE
or (EC2_CERT
andEC2_PRIVATE_KEY
) - HowTo: Install AWS CLI - Security CredentialsAWS_ELB_HOME
- This article
Install Script
If you’re running Linux, this script will do everything this article covers: install_elb.sh from our aws_scripts collection. Be sure to run it as root or use sudo
.
Git Repository
Checkout the repository. This only needs to be done once throughout this series of articles.
Console - user@hostname ~ $
1
git clone https://bitbucket.org/dowdandassociates/aws_scripts.git
Run install script
Console - user@hostname ~ $
1
sudo aws_scripts/install_aws_cli/install_elb.sh
Direct Download of Script
Console - user@hostname ~ $
1
curl -L https://bitbucket.org/dowdandassociates/aws_scripts/raw/master/install_aws_cli/install_elb.sh | sudo bash
Install Process
Create the directory in which to download the software if it does not already exist.
Console - root@hostname ~ #
1
mkdir -p /tmp/aws
Create the directory in which to install the software if it does not already exist.
Console - root@hostname ~ #
1
mkdir -p /opt/aws
Download the software.
Console - root@hostname ~ #
1
2
3
curl --silent \
--output /tmp/aws/ElasticLoadBalancing.zip \
http://ec2-downloads.s3.amazonaws.com/ElasticLoadBalancing.zip
Delete any previous unzips of the software that may exist.
Console - root@hostname ~ #
1
rm -fR /tmp/aws/ElasticLoadBalancing-*
Unzip the software.
Console - root@hostname ~ #
1
unzip -d /tmp/aws /tmp/aws/ElasticLoadBalancing.zip
Delete any previously installed versions.
Console - root@hostname ~ #
1
rm -fR /opt/aws/ElasticLoadBalancing
Move the unzipped directory into the install directory.
Console - root@hostname ~ #
1
mv /tmp/aws/ElasticLoadBalancing-* /opt/aws/ElasticLoadBalancing
Delete the .zip
file.
Console - root@hostname ~ #
1
rm -f /tmp/aws/ElasticLoadBalancing.zip
Set AWS_ELB_HOME
, and put the tools into the path.
Console - root@hostname ~ #
1
2
3
4
cat <<'EOF'>/etc/profile.d/ElasticLoadBalancing.sh
export AWS_ELB_HOME=/opt/aws/ElasticLoadBalancing
export PATH=$PATH:$AWS_ELB_HOME/bin
EOF
References
Parts in this series
- HowTo: Install AWS CLI
- HowTo: Install AWS CLI - Prerequisites
- HowTo: Install AWS CLI - Security Credentials
- HowTo: Install AWS CLI - AWS Command Line Interface
- HowTo: Install AWS CLI - Amazon Auto Scaling
- HowTo: Install AWS CLI - Amazon CloudFormation
- HowTo: Install AWS CLI - Amazon CloudFront
- HowTo: Install AWS CLI - Amazon CloudWatch
- HowTo: Install AWS CLI - Amazon ElastiCache
- HowTo: Install AWS CLI - Amazon Elastic Compute Cloud (EC2) - AMI Tools
- HowTo: Install AWS CLI - Amazon Elastic Compute Cloud (EC2) - API Tools
- HowTo: Install AWS CLI - Amazon Elastic Load Balancing (ELB)
- HowTo: Install AWS CLI - Amazon Elastic MapReduce Ruby Client
- HowTo: Install AWS CLI - Amazon Identity and Access Management (IAM)
- HowTo: Install AWS CLI - Amazon Relational Data Services (RDS)
- HowTo: Install AWS CLI - Amazon Route 53 - cli53
- HowTo: Install AWS CLI - Amazon Route 53 - dnscurl.pl
- HowTo: Install AWS CLI - Amazon Simple Email Service (SES)
- HowTo: Install AWS CLI - Amazon Simple Notification Service (SNS)
- HowTo: Install AWS CLI - Amazon Simple Storage Service (S3) - s3cmd
- HowTo: Install AWS CLI - Amazon Simple Storage Service (S3) - s3curl.pl