Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs to include EKS cluster creation permissions #220

Open
SaxyPandaBear opened this issue May 11, 2023 · 2 comments
Open

Update docs to include EKS cluster creation permissions #220

SaxyPandaBear opened this issue May 11, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@SaxyPandaBear
Copy link
Contributor

Error: creating EKS Cluster (cwagent-eks-integ-742c94a460e0d907): AccessDeniedException: User: [ARN] is not authorized to perform: eks:CreateCluster on resource: arn:aws:eks:us-west-2:***:cluster/cwagent-eks-integ-742c94a460e0d907

The public docs say to attach the AmazonEKSClusterPolicy, but I didn't see that you must also create an EKS cluster IAM role: https://docs.aws.amazon.com/eks/latest/userguide/service_IAM_role.html#create-service-role

I'm not sure if we really care to create a whole new role, and it sucks that there isn't a managed policy for this. We should include the necessary permissions in the existing set up documentation

@SaxyPandaBear SaxyPandaBear added the documentation Improvements or additions to documentation label May 11, 2023
@SaxyPandaBear
Copy link
Contributor Author

Another thing that is missing is trust relationship for the EKS service principal. This needs to be updated in

assume_role_policy = <<EOF

InvalidParameterException: Following required service principals [eks.amazonaws.com] were not found in the trust relationships of clusterRole arn:aws:iam::***:role/cwa-e2e-iam-role

@SaxyPandaBear
Copy link
Contributor Author

The docs don't properly reflect the necessary changes. Frustrating. I've been patching this by adding an inline eks:* permission on the Terraform IAM role.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant