Skip to content

Instantly share code, notes, and snippets.

@lioneltchami
Last active October 10, 2024 04:00
Show Gist options
  • Select an option

  • Save lioneltchami/9d94d47f2fec0bc37296959f8cf423a7 to your computer and use it in GitHub Desktop.

Select an option

Save lioneltchami/9d94d47f2fec0bc37296959f8cf423a7 to your computer and use it in GitHub Desktop.

1. AWS CLI Installation script

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

2. Check our AWS CLI version

aws --version

3. AWS EKS installation script

curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
sudo mv /tmp/eksctl /usr/local/bin 
eksctl version
echo "eksctl Installed successfully installer"

4. Installing kubectl

curl -O https://s3.us-west-2.amazonaws.com/amazon-eks/1.27.1/2023-04-19/bin/linux/amd64/kubectl
chmod +x ./kubectl
mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$HOME/bin:$PATH
echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc
kubectl version --short --client

5. Command to our create our AWS EKS Cluster using eksctl

eksctl create cluster - name <name-of-cluster> - nodegroup-name <nodegrpname> - node-type <instance-type> - nodes <no-of-nodes>
eksctl create cluster - name django_cluster - nodegroup-name ng-test - node-type t3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment