734 questions
2 votes
1 answer
51 views
AWS AppConfig Multi-Variant flags always return default variant when passing context via SDK
AWS AppConfig Multi-Variant Feature Flags: Context Not Working (Always Returns Default Variant) Problem I'm trying to fetch AWS AppConfig Multi-Variant feature flags with user context from my React ...
2 votes
0 answers
46 views
CognitoIdentityProviderClient fails to construct URL from provided region
I'm trying to authenticate to AWS cognito using the @aws-sdk/client-cognito-identity-provider library // Truncated code import { AuthFlowType, CognitoIdentityProviderClient, InitiateAuthCommand,...
0 votes
1 answer
47 views
SNS sending CreateTopicCommand I got Invalid parameter: DataProtectionPolicy Reason: Failed to parse the data protection policy
I created on aws a "Push notification platform - Apple iOS (development)" I am just trying to create a new endpoint from AWS SDK JS v3 const deviceId = 'a0b1c2d3e4f5' // would be a real ...
0 votes
0 answers
44 views
aws-sdk-js requests stops responding after a while
What I'm doing: From my node server I upload images to S3. If a user upload an image with a name that already exists we will check if [image-name]-1 exists, if it does we check if [image-name]-2 ...
1 vote
2 answers
861 views
How to create presigned URL with AWS S3 JavaScript SDK imposing checksum verification
I am trying to create a predesigned POST request using the AWS Javascript SDK for S3, using the method createPresignedPost. The idea is to generate the URL and fields which should be used in a ...
0 votes
1 answer
66 views
cannot use method fileTypeFromStream in aws lambda typescript handler
Node version : node -v v20.17.0 packages versions : "@types/aws-lambda": "^8.10.145", "@aws-sdk/client-s3": "^3.678.0", "file-type": "^19.6.0&...
1 vote
4 answers
242 views
How to share objects in a S3 folder and get links to them?
I upload files to a folder in an S3 bucket via the S3 JavaScript SDK. Now I want to share all objects in that folder (maybe there are more objects later) therefore I want to get a list of all objects, ...
0 votes
1 answer
554 views
Send raw email including headers using AWS SES
I'm trying to send a raw e-mail using AWS SES, with the AWS SDK v3 for Node.JS. However, the e-mail I'm sending is appearing on the receiving end with the raw body enclosed in a HTML container, ...
0 votes
0 answers
38 views
Do we have to tell the instance at aws EC2 to move to next lifecycle state explictly?
I am doing autoscaling for updating ami images what i am doing is double the instances(new will have new instances have new ami) new instances are up and running but i see that their lifecycle status ...
0 votes
1 answer
71 views
ListFunctionsCommand returns empty array
When I list functions using the CLI I get the expected results back, however when I try do the same thing from the Node SDK I get an empty array back. I'm using SSO, where the SSO region differs from ...
-1 votes
1 answer
142 views
How do I use the DynamoDB document client to set an attribute to a string representation of an integer?
I'm trying to use the AWS SDK for JS to set a DynamoDB item's attribute Password of type String to a string representation of an integer. This was my initial approach: import { DynamoDBClient } from '@...
0 votes
0 answers
634 views
How to properly call AWS bedrock using JavaScript SDK?
I am a newbie to using JavaScript SDK to connect to AWS Bedrock service, below is my code: const { BedrockAgentRuntimeClient, RetrieveCommand } = require("@aws-sdk/client-bedrock-agent-runtime&...
1 vote
0 answers
185 views
AWS SDK - Readable Stream Error while using CognitoIdentityProvider or any aws-sdk
When Trying to Access the Cognito Provider to Login in React Native, error as Reference Error - Readable Stream Not Found Version Details "react-native": "0.69.3", "@aws-sdk/...
1 vote
1 answer
60 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
79 views
Cannot import type interfaces of AWS js sdk v3
I am using AWS pinpoint service with typescript. And I want to define return type for GetSegmentCommand's output. The docs says that it is exported as this: export interface GetSegmentCommandOutput ...