-
Notifications
You must be signed in to change notification settings - Fork 12
/
install-aws.sh
executable file
·37 lines (28 loc) · 788 Bytes
/
install-aws.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# Installs aws command line interface. It is needed by uber-build to upload a releaese to S3.
source "$(pwd)/uber-build-config.sh"
VERSION="14.0.6"
PYTHON=$(which python | tail -n 1)
# Installation directory for virtualenv
ENV="."
# Install virtualenv
mkdir -p "$AWS_DIR"
cd "$AWS_DIR" || exit
curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-${VERSION}.tar.gz
tar xfz virtualenv-${VERSION}.tar.gz
$PYTHON virtualenv-$VERSION/virtualenv.py $ENV
# Enter virtualenv
source $AWS/activate
# Install aws tools
pip install awscli
# Asks to add credentials
aws configure
# Leave virtualenv
deactivate
echo ""
echo "Installation of aws environment succeeded."
echo "Enter with:"
echo " $ source $AWS/activate"
echo "Leave with:"
echo " $ deactivate"