Difference between revisions of "Deploy EKS cluster using Terraform"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
  
 
* Module: https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest
 
* Module: https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest
 +
** 29 resources:
 +
** <code>[[aws_eks_cluster]]</code>
 
* Tutorial: https://learn.hashicorp.com/tutorials/terraform/eks
 
* Tutorial: https://learn.hashicorp.com/tutorials/terraform/eks
  

Revision as of 02:40, 16 February 2022


Example

git clone https://github.com/hashicorp/learn-terraform-provision-eks-cluster
cd learn-terraform-provision-eks-cluster
terraform init #It may take several minutes
terraform apply
(Terraform EKS apply output)


kubectl get nodes
The connection to the server localhost:8080 was refused - did you specify the right host or port?

Configure it:
aws eks --region $(terraform output -raw region) update-kubeconfig --name $(terraform output -raw cluster_name)
Added new context arn:aws:eks:us-east-2:XXXXXXX:cluster/myeks-eks-xxxx to /Users/youruser/.kube/config
Example: terraform show (grep resource) in EKS

Related

See also

Advertising: