-
Notifications
You must be signed in to change notification settings - Fork 466
NoCredentialProviders: no valid providers in chain #94
Comments
@rclayton-the-terrible are you still seeing this issue? |
@aaronlevy Honestly, I've stop trying. The closest I got to a full Kubernetes deployment on AWS was mirroring Kelsey's Terraform scripts. Since then, I've gotten really busy in development and haven't put any effort into it. |
@rclayton-the-terrible if you get some time to come back to this, and you're still having issues, please let us know. I'm gonna close this for now, but feel free to re-open. Also, just as a note, a quick way to get started deploying a cluster to AWS should be using the defaults in our quickstart guide: https://coreos.com/kubernetes/docs/latest/kubernetes-on-aws.html#kube-aws-quickstart |
It might be related to: aws/aws-sdk-go#345 |
@rclayton-the-terrible Saw this was linked to the SDK. It looks like coreos-kubernetes is using a fairly old version of the SDK (0.9.5) But I've verified that this version of the SDK should be returning the configured role credential. You can run the following curl commands on the EC2 host to see what error the SDK is running into.
The AWS SDK for Go has aws/aws-sdk-go#413 to improve this error message. |
I ran into this issue yesterday. Using the latest version of kube-aws and my credential file is set up correctly. |
+1 having this issue as well. Anything we can do to help debug? EDIT: Doh! This was my fault for trying to do this from home. This message appeared when I had invalid (or in my case totally missing) AWS credentials. Make sure you can run something like |
I also experienced the error.
I was using Fixed the issue by making sure that a |
/cc @colhom |
@aymanosman if you have multiple aws credentials in your The "more direct" way is to just export AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY etc environment variables, rather than deal with the credentials chain. |
@colhom I was under the (presumably false) impression that http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html. I have no idea how much work it is to support multiple profiles in this way. It's not a major issue. |
The docs for the go sdk (https://github.com/aws/aws-sdk-go) seams to make no mention of AWS_DEFAULT_PROFILE which suggests that is isn't supported. So it is not an issue with this repo. EDIT: In fact, support has been ruled out :) aws/aws-sdk-go#554. EDIT2: Omg, apparently you can use |
@colhom, The AWS SDK for Go only supports the If you set env |
I'm also getting the issue. I followed instructions mentioned in https://coreos.com/kubernetes/docs/latest/kubernetes-on-aws.html. I tried v0.4.1, 0.4.0 but no luck. |
Ref: #303 |
@DImuthuUpe This error means the aws sdk isn't picking up your credentials correctly. The docs have been updated with instructions for how to configure them. I'm going to consider this fixed by the documentation update, but we'll enable verbose credential errors as well: #368. Feel free to reopen if there's any more trouble. edit: I don't actually have issue closing. @colhom can you close this and #303? |
"Failed creating cluster: NoCredentialProviders: no valid providers in chain" - keep getting this error. Noticed that there was a similar issue registered in the AWS GO SDK.
The text was updated successfully, but these errors were encountered: