Skip to content

jaysalpatel/terraform-eks-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a EKS cluster using Terraform

  1. initialize the terraform workspace terraform init
  2. for outlining the state change terraform plan
  3. provision the EKS cluster terraform apply

###set to another git repo when git init delete git rm -rf .git ##reset previous commits git reset --hard ###Have trouble with pushing to Github repo ###How to remove remote origin from Git repo git remote set-url origin git://new.url.here

or remove it git remote remove origin

###Problems: Resources not being created with terraform scripts because of amazoneksclusterpolicy, amazonEKSWorkerNodePolicy, amazonAWSServicePolicy, AmazonEKS_CNI_policy not attached to the user

Error: AWS cli handling config files a little more robustly aws eks --region us-east-1 update-kubeconfig --name eks-cluster

'NoneType' object is not iterable

Solution:

//Start with fresh file rm ~/.kube/config

//Update with the context you want aws eks update-kubeconfig --name eks-cluster --region us-east-1

//Use kubectl to delete the context kubectl config delete-context arn:aws:eks:us-east-1:536510685689:cluster/eks-cluster

//reapply the config aws eks update-kubeconfig --name eks-cluster --region us-east-1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages