Create an EKS cluster With Terraform | Modules vs. No Modules
In this video, I demo how to create an EKS cluster and its required resources using Terraform. The first part focuses on creating the cluster with individual Terraform resources, while the second part covers creating these resources using the VPC and EKS modules. Links to the topics covered in this video are available below. #kubernetes #terraform #devops Code used in this video available here - https://github.com/gurlal-1/devops-avenue/tree/main/yt-videos/eks-terraform EKS Cluster IAM - https://docs.aws.amazon.com/eks/latest/userguide/cluster-iam-role.html Terraform EKS Resource - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_cluster EKS Fargate Role - https://docs.aws.amazon.com/eks/latest/userguide/using-service-linked-roles-eks-fargate.html Node Group Role - https://docs.aws.amazon.com/eks/latest/userguide/create-node-role.html VPC Module - https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/latest EKS- Module - https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest 00:00 Intro 00:24 Infra diagram 01:09 Topics Not Covered 02:23 Set up diff dirs ******CREATE EKS WITHOUT MODULES******** 02:39 Start Without Modules 02:45 Define AWS provider 03:44 Initialize terraform dir 04:19 Define VPC resource 05:41 Define VPC subnets 06:44 Define NAT GW, IGW & EIP resources 07:32 Define routes 08:17 Define Route Association 09:28 Create VPC & its Components - terraform apply 09:57 Review Created resources 10:24 VPC's Default Resources 11:44 Define EKS Cluster IAM role 12:40 Define EKS Cluster 16:45 Review & Create EKS Cluster 19:35 Configure Client for EKS Cluster 20:25 Define Fargate Profile for Worker Nodes 22:14 Define Required tags for private subnets 23:52 Review & Create Fargate Profile 27:10 Define Node Groups Role 27:58 Define Node Group 29:41 Review & Create Node Group ******CREATE EKS WITHOUT MODULES******** 33:06 Start With Terraform Modules 33:43 Define AWS provider 35:25 Define VPC with VPC Module 40:32 Review & Create VPC 43:10 Define EKS Cluster with EKS Module 47:42 Override default inputs for Module 49:33 Review & Create EKS Cluster 52:19 Define Node Group in EKS Module 54:35 Review & Create Node Group 58:17 Define Fargate Profile in EKS Module
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.