-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error when importing client-dynamodb
module in AWS Lambda
#11
Comments
Sorry for the late reply. Can you reproduce that with the latest version? |
I've tried it with the latest version but the error remains. Here's the last few lines from the CloudWatch Logs:
|
I just encountered this tonight as well with version 3.22.0-1
|
I'm not certain what the issue is, but this seems to be related: nodejs/node#32137 I know Deno handles modules differently than Node, but I'm still pretty new to this approach, so not sure if it's actually related. |
Worth noting that if I compile and try to run, I get a host of different errors. I think there might be something to the idea that running the script uncompiled (using Not sure if that's expected, but it did get me beyond the bug mentioned above. |
For the dynamoDB tutorial on deno.land (https://deno.com/deploy/docs/tutorial-dynamodb#setup-dynamodb), I've swapped out skypack for this library, and managed to get past all the errors mentioned above by doing the following:
No check avoids the strict TS checks, allow-env is necessary for loading .env variables, allow-read was required to get the <exec_path>, and unstable was needed because osRelease was used somewhere in the dependency tree (not necessarily this library) instead of Deno.build(). I know this doesn't address the issue at hand, but it does get me around it for the time being and will hopefully help others out. |
@CoeusCC Some of these seem to be expected for the tutorial, but could open issues for the others with a simple example to reproduce? |
Similar error here when trying to use RDSDataClient with Deno AWS Lambda:
|
Similar error when using
|
I tried all different versions (
|
Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue. |
Describe the bug
I was trying to use this module in an AWS Lambda handler running Deno. Importing the AWS DynamoDB Client using
import * as dynamodb from "https://deno.land/x/aws_sdk/client-dynamodb/mod.ts";
is not successful but hangs for a number of seconds and fails. On viewing the logs in AWS CloudWatch the following Error is listed:Your environment
Steps to reproduce
import * as dynamodb from "https://deno.land/x/aws_sdk/client-dynamodb/mod.ts";
Additional context
The handler code looks as follows:
The text was updated successfully, but these errors were encountered: