Skip to content
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

AWS SSO CLI v2 does not work #119

Closed
brainstorm opened this issue May 27, 2020 · 5 comments · Fixed by #248
Closed

AWS SSO CLI v2 does not work #119

brainstorm opened this issue May 27, 2020 · 5 comments · Fixed by #248

Comments

@brainstorm
Copy link

Describe the bug

The new AWS CLI v2 provides Single Sign On:

https://aws.amazon.com/blogs/developer/aws-cli-v2-is-now-generally-available/

But doesn't seem to play well with cw:

$ cw ls -p dev groups
no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors

To Reproduce

$ aws configure sso
SSO start URL [https://yourcompany.awsapps.com/start]:
SSO Region [ap-southeast-2]:
Attempting to automatically open the SSO authorization page in your default browser.
If the browser does not open or you wish to use a different device to authorize this request, open the following URL:

https://device.sso.ap-southeast-2.amazonaws.com/

Then enter the code:

CQCS-BFPZ
There are 8 AWS accounts available to you.
Using the account ID <ACCOUNT_ID>
There are 3 roles available to you.
Using the role name "default"
CLI default client Region [ap-southeast-2]:
CLI default output format [None]:
CLI profile name [default]: default

$ aws s3 ls
<LIST OF BUCKETS>

$ cw ls -p dev groups
no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors
@lucagrulla
Copy link
Owner

Hi @brainstorm
It looks like a bug in the AWS go SDK.

This feels like the best workaround I've found until this is fixed:
https://github.com/benkehoe/aws-sso-credential-process

@brainstorm
Copy link
Author

Indeed, I'm using this one instead:

https://github.com/victorskl/yawsso

@kmcquade
Copy link

Hi @lucagrulla, it looks like the AWS Go SDK now supports AWS SSO: https://aws.amazon.com/blogs/developer/aws-sso-support-in-the-aws-sdk-for-go/

I'm a huge fan of cw. It would be awesome to have SSO Support for cw. I use it every day.

I am used to the workaround mentioned above with aws-sso-util -> yawsso, but it would be helpful for other members of my team if I didn't have to write out instructions on how to use the workaround :) Would you consider re-opening this issue, in case anyone wants to take this on?

@lucagrulla
Copy link
Owner

lucagrulla commented Sep 24, 2022

Thanks @kmcquade.

The issue is nor re-opened.

@lucagrulla
Copy link
Owner

Released with v4.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants