-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dispatch Failure for Rust lambda deployments #1204
Comments
Hi thank you for reporting this. I have two clarifying questions.
|
Hi @ysaito1001, Ah to be honest I haven't used anything other than lambda at the moment. Not getting any of the cert issues doing standard AWS cli commands so not sure this is replicating without using lambda. RE the lambda runtimes - yep these are used. I'll create an issue there as well. |
I have found the solution to this. Feel free to close the comment whenever is suitable. For whatever reason in this case, if the AWS CLI command is used the certificate will validate. When using the Cargo Lambda commands, the certificate used would not validate and return the error. Downloading any of the Amazon CA certs from - https://www.amazontrust.com/repository/ and importing this via the Windows wizard into the Trusted Root CA then generates the CA twice - its like it unhides / marks as trusted the original CA that existed. This solves the issue and allows the Lambda console and approves the request. While this is a workaround it doesn't 'explain' how / why the Cargo Lambda commands are not validating the existing certificate like the AWS CLI commands are. This may also be unrelated to Cargo Lambda and could be some magic that Windows did with an update which either untrusted an Amazon CA or something but there 'aren't' any other issues / discussions seen in these channels so far and debugging further here is way above my skill set. Appreciate the help! Thanks |
Glad that you have found the solution, and thank you for sharing what you found! |
Comments on closed issues are hard for our team to see. |
Describe the bug
When trying to run cargo lambda deploy <function_name> --profile <profile_name> via the cli it will return this error:
Regression Issue
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
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:
The text was updated successfully, but these errors were encountered: