commitdev / zero-aws-eks-stack

zero module for a basic AWS kubernetes stack on EKS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix issues with k8s auth when multiple users run the terraform

bmonkman opened this issue · comments

Sometimes we are hitting cases where someone running the terraform gets "Unauthorized", which is due to how AWS gives special access to the person who creates an EKS cluster.
We should be able to work around this by creating the cluster with an assumed role instead of a user token, then always use that role for operations on the cluster.