Skip to content

Commit

Permalink
Install awscli tool for circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Jul 13, 2021
1 parent 1c2b304 commit c6423f8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/circleci-upload-to-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ FILE_COUNT=$(find "${CT_REPORTS}" -type f | wc -l)
echo "Uploading $FILE_COUNT files"
ls $CT_REPORTS

if which aws ; then
echo "aws tool ready"
else
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
fi

aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
aws configure set default.region $AWS_DEFAULT_REGION
Expand Down

0 comments on commit c6423f8

Please sign in to comment.