You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
975 B
Bash
45 lines
975 B
Bash
2 years ago
|
#!/usr/bin/env bash
|
||
|
# vim:ts=4:sts=4:sw=4:et
|
||
|
#
|
||
|
# Author: Hari Sekhon
|
||
|
# Date: 2022-05-17 16:02:53 +0100 (Tue, 17 May 2022)
|
||
|
#
|
||
|
# https://github.com/HariSekhon/DevOps-Bash-tools
|
||
|
#
|
||
|
# License: see accompanying LICENSE file
|
||
|
#
|
||
|
# https://www.linkedin.com/in/HariSekhon
|
||
|
#
|
||
|
|
||
|
# Installs Elastic Beanstalk CLI
|
||
|
#
|
||
|
# https://github.com/aws/aws-elastic-beanstalk-cli-setup
|
||
|
|
||
|
set -euo pipefail
|
||
|
[ -n "${DEBUG:-}" ] && set -x
|
||
|
srcdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||
|
|
||
|
# shellcheck disable=SC1090,SC1091
|
||
|
. "$srcdir/../lib/utils.sh"
|
||
|
|
||
|
# shellcheck disable=SC1090,SC1091
|
||
|
. "$srcdir/../lib/ci.sh"
|
||
|
|
||
|
section "Install Elastic Beanstalk CLI"
|
||
|
|
||
|
mkdir -pv ~/github
|
||
|
|
||
|
cd ~/github
|
||
|
|
||
|
if [ -d aws-elastic-beanstalk-cli-setup ]; then
|
||
|
pushd aws-elastic-beanstalk-cli-setup
|
||
|
git pull
|
||
|
popd
|
||
|
else
|
||
|
git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git
|
||
|
fi
|
||
|
|
||
|
python3="$(type -P python3)"
|
||
|
|
||
|
"$python3" ./aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py -p "$python3"
|