-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(cli): sso tokens not refreshed by cdk cli, refreshed by aws cli #24782
Comments
Thank you for the report. I am not sure if this is related to #24744 but we will need more investigation before we can find the root cause. Any further feedback or upvotes are appreciated. |
We are experiencing this issue as well using the new refresh token approach for SSO credentials in the AWS CLI. |
@pahud I don't know what further help you need - are there logs or other bits of information that would be useful? |
@diranged This seems to be related to SDK and we are tracking in aws/aws-sdk#531 |
we are having this exact issue. Using CDK all my developers are having their sessions time out after 1 hour, and have to re-run Being that it's been directed over to issue 531, I'll comment on there, as it seems somewhat related, but maybe not entirely. |
I'm a little concerned that the error message "Need to perform AWS calls for account XXXXXXXXXXXX, but no credentials have been configured" sounds a bit different from the error messages involved in aws/aws-sdk-js#4441 If it is in fact, giving this error message because the SDK is incorrectly saying the credentials are expired, it's worth opening a feature request for the CDK recognizing expired credentials as separate from no credentials configured, and making this error message more helpful to the user. |
Just checking in here... this is still a pain point for us. Any progress on fixing it? |
Anyone looking at this issue? It makes using the |
I'm fairly certain this should have been fixed when we upgraded our AWS SDK to v2.1691.0 because of aws/aws-sdk-js#4443. Can you please upgrade your cdk cli to our most recent version and see if this is still impacting you? If it is, you should see a resolution when #31702 is merged. |
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
When using AWS SSO in the "Refreshable Token" mode the
cdk ...
commands do not know how to refresh the token properly, while theaws
commands do.App Versions
Expected Behavior
I would hope that the
cdk
commands would trigger the token refresh in the same way that theaws
CLI does.Current Behavior
Example Failure:
Here's an example of how this works... The first call to
yarn cdk deploy
fails:Then if we just call
aws sts get-caller-identity
the CLI refreshes the creds..Finally a followup call to
yarn cdk deploy
will work fine:yarn cdk deploy -v ...
Reproduction Steps
See above
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.69.0 (build 60a5b2a)
Framework Version
No response
Node.js Version
n/a
OS
Mac OS
Language
Typescript
Language Version
No response
Other information
Our
$HOME/.aws/config
file looks like this:The text was updated successfully, but these errors were encountered: