Difference between revisions of "Aws eks update-kubeconfig --name YOUR-EKS-CLUSTER-NAME --region aws-region --role-arn"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
  [[aws eks update-kubeconfig]] --name eks-cluster-name --region aws-region [[--role-arn]] you-may-use-a-nonexistan-role-and-command-will-not-fail
 
  [[aws eks update-kubeconfig]] --name eks-cluster-name --region aws-region [[--role-arn]] you-may-use-a-nonexistan-role-and-command-will-not-fail
 +
[[Added new context]] .../...
 +
 +
== Errors ==
 +
[[An error occurred (AccessDenied) when calling the AssumeRole operation]]: User: arn:aws:iam::1234567890:user/your-user is not authorized to perform: [[sts:AssumeRole]] on resource: arn:aws:iam::1234567890:[[role/]]your-cluster-202312131231231
  
 
== Related ==
 
== Related ==
 
* [[How do I resolve an unauthorized server error when I connect to the Amazon EKS API server?]]
 
* [[How do I resolve an unauthorized server error when I connect to the Amazon EKS API server?]]
 +
:<code>[[--role-arn]] arn:aws:iam::012345678910:role/eks-service-role-AWSServiceRoleForAmazonEKS-J7ONKE3BQ4PI</code>
 +
 +
* <code>[[aws sts get-caller-identity]]</code>
 +
* <code>[[~/.kube/config]]</code>
 +
* <code>[[aws eks get-token]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 17:08, 27 May 2024

aws eks update-kubeconfig --name eks-cluster-name --region aws-region --role-arn you-may-use-a-nonexistan-role-and-command-will-not-fail
Added new context .../...

Errors[edit]

An error occurred (AccessDenied) when calling the AssumeRole operation: User: arn:aws:iam::1234567890:user/your-user is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::1234567890:role/your-cluster-202312131231231

Related[edit]

--role-arn arn:aws:iam::012345678910:role/eks-service-role-AWSServiceRoleForAmazonEKS-J7ONKE3BQ4PI

See also[edit]

Advertising: