All Questions
Tagged with aws-sdk-js javascript
174 questions
0
votes
0
answers
47
views
AWS IoT permission policy for user authenticated with Cognito UserPool and Cognito IdentityPool
As stated in docs (https://docs.aws.amazon.com/iot/latest/developerguide/connect-and-pub.html)
For devices not registered as things in the AWS IoT Core registry, the
following policy grants ...
1
vote
1
answer
40
views
Saving PDF from S3 .pipe is not a function
I'm ultimately trying to attach a file from s3 without saving it to disc, but I'm having trouble getting the file in the first place.
Here is my code:
const s3 = require('@aws-sdk/client-s3')
...
0
votes
0
answers
139
views
How could I List all the CommonPrefixes first with listObjectsV2?
I have a lambda function requesting data from S3 using AWS-SDK. It is consumed by a webapp used as a file directory, but when the app request to create a new folder or directory, it doesn't show until ...
0
votes
1
answer
1k
views
Retrieving secret string from secrets manager with nodejs
When a button is clicked, there should be an alert in the browser with the secret string (secret key and secret value)
This is my react app
const App = () => {
const handleFileUpload = async ()...
1
vote
0
answers
136
views
aws sdk v3 lib-storage: upload file of 112 GB crash chrome for out of memory
I have bundled "@aws-sdk/lib-storage" and "@aws-sdk/client-s3" with webpack for use it on frontend
package.json
{
"name": "aws-s3-upload",
"version&...
1
vote
1
answer
1k
views
AWS S3 Javascript SDK v2 allows for full path but v3 does not. How can I access the files in S3 with a full path?
My application used to use AWS JavaScript SDK v2. In this version I could have a bucket name with slashes. The pattern of this bucket name is: <bucket_name>//. Essentially mocking a folder ...
2
votes
2
answers
886
views
Invoke AWS Lambda into React page using aws-sdk
I have this simple form executed into React page:
import React from 'react';
import { Link } from 'react-router-dom';
import {LambdaClient, InvokeCommand, LogType} from "@aws-sdk/client-lambda&...
0
votes
1
answer
362
views
Hitting Presigned URL to download object and get access denied exception
In our code base, we are aiming to render the S3 GetObject SignedURL for the client, so the client can download the object by clicking the url in the website .
Here is the v2 code:
return s3Client....
0
votes
0
answers
191
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
1
answer
109
views
how to configure a service client object in the JavaScript SDK v3?
From example here i want to know how we can achieve in aws sdk JS v3?
The following example configures a service client object in javascript sdk object in v2. I want to know how we can achieve ...
4
votes
1
answer
666
views
Design pattern for wrapping aws-sdk Javascript v3
Our team is moving from aws-sdk v2 to v3. We have a common package that has a wrapper around aws-sdk which takes care of common logging to aws sdk service calls and update few configs ( This wrapper ...
0
votes
1
answer
819
views
@aws-sdk/lib-storage/Upload sends inclomplete request body for CompleteMultipartUpload
I am using the Upload class from @aws-sdk/lib-storage to upload files to an S3 bucket, directly from the browser.
export const putObject = (s3Client, bucketName, path, file) => {
const params = {
...
0
votes
1
answer
137
views
Getting ValidationException on UpdateTableCommand (AWS SDK)
I'm trying to the update the deletion protection setting for my DynamoDB table:
this.#docClient = new DynamoDBClient({ region: REGION });
...
updateParams = {
TableName: TABLE_NAME,
...
0
votes
1
answer
693
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....
1
vote
0
answers
102
views
UnknownError when testing CloudFront Function via AWS SDK for Javascript
I have a CloudFront Function and I'm trying to test it using AWS SDK for Javascript. This is my code:
const client = new CloudFrontClient(); // configured using env variables
const eventObject = ...