743 questions
0
votes
1
answer
24
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
34
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
232
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
0
answers
16
views
Is there an equivalent apiCallTimeout in the Javascript sdkv3?
In the Java sdk, there is the apiCallTimeout: https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/core/client/config/ClientOverrideConfiguration.Builder.html#apiCallTimeout(java.time....
0
votes
1
answer
49
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
129
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
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 ...
0
votes
1
answer
418
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
34
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
0
answers
112
views
Unable to get local issuer certificate error on publish to IOT topic via AWS IOT endpoint on aws-sdk v3 javascript module IOTDataPlaneClient
I am getting error : UNABLE_TO_GET_ISSUER_CERT_LOCALLY when trying to publish to topic through IOT endpoint. I am using amazon root ca 1 cert and also used certs mentioned here https://github.com/...
0
votes
0
answers
69
views
AWS StepFunction startExecution adding :UUID to name
I'm trying to set the name of an Express StepFunction execution in a lambda so that the StepFunction prevents any duplicate processing.
This code works as expected, except somehow a colon followed by ...
0
votes
1
answer
53
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 ...
0
votes
0
answers
43
views
Migrating AWS S3 sdk V2 to V3 Credentials
I have an app that uploads to AWS. My backend server retrieves cognito credentials (eg Token) and then client app uploads directly into AWS.
Our backend call returns to the user:
Token
IdentityId
...
-1
votes
1
answer
124
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
558
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&...