Skip to content

1.4 Setting up EKS Cluster using Terraform

tanya-sapra edited this page Dec 4, 2021 · 3 revisions

In this Lab we will be creating EKS Cluster using Terraform

Prerequisites

  • AWS Account with IAM Permissions
  • A configured AWS CLI
  • AWS IAM AUthenticator
  • kubectl
  • wget

Setting up EKS CLuster

  1. Clone the following repository
https://github.com/OT-TRAINING/EKS.git

Once the clone is completed go inside the directory and go to terraform.

  1. Initialize Terraform workspace using the command:
terraform init
  1. Now, we will provision the EKS Cluster by running the command:
terraform apply
  1. You can now verify that your EKS CLuster is created by going to the AWS Management Console and log in.

  2. Search for "Elastic Kubernetes Service" in AWS Search and you should see your cluster created for you.