Skip to content

Lambda Sync no longer works in VS Code (had to revert to v3.27.0 #5915

@hideflolife

Description

@hideflolife

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

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugWe can reproduce the issue and confirmed it is a bug.lambdalambda-appbuilderLambda App Builder featureneeds-responseWaiting on reply from issue/PR author.pending-releasesam

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions