aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.68k stars 3.93k forks source link

(credentials): (Need to perform AWS calls for account ..., but no credentials have been configured ) #32135

Open topankefal05 opened 1 day ago

topankefal05 commented 1 day ago

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

ashishdhingra commented 1 day ago

@topankefal05 Your issue appears to be similar to https://github.com/aws/aws-cdk/issues/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, Ashish

rix0rrr commented 1 day ago

@topankefal05 If you think this is a different issue, we would love some more details from you.

topankefal05 commented 12 hours ago

@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.