[core] v1.60.0 no longer accepts --profile flag
See original GitHub issueI manage multiple AWS accounts and for each, I have a profile configured. In versions <1.60.0 of cdk, I could specify a profile using the --profile <profile-name>
. For example if I wanted to use the diff
command with the work
profile, I would type:
yarn cdk --profile work diff
I am no longer able to do this on version 1.60.0.
Reproduction Steps
- Create a stack using v1.59.0 and deploy it
- Update your version to v1.60.0 and attempt to run
diff
ordeploy
command on the same stack
What did you expect to happen?
Upgrading to v1.60.0 would not affect passing credentials.
What actually happened?
I now receive the error:
Need to perform AWS calls for account <number>, but no credentials have been configured.
Environment
- CLI Version: 1.60.0
- Framework Version: 1.60.0
- Node.js Version: v10.22.0
- OS : mac-os
- Language (Version): TypeScript
Other
As a result of this, my team is stuck on v1.59.0
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:24 (10 by maintainers)
Top Results From Across the Web
Frequently Asked Questions (FAQ) - FLAG System
How do I use profiles to pre-fill information within my applications? I am an Agricultural Association filing as a joint employer with multiple...
Read more >How to fix java.lang.UnsupportedClassVersionError
This may occur when compiler source is set in non-compliance with currently compiling JRE/JDK. For example i found the below values from eclipse...
Read more >1558025 - Copying a profile between machines leaves behind ...
Hi, get this error on FF 67.0.1, not using a master password. 1560076336270 Sync.LogManager DEBUG Flushing file log 1560076336271 FirefoxAccounts TRACE not ......
Read more >JobTemplates - AWS Elemental MediaConvert API Reference
This will return the templates themselves, not just a list of them. ... The service no longer accepts the value DISABLED for AntiAlias....
Read more >Changelog - Rclone
Windows: fix slow opening of exe files by not truncating files when not ... Remove link to rclone slack as it is no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi…
It appears that there is a requirement for CDK to need to have a default profile even though i am not using it.
I added this
[profile default] region = ap-southeast-2 output = json
And it seems to work. SOmething has changed in 1.60 that has changed this.
Some further research in diffing the
-vvv
output between patched (working) and unpatched (broken) versions yields the following:As a temporary workaround - if you define a region in your profile, it seems to work (and doesn’t seem to matter what region it is), eg
~/.aws/config
: