-
Notifications
You must be signed in to change notification settings - Fork 422
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
Mismatch in SSO cache filename #4359
Comments
@ytanay Hello! It looks like you have onboarded with the new registration process (in which I found a write-up here to use legacy process. Meanwhile, we will investigate if this is because aws-sdk-go hasn't onboarded the new SSO process, or if there is anything that Copilot needs to do outside of the aws-sdk-go! |
@ytanay I found this issue aws/aws-sdk-go#4649 here. We will keep track of the issue and let you know if the auto-refresh session is supported in For now, could you stay with the workaround mentioned in the write-up as a temporary fix? Sorry for the trouble : ( and thanks for raising this issue! |
Just realized I forgot to respond, sorry about that. Works perfectly, thank you so much for the quick response! |
Facing the same issue! Remving the This is how my profile looks like.
|
Our binary should be updated to the latest SDK version in our latest release, v1.29.0: https://github.com/aws/copilot-cli/releases/tag/v1.29.0, resolving this issue! Thanks! |
Hey :)
We've recently set up SSO for our AWS account, and we're experiencing strange authentication errors when using Copilot.
Here's what I did:
aws configure sso
)aws sso login
)aws s3 ls
)AWS_PROFILE
environment variable (AWS_PROFILE=profile-name copilot svc ls
)Yields the following:
I played around with the (autogenerated)
.aws/config
file and copied these two fields from thesso-session
section to theprofile
This caused the following error:
Looking at
.aws/sso/cache
I see two files, and indeed neither has the filename used by Copilot. Renaming one of them to the one expected by Copilot works, so I'm guessing the new fields affect the hash used to lookup the tokens.I think the latter error is not an interesting as the first (since according to the documentation those fields are not supposed to be placed under the profile section) - am I missing anything?
Thanks for the great tool!
The text was updated successfully, but these errors were encountered: