Skip to content

Dispatch Failure for Rust lambda deployments #1204

@DoIevenLift

Description

@DoIevenLift

Describe the bug

When trying to run cargo lambda deploy <function_name> --profile <profile_name> via the cli it will return this error:

image

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The command should create a lambda function if it doesn't already exist else update the function.

Current Behavior

It appears that the lambda console is not validating a certificate which causes the failure.

Reproduction Steps

Possible Solution

No response

Additional Information/Context

This may not be the specific place to create this issue and my apologies if it is not. Happy to recreate elsewhere if pointed in the right direction. This issue only started to appear for me in the last few days and previously ran without issue.

I've tried the command on 2 machines and both are encountering this issue. Both machines are windows.

I've also done a complete wipe and fresh windows install one of the machines and continue to get the certification issue. On the fresh install the only things installed were Cargo Lambda, Zig, Rust, Visual Studio (reqs for Rust) and VSC.

According to - https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lambda/index.html the Lambda console requires any of the certs. I've confirmed that on both machines one or more of the certificates exist.

I've also ran commands with the AWS CLI such as list-functions, get-function, delete-function etc and these are all working which from my understanding that if this was a cert issue, these should fail also.

Have created a discussion in Cargo Lambda - cargo-lambda/cargo-lambda#701 & there is an old issue here - #468 (comment) which kind of looks to be running into the same issue however the above issue is related to code specifically within the iotdataplane rather than within the system.

I've also reset the aws sso configuration both manually via removing the variables and via the aws cli command. I also did some of the things here - https://repost.aws/questions/QU-GGT0F5DQlCxSPsPIxUHHA/dispatch-failure

Version

I am unsure if this is correct but the aws-sdk is inherited from Cargo Lambda not directly used - apologies if this is not the case. 

cargo tree | grep aws- did not work for me

Environment details (OS name and version, etc.)

Windows 11 Home version: 10.0.22631 Build 22631

Logs

using -v on the Cargo Lambda command gives:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.potential-regressionMarking this issue as a potential regression to be checked by team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions