How do I solve the error "I need to log in to an error server (unauthored)" when connecting to Amazon EKS cluster from CodeBuild?

AWS Identity and Access Management (IAM) Authenticator では、設定マップで使用されている Amazon リソースネーム (ARN) ロールのパスは許可されません。aws-auth ConfigMap のロール ARN (rolearn) にパスが含まれている場合、Amazon EKS は次のエラーを返します。

"Error:" Error: You need to log in to the server (Unauthorized) ""

CodeBuildからAmazon EKSクラスターに接続する際の「エラーサーバーにログインする必要があります (Unauthorized)」というエラーを解決するには、どうすればよいですか。

CodeBuild サービスロール ARN には、 /service-role というパスが含まれています。aws-auth ConfigMap で rolearn の値を指定する場合、 /service-role パス、または別のロールを使用している場合はその他のパスを削除する必要があります。詳細については、「クラスターのユーザーまたはIAMロールの管理」を参照してください。

If an error occurs after deleting any path from the role arn in AWS-Auth Configmap, follow the procedure in the following article.How can I solve an illegal server error when connected to the Amazon EKS API server?

Related Articles