Skip to content

Instantly share code, notes, and snippets.

@phillipsj
Created June 7, 2018 01:10
Show Gist options
  • Save phillipsj/c56589e7843cdc5a43b5b7d3654da1ab to your computer and use it in GitHub Desktop.
Save phillipsj/c56589e7843cdc5a43b5b7d3654da1ab to your computer and use it in GitHub Desktop.
Getting tools for using EKS
## Gets kubectl
echo "Fetching kubectl..."
kubectlUrl="https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
curl -o kubectl "$kubectlUrl"
echo "Making kubectl executable..."
chmod +x ./kubectl
echo "Moving kubectl to /usr/local/bin..."
sudo sudo mv ./kubectl /usr/local/bin/kubectl
## Get Heptio Authenticator for AWS
echo "Fetching heptio-authenticator-aws..."
heptioUrl="https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/bin/linux/amd64/heptio-authenticator-aws"
curl -o heptio-authenticator-aws "$heptioUrl"
echo "Making heptio-authenticator-aws executable..."
chmod +x ./heptio-authenticator-aws
echo "Moving heptio-authenticator-aws to /usr/local/bin..."
sudo mv ./heptio-authenticator-aws /usr/local/bin/heptio-authenticator-aws
## Gets the AWS CLI tools
echo "Installing AWS CLI tools..."
pip install awscli --upgrade --user
echo "Finished"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment