Skip to content

Instantly share code, notes, and snippets.

@hsm207
Last active April 28, 2020 16:48
Show Gist options
  • Save hsm207/e934398c7112d7515d757d1898712f3d to your computer and use it in GitHub Desktop.
Save hsm207/e934398c7112d7515d757d1898712f3d to your computer and use it in GitHub Desktop.
Install eksctl
#!/bin/bash
# from: https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html
# download and extract the latest version of eksctl (including prerelease)
# from: https://gist.github.com/steinwaywhw/a4cd19cda655b8249d908261a62687f8
LATEST_EKSCTL=`curl -s https://api.github.com/repos/weaveworks/eksctl/releases |
jq ".[0].assets | map(select(.name == \"eksctl_Linux_amd64.tar.gz\")) | .[0].browser_download_url" |
tr -d '"'`
echo "Downloading eksctl from" $LATEST_EKSCTL
curl --location $LATEST_EKSCTL |
tar xz -C /tmp
# move the extracted binary
sudo mv /tmp/eksctl /usr/local/bin
# install autocomplete
. <(eksctl completion bash)
# test if installation is successful
eksctl version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment