MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

AWS Tutorials: How to manually grant your Federated IAM User access to kubectl in AWS EKS?

Thanks for pointing that out! The AWS EKS authentication method has changed in 2026, and the aws-auth ConfigMap is no longer used for adding IAM roles. Instead, IAM Access entries are managed under the Access tab in the AWS Console.

Here are the updated steps to manually grant your Federated IAM User access to kubectl in AWS EKS.

Amazon EKS cluster Access tab with IAM access entries and the Create access entry button circled

โœ… Step 1: Identify Your Federated IAM Role

  1. Go to AWS Console โ†’ IAM โ†’ Roles
  2. Find the IAM Role associated with your Federated User (SSO/Federated Access).
  3. Copy the Role ARN, which looks like: arn:aws:iam::329599659644:role/<Federated-Role-Name>

EKS Configure IAM access entry page with IAM principal ARN field and Standard type selected

โœ… Step 2: Add the Federated IAM Role in EKS “Access” Tab

  1. Go to AWS Console โ†’ EKS โ†’ Your Cluster (evp-dev-eks)
  2. Click the Access tab.
  3. Click “Add IAM access entry”.
  4. Select IAM Role.
  5. Paste your Federated Role ARN (arn:aws:iam::329599659644:role/<Federated-Role-Name>).
  6. Assign a Cluster Role:
    • Choose Administrator Access (Full kubectl permissions) โ†’ system:masters
    • Alternatively, choose Read-Only Access (View-Only role).
  7. Click “Save Changes”.

โœ… Step 3: Attach Required IAM Policies to the Federated Role

Your Federated IAM Role must have the following policies:

Attach Policies to Your Role

  1. Go to AWS Console โ†’ IAM โ†’ Roles โ†’ <Federated-Role-Name>
  2. Click Permissions โ†’ Attach Policies
  3. Add the following policies:
    • โœ… AmazonEKSClusterPolicy
    • โœ… AmazonEKSWorkerNodePolicy
    • โœ… AmazonEKSServicePolicy
    • โœ… eks:AccessKubernetesApi
  4. Click Attach Policy.

โœ… Step 4: Update kubeconfig for Federated User

Once IAM access is set, update your local kubeconfig to reflect the changes:

aws eks update-kubeconfig --name evp-dev-eks --region ap-northeast-1 --role-arn arn:aws:iam::329599659644:role/<Federated-Role-Name>
Code language: HTML, XML (xml)

Then test access:

kubectl get nodes
Code language: JavaScript (javascript)

โœ… Step 5: Verify Access

If kubectl get nodes still fails, check:

kubectl auth can-i list nodes --all-namespaces --verbose
Code language: PHP (php)
  • If “yes”, you have access.
  • If “no”, IAM role or permissions need adjustment.

๐ŸŽฏ Summary of AWS 2026 EKS Changes

โœ… The aws-auth ConfigMap is no longer used.
โœ… IAM roles/users are now added via EKS “Access” Tab.
โœ… Federated users need IAM role-based access via IAM access entries.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

EKS error: You must be logged in to the server (Unauthorized)

You should not create the cluster with root account. Instead create a user or if you want to install EKS with aws cli create IAM role for…

Read More

EKS cluster setup error: the server doesn’t have a resource type “services

When an Amazon EKS cluster is created, the IAM entity (user or role) that creates the cluster is added to the Kubernetes RBAC authorization table as the…

Read More

How to setup Kubernetes AWS Gateway API Controller on Amazon EKS?

The AWS Gateway API Controller lets you use Kubernetes Gateway API resources (Gateway, HTTPRoute, GRPCRoute) on Amazon EKS. Instead of creating a load balancer, the controller turns…

Read More

Kubernetes: How to Run a Pod and Get the EGRESS IP Address KubernetesEKS

1. Deploy a Pod to Your Cluster You can launch a simple Pod using the kubectl run command. For example, to run an NGINX Pod: bashkubectl run…

Read More

Kubernetes: Deploying AWS Load Balancer Controller with Terraform

Absolutely, deploying the AWS Load Balancer Controller (ALB Controller) in production via Terraform is now a very common, robust, and recommended practice. There are official Terraform modules…

Read More

What is OIDC identity provider?

Great question! Hereโ€™s a clear, non-technical explanation and then a technical one for OIDC identity provider, especially in the context of Kubernetes and AWS. In Simple Words:…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x