Skip to content

Conversation

@int128
Copy link
Member

@int128 int128 commented Jan 21, 2025

To reduce a time to download and install aws-cli, skip it if aws command is available.

@int128 int128 marked this pull request as ready for review January 21, 2025 01:51
@int128 int128 requested review from a team and 44smkn and removed request for a team January 21, 2025 01:51
@int128 int128 merged commit df487d4 into main Jan 21, 2025
3 checks passed
@int128 int128 deleted the int128-patch-1 branch January 21, 2025 03:52
@ankurk91
Copy link

This solution is not working well, it is gives an warning like

image

Here is the better solution

set -eux
if command -v aws &> /dev/null; then
  aws --version
  exit
fi

cd "$(mktemp -d)"
curl -sf "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o awscliv2.zip
unzip -q awscliv2.zip
sudo ./aws/install --update
aws --version

Would u accept a PR for the same?

@ankurk91
Copy link

ended up with creating my own action 😅
https://github.com/ankurk91/install-aws-cli-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants