Client Platform used : Ubuntu
Install wget using "sudo apt-get install wget"
Platform: Ubuntu
- Update repository
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
- Add Hashicorp GPG key
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
- Add the official HashiCorp Linux repository.
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
- Update repo and install terraform CLI
sudo apt-get update && sudo apt-get install terraform
- Verify terraform installation
terraform -help
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install
Cofigure IAM Details and region specs using command "aws configure" (without quotes)
- Download latest Release
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
- Install
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
- Validate
kubectl version --client
- Clone the repo
https://github.com/darthidi0t/learn-terraform-provision-eks-cluster
cd learn-terraform-provision-eks-cluster
- Initialize the workspace
terraform init
- Start deployment
terraform apply
- Configure Kubectl
aws eks --region
Feel free to run sample apps or any apps on this EKS Cluster.
- To delete the deployment
terraform destory