Launch EKS

DO NOT PROCEED with this step unless you have validated the IAM role in use by the Cloud9 IDE. You will not be able to run the necessary kubectl commands in the later modules unless the EKS cluster is built using the IAM role.


How do I check the IAM role on the workspace?

Expand here to see the solution

Create an EKS cluster

The following command will create an eks cluster with the name eksworkshop-eksctl .It will also create a nodegroup with 2 on-demand instances.

eksctl create cluster --version=1.14 --name=eksworkshop-eksctl --nodes=2 --alb-ingress-access --region=${AWS_REGION} --node-labels="lifecycle=OnDemand,intent=control-apps" --asg-access

eksctl allows us to pass parameters to initialize the cluster. While initializing the cluster, eksctl does also allow us to create a nodegroup. The nodegroup will have two m5.large nodes and it will bootstrap with the labels lifecycle=OnDemand and intent=control-apps.

Launching EKS and all the dependencies will take approximately 15 minutes