aws-toolkit-vscode: Lambda Sync no longer works in VS Code (had to revert to v3.27.0
Trying to do a Lambda Sync (i.e., Sync SAM Application (formerly Deploy)) failed with the following output:
2024-11-01 13:10:06.415 [info] Command: (not started) [C:\Program Files\Amazon\AWSSAMCLI\bin\sam.cmd sync --template .\template.yaml --s3-bucket [buckeName] --stack-name [this was empty, i.e., ""] --region us-east-1 --no-dependency-layer --no-watch] (running processes: 0)
2024-11-01 13:10:08.243 [error] aws.samcli.sync: Error: Failed to sync SAM application (deployType: infra; skipDependencyLayer: true; region: us-east-1; template: [object Object]; paramsSource: 2; stackName: [stackName]; bucketName: [bucketName]; syncFlags: []; projectRoot: file:///e%3A/OneDrive/[source root])
-> Error: sam sync exited with a non-zero exit code: 2 [NonZeroExitCode]
-> UnknownError: undefined
I did notice that the latest version asked for additional information related to parameters and gave me a warning on a missing samconfig.toml file
Reverting back to v3.2.7 allowed me to successfully sync.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (12 by maintainers)
This is really weird, I’ll take another look and get back to you next Tuesday
Using v3.27.0, which works to allow syncing of my Lambda app, I use the following procedure:
Using v3.32.0, which works to allow syncing of my Lambda app, I use the following procedure: