Closed luukdobber closed 7 months ago
I have the same issue when trying to use client-cloudfront-keyvaluestore
with SST.
Hi @luukdobber @rr923 - thanks for your patience.
I had attempted to reproduce this multiple times but was unable to. It's also strange that you mentioned it works for cloudfront.ListDistributionsCommand
command and not kv.DescribeKeyValueStoreCommand
. Were you able to locate the file for aws-crt
at locations:\n\t/bin/linux-x64-glibc/aws-crt-nodejs
. Can you check which version of aws-crt
is installed?
Also to double check if you ran npm install @aws-sdk/signature-v4-crt
to install the package: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-signature-v4-crt/
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.
Hi @aBurmeseDev ,
Thanks for your reply and sorry for my late response. I somehow missed your message until the issue was closed.
Did you try to reproduce it in the NODEJS_20_X lambda runtime? Could you share your working Lambda and CDK code so I can compare it with mine? The code in my opening post still results in the AWS CRT binary not present
error. Please note that I override the NodeJSFunction bundling settings because I need a newer SDK-version for the CloudFront KeyValueStore than the one available in NODEJS_20_X.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Checkboxes for prior research
Describe the bug
I am trying to use @aws-sdk/client-cloudfront-keyvaluestore in the NODEJS_20_X lambda runtime. Calling any of the keyvaluestore API's causes the error
AWS CRT binary not present in any of the following locations:\n\t/bin/linux-x64-glibc/aws-crt-nodejs
.Before running into the error mentioned above, I ran in to the issues described in https://github.com/aws/aws-sdk-js-v3/issues/5576. I worked around that error with the changes mentioned in https://github.com/aws/aws-sdk-js-v3/issues/5576#issuecomment-1854958060. But then I ran into the
AWS CRT binary
error.SDK version number
@aws-sdk/client-cloudfront-keyvaluestore@3.485.0
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
NODEJS_20_X lambda runtime
Reproduction Steps
Deploy a Lambda function with the following configuration (CDK):
Lambda code:
Observed Behavior
The cloudfront.ListDistributionsCommand command works as expected, the kv.DescribeKeyValueStoreCommand results in an error:
Expected Behavior
I expect the kv.DescribeKeyValueStoreCommand to return a result.
Possible Solution
No response
Additional Information/Context
No response