-
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
(credentials): (Need to perform AWS calls for account ..., but no credentials have been configured ) #32135
Comments
@topankefal05 Your issue appears to be similar to #32120. That issue is being worked upon by CDK team. Hence, please review and advise if it's fine to close this as duplicate. Thanks, |
@topankefal05 If you think this is a different issue, we would love some more details from you.
|
@ashishdhingra After having a look on the other issue it seems to be a duplicate indeed, I will check again if it's resolved with a new version, currently rolling back to 2.166.0 is working. |
I have some more information that may help as I got the same error. I often work with older tools that require .aws/credentials entries including aws_session_token. For cdk I login via The issue is If I delete the entry for the profile in .aws/credentials it works fine via SSO. In code I have created my own credentials provider to get around this (see below), but I can't nudge cdk itself to do that...
|
Having a similar issue. SSO works fine in 2.171.0, however, 2.173.0 receive the following error when attempting diff/deploy Need to perform AWS calls for account XXXXXXXX, but no credentials have been configured |
Seems like a duplicate of #32510. @scottbisker can you please try with version 2.173.1 or later? It includes a fix for it. |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Describe the bug
With the latest version 2.167.0 I have encountered the issue mentioned in the title. I have been setting the ENV Variables in a pipeline and so far everything has been running smoothly. Since 2.167.0 this doesnt seem to work anymore even though the CredentialsChain suggests to still work in the same way, that it should prioritize
fromEnv()
if not profile is configured.Regression Issue
Last Known Working CDK Version
2.166.0
Expected Behavior
Correctly authenticated to complete actions with AWS Account.
Current Behavior
Not authentication identified, no credentials found.
Reproduction Steps
GitLab CI Pipeline with ENV Variables.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.167.0
Framework Version
No response
Node.js Version
18.16.1
OS
alpine
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: