kops: kops can't use credentials generated by aws sso (#aws configure sso)

Hi,

Can someone please confirm if kops can read credentials generated by aws sso? (aws2 cli, #aws2 configure sso) or I have to create an access key and secret to make it work? My AWS CLI is working fine but when I try kops it seems like it’s not able to load my aws profile.

Thanks, Atif

$ kops -v10 get cluster
I0206 17:46:43.037479   93514 factory.go:68] state store s3://xxx-xx-xxxx-xx
I0206 17:46:43.037533   93514 s3context.go:338] GOOS="darwin", assuming not running on EC2
I0206 17:46:43.037544   93514 s3context.go:170] defaulting region to "us-east-1"
I0206 17:46:48.423699   93514 s3context.go:191] unable to get bucket location from region "us-east-1"; scanning all regions: NoCredentialProviders: no valid providers in chain
caused by: EnvAccessKeyNotFound: failed to find credentials in the environment.
SharedCredsLoad: failed to load profile, xxxxxxxxx.
EC2RoleRequestError: no EC2 instance role found
caused by: RequestError: send request failed
caused by: Get http://169.254.169.254/latest/meta-data/iam/security-credentials/: dial tcp 169.254.169.254:80: connect: host is down

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 8
  • Comments: 23 (9 by maintainers)

Most upvoted comments

Thanks for confirming. I think we can close this one now then. /close

Can you try to run export AWS_SDK_LOAD_CONFIG=1 and re-run the kops commands?