CDK deploy not detecting credentials when stack contains assets #4796
Labels
bug
This issue is a bug.
language/python
Related to Python bindings
needs-triage
This issue or PR still needs to be triaged.
package/tools
Related to AWS CDK Tools or CLI
I followed the CDK Python workshop as far as adding a Lambda function (Hello Lambda), and
cdk deploy
fails with the error messageThe environment aws://unknown-account/us-east-2 doesn't have the CDK toolkit stack (CDKToolkit) installed
. Clearly this is because the stack now includes assets, but the CDKToolkit stack is up:"unknown-account/us-east-2" implies that CDK is not detecting the account and region from
~/.aws
, but it deployed successfully on the previous step (without any assets), and the verbose log (see below) seems to indicate that it is detecting the account and region, at least initally.Reproduction Steps
As above - sample-app with hello-world lambda added.
~/.aws/config
:~/.aws/credentials
:Error Log
Environment
Other
Possibly related to #2853 - another regression?
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: