Create EKS Cluster with Terraform¶
install terraform¶
- https://developer.hashicorp.com/terraform/install
- this step has been included in setup-cloud9-for-eks
sample-create-3x-clusters-for-thanos-poc-¶
- 
get terraform template 
 
- 
execute function to create an existed host zone (../../CLI/awscli/route53-cmd) 
 
- 
need setup upstream domain registry from your labtop (git/git-mkdocs/CLI/awscli/route53-cmd) 
- 
terraform.tfvars 
 
- 
build environment 
 
- 
create ekscluster1, following output to save kubeconfig file 
 
- 
create ekscluster2 and ekscluster3 from their folder with same commands 
- 
in each eks cluster, will install following addons by argocd. access argocd svc url with default password saved in aws secret manager 
  
internal error¶
- re-run terraform applyif you got following errors
 │ * Internal error occurred: failed calling webhook "mservice.elbv2.k8s.aws": failed to call webhook: Post "https://aws-load-balancer-webhook-service.kube-system.svc:443/mutate-v1-service?timeout=10s": no endpoints available for service "aws-load-balancer-webhook-service" │ │ with module.eks_cluster.module.eks_blueprints_addons.module.cert_manager.helm_release.this[0], │ on .terraform/modules/eks_cluster.eks_blueprints_addons.cert_manager/main.tf line 9, in resource "helm_release" "this": │ 9: resource "helm_release" "this" {