Questions tagged [aws-sdk-js-v3]
The aws-sdk-js-v3 tag has no usage guidance.
aws-sdk-js-v3
64
questions
1
vote
1
answer
45
views
@aws-sdk/client-dynamodb ScanCommand not retrieving all records in DynamoDB table
I have a Lambda service (type module) that is called from API Gateway, retrieving records from a DynamoDB table.
I'm using the ScanCommand as I want to read all records. When I look at the table in ...
0
votes
0
answers
45
views
InvalidCiphertextException: UnknownError at de_InvalidCiphertextExceptionRes
I am using the correct KMS key, but I keep getting the same 'InvalidCiphertextException' error.
This is my decryption code:
export const decryptField = async (encryptedField) => {
if (!...
0
votes
0
answers
21
views
Webpack build creates random files in project directory
Can someone suggest how can I stop creating these files while building the project ?
Issue:
After migrating from AWS SDK v2 to v3, When I ran webpack build for my typescript project for testing ...
0
votes
0
answers
26
views
Cesium Resource Proxy getUrl with AWS SDK v3 presigned url
We are using the Cesium Resource Proxy class to provide a presigned url from s3 for each of our resources. The getUrl method must return a string and is synchronous. When using the AWS SDK v2, this ...
0
votes
1
answer
391
views
V3 AWS S3 JavaScript SDK on deleteObjectCommand gets 204 but doesn't delete object
So my question is similar to this other one:
V3 AWS S3 JavaScript SDK on deleteObjectCommand 204 response code
... I get the same answer:
{
'$metadata': {
httpStatusCode: 204,
requestId: '...
1
vote
2
answers
222
views
Updating aws-sdk v2 to v3 breaks DynamoDB call in Synthetics Canary
Interesting issue after updating to v3. The updated code works fine in tests, locally and in lambdas, but fails when running it within a Synthetics Canary. Might be an easy solution, but haven't found ...
1
vote
0
answers
145
views
Multer S3 (v3) type error when implementing AWS SDK (v3) - missing properties from type 'S3'
I'm in the process of upgrading my AWS SDK from v2 to v3 (@aws-sdk/client-s3 v3.496.0). This includes upgrading multer-s3 to v3.0.1 to be compatible as stated by their docs. But I'm getting the ...
1
vote
0
answers
165
views
'The provided ARN is invalid' error when locally running a Step Function that calls EventBridge Scheduler
I am running a Step Function using the AWS JS SDK v3 that gets and creates schedules with AWS EventBridge Scheduler. When I run it in the AWS account, I am able to run the step function.
However, when ...
0
votes
1
answer
96
views
AWS Documentation mentions supported runtimes for nodejs18.x is 3.362.0, should I lock it down to 3.362.0 or use latest aws-sdk-v3 version?
AWS Documentation https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#w349aac23c27 here
mentions aws sdk under supported runtimes for nodejs18.x to be v3.362.0, is this minimum supported ...
0
votes
0
answers
152
views
Can't find appropriate way to track progress using uploadId in new AWS SDK v3
Here is the code snippet that I use with old AWS SDK v2 in NodeJS.
const partInformation = await this.s3
.uploadPart({
Bucket: "BucketName",
Key: "...
1
vote
0
answers
61
views
How to use getLoggerPlugin() in @aws-sdk/middleware-logger?
I see this function is used at many places in the v3 clients, For example here is there any proper usage documents?
0
votes
0
answers
304
views
JS AWS Websocket API Gateway client sdk v3 will not post to client with endpoints I provide. Documents are unclear what to do with Custom Domains
I am setting up a WebSocket API in Api Gateway. I am currently using v1 of the SDK, and I want to move to V3. This is the code that I have attempted to use:
const apiGwManApiClient = new ...
0
votes
0
answers
378
views
AwsUpload/S3Client how do I refresh credentials after multi-part credentials have expired?
I have a multi-part upload, using AWS JS SDK v3, that takes a long time. After one hour the credentials expire. I need to find a way to refresh the credentials to keep the upload going. I can ask my ...
0
votes
2
answers
2k
views
@aws-sdk/client-s3 new SDK version v3 - Region is missing error
I am migrating S3 client on node.js from v2 to v3. And getting error: Region is missing, when using any command: s3Client.send(\\any command\\);
I have the latest libraries v3.405.0 and initialise S3 ...
0
votes
1
answer
506
views
AWS XRay with AWS SDK v3 for NodeJS: typing issues
I'm moving my xray tracing for my aws-sdk from v2 to v3 and having some issues using the code provided from aws here: https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-nodejs-awssdkclients....