aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.52k stars 447 forks source link

fix(lambda): save params before running sam command when --watch is selected #6089

Open mbfreder opened 3 days ago

mbfreder commented 3 days ago

Problem

When --watch flag is used, the sync process remains alive. The region and stack_name info get written to config file only after the process finishes. This means customer would not be able to see (or refresh) the latest deployed resoures during the sync process.

Solution

Write to samconfig.toml before running sam sync


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

github-actions[bot] commented 3 days ago
mbfreder commented 3 days ago

One test is failing here but not on my local machine. Investigating this.