Terraform artifacts to create EKS Cluster with Worker Nodes
-
Install and Configure AWS CLI
-
Install kubectl (AWS EKS Version)
-
Install AWS Authenticator for EKS
- Download required plugins (AWS in this case)
terraform init
- See the list of resources going to be created
terraform plan
- Create EKS Cluster along with Worker Nodes and dependent resources.
terraform apply -auto-approve
- Create a KubeConfig File
terraform output kubeconfig >> Config
- Create config_map_aws_auth.yaml which adds Worker Nodes to EKS Cluster
terraform output config_map_aws_auth >> config_map_aws_auth.yaml
- Add Worker Nodes to EKS Cluster
kubectl apply -f config_map_aws_auth.yaml
terraform destroy -force
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.