How are we doing? Please help us improve AWS. Take our short survey

Questions tagged [aws-sdk]

The software development kit for use with the Amazon Web Services API.

Filter by
Sorted by
Tagged with
1 vote
0 answers
71 views

S3 Express One Zone: no such bucket

I created a directory-type bucket at S3 Express One Zone and am trying to get an object from it from a AWS Lambda function. Both are in the same us-east-1 region. My function is based on the example ...
AlwaysLearning's user avatar
0 votes
0 answers
12 views

Setting up Amazon Cognito hosted UI using LocalStack and aws sdk

I try to use the Amazon Cognito Hosted UI in my LocalStack cloud emulator. Therefore I set up an userpool and an userpoolclient like this: # ---------------------------------------- # Cognito ...
Moritz Schumacher's user avatar
0 votes
0 answers
19 views

"TypeError: Cannot read property 'session' of undefined" AWS SDK

I'm working on triggering an AWS Lambda function from my NestJS service using the aws-sdk library. However, I consistently encounter the following error whenever I try to make the invocation. I've ...
Zain Khan's user avatar
  • 1,694
0 votes
0 answers
12 views

Pinpoint SDK - How to track messages with SendMessages

I am using pinpoint SDK SendMessages using existing templates and substitutions. How can I track values like my custom message ID and other attributes using the event data stream? It seems that ...
dreamwagon's user avatar
  • 1,249
0 votes
1 answer
34 views

AWS Java SDK: Creating a role and Lambda, Lambda cannot assume role

I am trying to get used to the Java SDK for AWS but I am failing to get some basic stuff done. The code is supposed to do the following: Upload a zip file to s3 bucket create execution role for ...
Rova's user avatar
  • 3
-1 votes
0 answers
18 views

AWS cognito user pool get all users from react

I'm using aws cognito for authentication in my app Now my client want a list of users to be displayed on the react app as well and i'm not sure how can i get user list from aws cognito to my react app ...
Darkday-coder's user avatar
0 votes
0 answers
28 views

Unable to invoke AWS Lambda from NestJS

I'm attempting to invoke an AWS Lambda from my NestJS service using aws-sdk lib, but I encounter the following error each time I make the invocation. I have granted all necessary permissions and ...
Zain Khan's user avatar
  • 1,694
0 votes
0 answers
32 views

Accessing AWS Secret Manager With Assumed Role

I am using the following to authenticate my aws-sdk (v3) requests in my React app: const options = { region: 'us-east-1', credentials: fromCognitoIdentityPool({ identityPoolId: ...
TheMachineX's user avatar
0 votes
1 answer
24 views

error: no type named 'IOStreamFactory' in namespace 'Aws' GCC

Issues setting up AWS CPP SDK. Following the hello_s3 example. compiler throws the error; ...include/aws/core/http/HttpClientFactory.h:60:123: error: no type named 'IOStreamFactory' in namespace 'Aws' ...
emag_mI's user avatar
0 votes
1 answer
33 views

Aws sdk v3 javascript GetObjectCommand not returning expected

const { S3Client, GetObjectCommand, PutObjectCommand } = require("@aws-sdk/client-s3"); let client = new S3Client({ region: 'xxxxx', credentials: { accessKeyId: 'xxxxx', ...
vapdev's user avatar
  • 57
0 votes
1 answer
22 views

using aws-sdk to send out OTP verification sms on phone_number

I have created a userpool in aws for otp verification with phone_numbers. below is the code snippet that is sending out OTP message. import { CognitoIdentityServiceProvider } from "aws-sdk"; ...
Naveed Ali Rehmani's user avatar
0 votes
0 answers
22 views

React Hosted on S3 And aws-sdk Access

I have a React app that is hosted in an S3 bucket. The app uses AWS Cognito for authentication. Here is the useEffect that runs when the app loads to initialize the AWS SDK: import { useEffect } ...
TheMachineX's user avatar
0 votes
1 answer
116 views

Problem with abortMultiPart using S3 mock findify

I'm trying to cancel a multiPartUpload that won't be completed, I'm making the request to initiate the upload with the following code CreateMultipartUploadRequest request = ...
JoseCarlosPB's user avatar
0 votes
1 answer
38 views

Replacement for AwsSignerExecutionAttribute from software.amazon.awssdk.auth.signer?

I have logic that signs reactive ClientRequest requests from Spring WebFlux. import org.springframework.util.MultiValueMapAdapter import org.springframework.web.reactive.function.client.ClientRequest ...
pixel's user avatar
  • 25.2k
1 vote
0 answers
38 views

Does boto3 have an API to list AWS billing information?

I'm working with boto3 to interact with AWS services, and I'm wondering if there is an API in boto3 that allows me to retrieve billing information for my AWS account. I've searched the documentation ...
Laura Purcaro's user avatar
1 vote
2 answers
41 views

lib-dynamodb does not show nested lists

I have a DynamoDB table that has an Item that is as follows: { "Item": { "myPrimaryKey": { "S": "config" }, "...
scuba_mike's user avatar
1 vote
0 answers
22 views

AWS SDK NodeJS - Change ECS Fargate Service AutoScaling minimun tasks

All good? My project demands a lot at a certain time of day. Ex: 7:00AM to 1:00PM So I need to change the code of the minimum autoscaling tasks of my service, ecs, of aws via aws-sdk, but I can only ...
Ton Vital's user avatar
0 votes
1 answer
175 views

Getting error while using @aws-sdk/client-sqs in node.js

While using the sendMessage method of SQS getting the following error error SyntaxError: Unexpected token T in JSON at position 0 Deserialization error: to see the raw response, inspect the hidden ...
n9dhal's user avatar
  • 18
0 votes
1 answer
23 views

AWS create a s3 bucket through API and do different tasks in single same API call

I am able to create a s3 bucket in aws through aws-sdk API and make policy changes and do other changes , but I have to do different API call each tasks So my question is can I do all tasks in single ...
Hunter's user avatar
  • 1,549
0 votes
1 answer
37 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 ...
Sk96's user avatar
  • 113
1 vote
3 answers
59 views

No method for setObjectAcl in AWS Java SDK v2.x

I am upgrading a legacy java application that used AWS SDK v1.5 for S3 operations, and one of the functions it had to do was to change an objects ACL, from private to public-read, based on certain ...
user2989397's user avatar
0 votes
1 answer
26 views

AWS javascript sdk v3 not working with EC2 credentials via IAM roles

const config = { region: process.env.AWS_REGION, credentials: { accessKeyId: process.env.AWS_ACCESS_KEY_ID, secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY, };, ...
GIREESH S's user avatar
-1 votes
0 answers
8 views

Is it possible to create calendar meeting via AWS SDK API for WorkMail?

Is it possible to create calendar meeting via AWS SDK API for WorkMail? The goal is to create meeting in a calendar (it is supported by AWS WorkMail Calendar manually) I was looking for Java/rest API ...
LeoPl's user avatar
  • 1
0 votes
0 answers
16 views

encryption sdk with asymmetric KMS key

Is it possible to use AWS Encryption SDK in a networkless environment, if I am using an asymetric AWS-KMS key, and provide the public key to encrypt the data-key with? Theoretically, it should be ...
f.khantsis's user avatar
  • 3,382
0 votes
1 answer
40 views

How to find all regions given a country name in AWS Java SDK?

This class provides constants for all the regions AWS supports. However instead of manually creating a list in my app for all US regions, is there a way to get all supported regions from AWS SDK ...
heyitsvajid's user avatar
  • 1,052
1 vote
1 answer
41 views

How to query dynamodb to retrieve item with prefix `sk` id

I have a dynamodb table containing a pk which represents the user id and a sk which represents an entityId. There are several entity types and each type has a prefix in the db for the sk. For example: ...
zlZimon's user avatar
  • 2,446
-1 votes
1 answer
86 views

SQS Listener for S3 CreateEvent in AWS Java SDK v2

In our Java Spring Boot application using aws-spring-cloud v2.4.4 and AWS SDK v1 we have the following code which listens for S3 Events, checks whether the Event Name of the triggering event is "...
Martin Bamford's user avatar
0 votes
1 answer
32 views

Ruby AWS SDK secretsmanager 'undefined method `[]' for nil:NilClass (NoMethodError)'

I'm trying to use the AWS SecretsManager SDK in Ruby and I'm getting the following error: .rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/aws-sdk-core-3.186.0/lib/aws-sdk-core/ini_parser.rb:28:in `...
Alvaro's user avatar
  • 41
-1 votes
0 answers
13 views

S3 folder download from NodeJs server give 504 timeout error

Here is the code block that i'm trying to get the S3 folder complete download using NodeJS. But getting error with 504 timeout error. I have used the old version of aws-sdk and also tried with the @...
rizwan ahmad's user avatar
0 votes
0 answers
34 views

AWS SQS message push taking 50 secs

For some of the requests, sqsClient send message taking 50+ seconds to push message in SQS queue. How to pass CLientConfiguration so that timeout happens quickly and accordingly retry happens. Tried ...
Ashish Gupta's user avatar
0 votes
0 answers
41 views

Is there a way to batch-check the existence of specific object versions in AWS S3?

This post comes from my recent attempt at solving https://github.com/ropensci/targets/issues/1172 (more background: https://books.ropensci.org/targets/cloud-storage.html). In a reproducible pipeline, ...
landau's user avatar
  • 5,714
-1 votes
1 answer
28 views

AWS Lambda function returning error : Lambda function could not be function using sls deploy with Node Js

Error: UPDATE_FAILED: HelloLambdaFunction (AWS::Lambda::Function) Resource handler returned message: "Lambda function shop-manager-admin-api-dev-hello could not be found" HandlerErrorCode: ...
Dylan's user avatar
  • 1
-1 votes
0 answers
34 views

How to mock a specific AWS-SDK dynamoDB method using the jest library?

I need to mock the scan method to return Promise and handle both the resolve and reject scenario while mocking the scan method of DocumentClient in DynamoDB. The scan method call snippet looks like ...
Pujan Soni's user avatar
0 votes
1 answer
22 views

Difference between DescribeJobExecutionCommand in AWS SDK Iot and Iot-Jobs-Data-Plane?

I am working with AWS SDK for Javascirpt and notice that both iot and iot-jobs-data-plane services has a command called "DescribeJobExecution" that return the current status of a job ...
Lupus's user avatar
  • 13
0 votes
0 answers
72 views

MYSQL SELECT INTO with awswrangler library

I am trying to run an INSERT INTO query to perform UPSERT on a table on a MySQL database managed by RDS. This is the python code I wrote to perform the operation: import awswrangler as wr import ...
GDC's user avatar
  • 17
0 votes
1 answer
16 views

Remove number value from column using Put?

I know we can use the update / remove operator to clear values, but is it possible to use the PUT operator? I don't think sending an empty string value will work since it's a number value.
RJK's user avatar
  • 226
0 votes
0 answers
41 views

Should a new S3 client be initiated on every request?

I am creating a simple CRUD api using NodeJS + TS and AWS SDK. I configured AWSCognito and IAM services for accessing S3 resources. User can for example request a service that returns all the objects ...
dm98's user avatar
  • 53
0 votes
0 answers
56 views

AWS.Cryptography.EncryptionSDK.AwsEncryptionSdkException: Failed to build header body

I'm trying to use the AWS Encryption SDK for .NET to encrypt and decrypt plain text using KMS. When encrypting a string I see the the error in the title. I'm not sure what I'm doing wrong as I'm ...
dirk345's user avatar
  • 21
0 votes
1 answer
91 views

Upload Feed to Amazon with AWS SP-API

My problem is uploading xml file in url that should be uploaded after feed is created, but every time I am getting error SignatureDoesNotMatch I am trying to upload xml file on url that I got from ...
Mica's user avatar
  • 3
0 votes
1 answer
33 views

AWS s3 bucket manage by aws-sdk in nodejs , Change aws s3 bucket public access from nodejs

How we can change aws s3 bucket public access from nodejs ? , see sreenshot I am able to create/delete and put/delete object with aws-sdk from nodejs , see below example code, but I want to unblock &...
Hunter's user avatar
  • 1,549
0 votes
1 answer
45 views

Respond to MFA_Setup challenge - React, Node/express, AWS-sdk app

I have react app at front-end and node/express at back-end. For all Congito users, MFA is mandatory. The flow for normal login in my application is (without MFA) is as below, Cognito user enters ...
micronyks's user avatar
  • 54.9k
0 votes
0 answers
10 views

@EnableDynamoDBRepositories using aws-sdk2 and springboot3

I'm migrating my app to springboot3 which requires me to use aws-cloud3 and aws-sdk2. I do use DynamoDB with @EnableDynamoDBRepositories and also using DynamoDBMapperConfig from sdk1. @...
Diego Ching Jenkins's user avatar
0 votes
0 answers
33 views

'Uncaught type error: t is not a constructor'

I'm using aws-sdk in the Vite react js project. The build is working fine. In production return 'Uncaught type error: t is not a constructor' how to fix this? I have no idea about this. I've tried ...
Bayrsaihan Tergeltengis's user avatar
0 votes
1 answer
49 views

How can I get EC2 instance metadata using Spring Cloud v3?

I am working on a Java / Spring Boot / Spring application which was using Version 1 of the AWS Java SDK and version 2.4.4 of io.awspring.cloud. This application is using the class io.awspring.cloud....
Martin Bamford's user avatar
0 votes
1 answer
25 views

Fetch all record by filtering nested array of objects in dynamodb using nodejs

Suppose I have following HR table: HR = { id: "11", name: "Ahmad", designation: "CEO", promotion_history: [ { "title": "CFO", &...
H. Pardess's user avatar
2 votes
0 answers
32 views

Why can't I register one specific version of `@aws-sdk/client-ssm` to my tsyringe container but another version works?

I want to register the @aws-sdk/client-ssm with my my tsyring container like all the other aws services I am using. However when I am using "@aws-sdk/client-ssm": "3.435.0" and ...
zlZimon's user avatar
  • 2,446
1 vote
0 answers
19 views

Download file from s3 using AWSSDK.S3 with pause and resume using ASP .Net

I would like to download a file from s3 with pause and resume functionality using AmazonS3Client. The code I currently have is: public async Task<IExternalApiResult<Stream>> ...
Franco's user avatar
  • 569
0 votes
1 answer
15 views

Displaying an AWS S3 Object/Image on Angular Frontend

I try to display an image I get from s3 via aws-sdk in my Angular frontend. Getting my credentials via Cognito works fine. However I have some trouble with connecting the response from getObject to my ...
x23b5's user avatar
  • 669
0 votes
1 answer
58 views

Kotlin DynamoDB Boolean nullable property never get assigned

I'm writing a test which I need to create a record in local DynamoDB with a nullable boolean property. This is my setup: @DynamoDbBean data class Event( // other properties @get:DynamoDbAttribute(&...
truongnm's user avatar
  • 2,353
1 vote
0 answers
27 views

Failed to add aws-sdk-rust to dependency within cargo.toml

I'm build a Rust project integrating with AWS. I'm going to use aws-sdk-rust crate and added it into cargo.toml. But I faced an issue, and wasn't able to fix it. Here's the issue content. error: ...
Simon Bergman's user avatar

1
2 3 4 5
126