-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot get role ARN for current session #1408
Comments
Hi 7yn3r, |
@7ynk3r, I wrote the guide you referenced, so I'm interested in this issue because I've seen a few other EKS doc customers have this same STS timeout and I haven't been able to root cause it yet. You are not alone. @ballu510 can you be more specific about what in that issue applies to this one? It's hard to tell. Also, eksctl will happily name a cluster if a name is not provided, so I doubt that is related. eksctl should use the same credential chain as the AWS CLI, so if the AWS CLI works, so should eksctl. |
Hi @7yn3r - I simply created an IAM user with userName - eksadmin and granted Administrator access as you did and created cluster without any issue. Next, set credentials: [eksadmin] Config: Finally, ran below script with the profile set to eksadmin: [ℹ] eksctl version 0.7.0
|
Hi @ballu510, I've tried creating a brand new admin user, added it to a new profile on I have no directory About #57, looks similar but it's not the same issue. In that case they're able to create a cluster but not with a particular profile. Are you using a brand new AWS account? Do you have any roles created? I have only the followings Thanks for taking the time to look at this issue, I really appreciate it. |
Hi @7ynk3r, Ok - I created a new brand new account, created a user "testing" and assigned Admin access. eksctl create cluster --name backup --version 1.14 --nodegroup-name standard-workers --node-type t3.medium --nodes 3 --nodes-min 1 --nodes-max 4 --node-ami auto [✔] EKS cluster "backup" in "us-west-2" region is ready It created ./kube/config file for me.
Unable to create an issue that you are encountering. cheers |
Hi @ballu510, I've reviewed all the steps once again, I just created a brand new AWS account and the result is still the same...
I'm using macOS Mojave 10.14.1 Let me know if you know of anything else I can try. |
Hi I'm having the same problem. Any ideas of what could happen ? Is there a parsing failure of the ":" sign ? |
I found a workaround, I have to double quote the first ":" of the arn .... I can't understand why |
I don't why we have to set these environment variables to fix this error: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY |
@golgoth31 your workaround seems to work for me. I am running Ubuntu 19.10 with eksctl version: I have to remove the workaround after I create a cluster. Then everything just works normally. |
@7ynk3r @bluecough @golgoth31 I'd love to know if this is still a problem for you. but since I can't reproduce this, I have no way to confirm this might help. If you or anyone else is still having this problem, let us know here and feel free to try increasing the Closing for now. |
Hi, the problem has gone but I can't say when it has been resolved. |
Hi, Since I'm learning I didn't bother at first to create an IAM account and I was using a root with eksctl and one issue aside it was working fine. ( I was able to create a cluster ) I've encountered an RBAC issue which I was hoping an account other than root will help me solve. Using method described by @toahae above helped me solve this issue. ( ie. setting credentials via environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY ) |
Why do you have role here? Cant you create a cluster with an admin user, or a user which has admin rights? |
This field allows me to assume role from one account to an other. |
I had this error also. It turned out that I had a typo in the cluster's region: I was putting an extraneous dash in front: I was writing |
Confirmed what @watcher00090 found. My region was wrongly typed as -r us-west2 I fixed to -r us-west-2 and it worked. The error message is confusing. |
I faced same issue but it's worked when I changed --region=${AWS_REGION} to --region==us-east-2. Somehow its not picking up variable ${AWS_REGION}. |
Can confirm that my |
i tried these i added to ./aws/configure role_arn=aws":"iam..... still no result! same error! |
I'm getting started with EKS and I'm following Amazon guide
https://docs.aws.amazon.com/en_pv/eks/latest/userguide/getting-started-eksctl.html
I've defined an
Administrator
user under theAdministrators
group with the following policyand with it I've set
I'm able to
but the following fails
What am I missing?
The text was updated successfully, but these errors were encountered: