Skip to content

Commit

Permalink
Install eksctl
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Jul 9, 2024
1 parent 34ab701 commit 070bdec
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cloud.bash
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ else
echo "aws is already installed."
fi


if ! command -v eksctl &> /dev/null; then
# https://eksctl.io/installation/
ARCH=amd64
PLATFORM=$(uname -s)_$ARCH

curl -sLO "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_$PLATFORM.tar.gz"

# (Optional) Verify checksum
curl -sL "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_checksums.txt" | grep $PLATFORM | sha256sum --check

tar -xzf eksctl_$PLATFORM.tar.gz -C /tmp && rm eksctl_$PLATFORM.tar.gz

sudo mv /tmp/eksctl /usr/local/bin
else
echo "eksctl is already installed."
fi


if ! command -v az &> /dev/null; then
# https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Expand Down

0 comments on commit 070bdec

Please sign in to comment.