Questions tagged [aws-sdk]
The software development kit for use with the Amazon Web Services API.
6,283
questions
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 ...
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 ...
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 ...
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 ...
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 ...
-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
...
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 ...
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: ...
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'
...
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',
...
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";
...
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 } ...
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 = ...
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
...
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 ...
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"
},
"...
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 ...
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 ...
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 ...
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 ...
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 ...
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,
};,
...
-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 ...
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 ...
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 ...
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:
...
-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 "...
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 `...
-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 @...
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 ...
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, ...
-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: ...
-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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 &...
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 ...
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.
@...
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 ...
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....
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",
&...
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 ...
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>> ...
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 ...
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(&...
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: ...