AWS EKS setup


Prerequisite

  • understanding of docker and kubernetes
  • ready application image in docker hub or AWS ECR
  • kubectl setup
  • aws cli setup

Create IAM User

Login to AWS console using your root account and create an IAM user for EKS administration.

  • Give the user a name
  • provide both access : Programmatic and Console
  • don’t worry about the permissions now
  • Note down all secrets
  • Login to console with this new account
  • Setup aws cli with this new account
  • Add inline policy to iam user for cloud formation
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["cloudformation:CreateStack"],
      "Resource": ["*"]
    }
  ]
}

Cluster and Node Group

Follow this tutorial

https://docs.aws.amazon.com/eks/latest/userguide/getting-started-console.html

AWS LB Controller

Follow this tutorial

https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html