Unable to determine the default AWS account: TypeError: Cannot redefine property: [my-other-aws-profile] #20875
Labels
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
I have multiple AWS profiles for switching between my company's and my personal profiles. I have this in my
~/.aws/config
My credentials are defined in
~/.aws/credentials
I used my
default
profile to generate my CDK stack. When I runcdk deploy
I get an error message:When I specify
--profile
flag as stated incdk --help
I get the same error message.When I add verbose logging to the command I get the following message:
Expected Behavior
I am able to use specified AWS profile to deploy my CDK stack.
Current Behavior
I get an error
Reproduction Steps
Generate your CDK stack using your selected profile then try to deploy it.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.28.1 (build d035432)
Framework Version
No response
Node.js Version
v18.4.0
OS
Linux Home 5.13.0-52-generic #59-Ubuntu SMP Wed Jun 15 20:17:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: