To create a cluster using Terraform i used this files main.tf and varibale.tf copy this two files do the changes like region and credentails . terraform init terraform plan sudo terraform apply
Apply complete! Resources: 62 added, 0 changed, 0 destroyed.
Outputs:
cluster_endpoint = "https://8.gr7.ap-south-1.eks.amazonaws.com" cluster_name = "demoeks-" cluster_security_group_id = "sg-**" region = "ap-south-1"