Day 43: Scaling and Managing Kubernetes Clusters with Amazon EKS

I create the cluster Node IAM role is mandatory, but the provided user does not have access to pass Node IAM role . Please suggest something to mitigate the error.

Error : User: arn:aws:iam::828760031905:user/kk_labs_user_845576 is not authorized to perform: iam:PassRole on resource: arn:aws:iam::828760031905:role/eksNodeRole because no identity-based policy allows the iam:PassRole action

I was able to start the creation, removing the node groups selected by default and not creating the eksNodeRole. However, after the EKS is in “Creating” status, it briefly transitions to “Active” and then to “Deleting”. I’m reviewing the CloudTrail event, looking for any clues.

It’s something with the “Auto mode”. Refer to this answer.

After disabling this I was able to complete the tasks