-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
NoCredentialProviders: no valid providers in chain #962
Comments
What does your aws config look like? I would be willing wager that your aws config is default to some region, while kops defaults to us-east-1 #L41 More information on your aws config can be found here There is a PR out to override this behavior #961 with an env var, although I think we need to give the I think a more robust patch is due here.. I will see about adding it... Detection stepsCan you please add a bucket to |
Hi @kris-nova, Indeed my default region is Then i changed my default region to us-east-1 but it didn't help
|
I am having the same issue,
|
The default region shouldn't matter - the only time it's a problem is if you don't have access to us-east-1 (i.e. if you're running with a china/govcloud account) Can you (both) confirm that you're setting @voyalab can you confirm that |
Hey, just tacking on here that I am seeing this as well. Just migrating from kube-up (finally) and I'm seeing this as well.
I can confirm that AWS_PROFILE is not set on my computer, only AWS_S3_BUCKET which I was using previously with kube-up:
Running with v1.4.4 EDIT: also, aws config:
|
Found out that it was somewhat of a dupe of #855 (comment). Permissions on |
Can we close? |
Not sure if this resolves the problem for anyone else but sure I guess |
I am getting an error where kops will work with the env variables and not the config file. I am building off of master, and the account is running TFA. |
I'll test it again and i'll keep you updated. |
I still get the same error. Should i open a new issue ?
Note: i'm using a MFA authentication |
I was using kops 1.4.1 previously. I solved that problem by providing necessary IAM roles. Also I upgraded version of KOPS 1.4.4 . @justinsb @kris-nova Unfortunately , There is no documentation for IAM roles. |
Can anybody help me withbelow error message: Since I am new to K8s deployment I might be doing silly mistake please bare me with it. error reading cluster configuration "dev.k8scluster.com": error reading s3://storage.dev.k8ss.com/dev.k8scluster.com/config: Unable to list AWS regions: NoCredentialProviders: no valid providers in chain |
you must export the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, and it is not helpful even you already set it on ~/.aws/config |
I'm having the same issue. Essentially, when using AWS_PROFILE I'm forced to set both AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (as @debu99 said); even though my credentials are configured on ~/.aws/credentials, kops will fail. Example, here's my config:
With this configuration and just AWS_PROFILE=admin set, But kops fails:
However, if I set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, it works:
In case it's relevant:
|
I think the SDK doesn't load all AWS shared config(~/.aws/config) as default, which causes error 'EnvAccessKeyNotFound: failed to find credentials in the environment'. |
root@ip-172-31-85-125:/home/ubuntu# kops create cluster --name EKS3 --state=s3://borel1 --zones us-east-1 error reading cluster configuration "EKS3": error reading s3://borel1/EKS3/config: Unable to list AWS regions: NoCredentialProviders: no valid providers in chain 404 - Not Foundroot@ip-172-31-85-125:/home/ubuntu# env | egrep '(AWS_PROFILE|KOPS)' |
@borelsaffo please file a new bug following the template. |
Hello guys,
I'm currently trying kops and i'm not able to use a profile listed in ~/.aws directory.
I already had a look to a similar past issue #855.
But my credentials file is not a symlink.
running the aws cli works fine
But not with
kops
How can i solve that please ?
The text was updated successfully, but these errors were encountered: