Aws-iam-authenticator: Can't specify AWS CLI Profile

Created on 7 Jun 2018  路  3Comments  路  Source: kubernetes-sigs/aws-iam-authenticator

Executing commands using kubectl (AWS EKS specific version) or the heptio-authenticator-aws utilities returns the following error when the AWS CLI configure has not been run for the default profile:

"could not get token: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors"

Reference: https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html

Request: Provide a means to specify an AWS CLI profile (per the ~/.aws/config and ~/.aws/credentials files).

Most helpful comment

See this https://github.com/heptio/authenticator/issues/94#issuecomment-395565393 as well for how you could set this up

All 3 comments

This is seemingly a duplicate. Do any of the options listed in the link from https://github.com/heptio/authenticator/issues/89#issuecomment-395280764 work?

See this https://github.com/heptio/authenticator/issues/94#issuecomment-395565393 as well for how you could set this up

Thank you both. #94 is indeed a duplicate.
Adding the env: to my kubeconfig did the trick.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

scyellleader picture scyellleader  路  11Comments

plumdog picture plumdog  路  10Comments

0xdabbad00 picture 0xdabbad00  路  7Comments

errordeveloper picture errordeveloper  路  9Comments

chris-codaio picture chris-codaio  路  9Comments