Skip to content
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

Rusoto and Lambda are incompatible #315

Closed
gangliao opened this issue Nov 30, 2021 · 1 comment · Fixed by #316
Closed

Rusoto and Lambda are incompatible #315

gangliao opened this issue Nov 30, 2021 · 1 comment · Fixed by #316
Labels
bug Something isn't working

Comments

@gangliao
Copy link
Contributor

Describe the bug

Rusoto rusoto/rusoto#1651 is no longer maintained. This week we discovered that the invoke() function call will trigger Lambda to report an error.

Playground with the following options: 
PlaygroundOpt { ops_type: "scatter_gather_ops", events: 1, concurrency: 1 }
FunctionConfiguration { code_sha_256: Some("hmeMoQgVDiRrwByw5XXZPaJtPXiGAC5N1B1Ugax/zes="), 
code_size: Some(1699478), dead_letter_config: None, description: Some(""), environment: None, 
file_system_configs: None, function_arn: Some("arn:aws:lambda:us-east-1:942368842860:function:flock_pg_scatter"), 
function_name: Some("flock_pg_scatter"), handler: Some("handler"), image_config_response: None, kms_key_arn: None, 
last_modified: Some("2021-11-30T20:35:46.341+0000"), last_update_status: None, last_update_status_reason: None, 
last_update_status_reason_code: None, layers: None, master_arn: None, memory_size: Some(128), package_type: Some("Zip"),
 revision_id: Some("4561f1a1-579d-4b2f-bc11-a254838fea94"), role: Some("arn:aws:iam::942368842860:role/flock"), 
runtime: Some("provided.al2"), signing_job_arn: None, signing_profile_version_arn: None, state: Some("Pending"), 
state_reason: Some("The function is being created."), state_reason_code: Some("Creating"), timeout: Some(3), 
tracing_config: Some(TracingConfigResponse { mode: Some("PassThrough") }), version: Some("$LATEST"), vpc_config: None }
Error: Execution("Lambda function execution failure: The operation cannot be performed at this time. 
The function is currently in the following state: Pending")

Rusoto's invoke() will always assume that the lambda function is pending, which makes our project unable to continue. I use the AWS CLI to directly call the invoke() without any problems. Therefore, we must immediately abandon the Rusoto dependency library.

Let's try to use the official AWS SDK for Rust https://github.com/awslabs/aws-sdk-rust.

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

@gangliao gangliao added the bug Something isn't working label Nov 30, 2021
gangliao added a commit that referenced this issue Dec 1, 2021
@gangliao
Copy link
Contributor Author

gangliao commented Dec 1, 2021

This is related to the 'delete_function()' issue. We may replace 'update_function_code()' for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant