Is not authorized to perform: iam:PassRole on resource: arn:aws:iam::227680169240:role/EKS_Role

User: arn:aws:iam::227680169240:user/kk_labs_user_329731 is not authorized to perform: iam:PassRole on resource: arn:aws:iam::227680169240:role/EKS_Role

While creating an EKS cluster in AWS, I encountered an error. , and also attached screenshot of the error. and I can’t log AWS CLI using IAM Access and secret key, Could you please help me resolve it.

You cannot create managed node groups, and you need to use specific roles on the playground.

Please follow one of these two guides to deploy EKS

hi @ Alistair Mackay, Thanks for you reply now I can able to create EKS Cluster in AWS Playground, but I can’t able to create NodeGroups in EKS, I got error like below, could you please help me to resolve it ?

User: arn:aws:iam::511964875546:user/kk_labs_user_363693 is not authorized to perform: eks:CreateNodegroup on resource: arn:aws:eks:us-east-1:511964875546:cluster/demo-eks with an explicit deny

1 Like

You are trying to create a managed node group. As mentioned above, you cannot do this.
Please follow the playground series guide above to learn how to create an unmanaged node group.

Hi @Alistair_KodeKloud,

I am doing the KodeKloud Engeers aws Level 3 Task 10

followed the steps as shown in the above link but I am unable to create EKS cluster facing similar error

.

Here is the config screenshot of the EKS

seems to be bug with the Task.

I was able to create the cluster with this role, I was able to cluster

{
“Version”: “2012-10-17”,
“Statement”: [
{
“Effect”: “Allow”,
“Principal”: {
“Service”: “eks.amazonaws.com
},
“Action”: “sts:AssumeRole”
}
]
}

AutoNodeRole is for managed nodes which are not permitted by our AWS accounts. I cannot imagine the task will direct you to create the same.
Configure the cluster as per our playground instructions and it should launch.