-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
aws-eventstream not available in Ruby 3.2 lambda runtime #3024
Comments
Sorry you're running into this. Can you provide a bit more information about how you are configuring your lambda and deploying that file? I was not able to reproduce when I created a Lambda with Ruby 3.2 runtime (with both x86_64 and arm) in the console - it is able to load |
ah, that's interesting... hmm. This is the CDK for this function if that helps
|
Hmm - I did confirm the locations/versions of core and aws-eventstream on the Ruby 3.2 lambda env:
From the stack trace it does look like our code is loading aws-sdk-core from the same location, so I'm not certain why it wouldn't be able to find aws-eventstream. My best guess is that it could be related to the CDK code from asset or the lambda layers. What is in the Gemfile you are using and does it include the SDK dependencies? |
it looks like this, I put the SDK dependencies into the development dependencies so they're available locally (for unit tests) but not installed in the bundle because it can rely on them in the environment for that. It could be something in the Datadog layers as they're 3rd parties...
|
Can you try adding the |
that does seem to work (as I'd expect, but I was surprised it didn't work in just the runtime! the Datadog layers might be interfering interestingly and I can dig into that) |
Describe the bug
Requiring
aws-sdk-secretsmanager
in a Ruby lambda script throws an error relating to a missing library when run in the Lambda environment. Although it is correctly specified as a dependency on the Gem, it seems that this isn't available within AWS's lambda runtime.Expected Behavior
For
require
to not throw an error.Current Behavior
The Lambda fails with the following error
Reproduction Steps
This is the file which is deployed to Lambda
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-core
Environment details (Version of Ruby, OS environment)
Ruby 3.2 lambda runtime
The text was updated successfully, but these errors were encountered: