Skip to content

Commit

Permalink
[internal] Switch to AWS CLI v2 (pantsbuild#14095)
Browse files Browse the repository at this point in the history
  • Loading branch information
asherf authored Jan 6, 2022
1 parent aa0932a commit 2ecc826
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build-support/bin/install_aws_cli_for_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ if [[ ! -x "${AWS_CLI_BIN}" ]]; then
TMPDIR=$(mktemp -d)

pushd "${TMPDIR}"

curl --fail "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
curl --fail "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
# NB: We must run this with python3 because it defaults to `python`, which refers to Python 2 in Linux GitHub
# Actions CI job and is no longer supported.
python3 ./awscli-bundle/install --install-dir "${AWS_CLI_ROOT}"
python3 ./aws/install --install-dir "${AWS_CLI_ROOT}"

popd

Expand Down

0 comments on commit 2ecc826

Please sign in to comment.