6,344 questions
1
vote
1
answer
78
views
How do I get bucket name when I have S3Object instance?
In AWS SDK v1, we could use the getBucketName() method from S3ObjectSummary to retrieve the bucket name. However, in AWS SDK v2, the S3Object class doesn’t seem to provide a similar method.
How can I ...
0
votes
0
answers
63
views
Linker error when importing AWS libraries in Unreal Engine
I am trying to get users to be able to log in via a Cognito account and use those credentials to make calls on a backend API. To that end I have been trying to import the Cognito libraries in an ...
0
votes
1
answer
42
views
How to model a many-to-many relationship in DynamoDB with composite keys and enforce unique (id, ruleId) pairs?
I have a DynamoDB table defined as follows:
Partition key: id (string)
Sort key: ruleId (string)
Example item:
{
"id": "123",
"ruleId": "abc"
}
What I want is ...
0
votes
0
answers
69
views
Why does CloudFlare R2 calculate a different SignatureV4 when using awssdk's S3AsyncClient
Using software.amazon.awssdk:s3:2.32.11 I started with the following code:
var objectKey = "test.txt";
var path = Path.of("/tmp/test/log.txt");
var credentials = ...
0
votes
0
answers
79
views
How to programmatically check if EKS Split Cost Allocation is actually enabled (not just configured in CUR)
I'm trying to programmatically verify whether Split Cost Allocation is truly enabled for Amazon EKS — specifically, whether Kubernetes pod-level usage data is being emitted to my Cost and Usage ...
-3
votes
1
answer
175
views
How to write to S3 bucket only if it doesn't overwrite an existing object [closed]
const {
S3Client,
PutObjectCommand,
GetObjectCommand,
DeleteObjectCommand,
} = require("@aws-sdk/client-s3");
const params = {
Bucket: process.env.AWS_S3_PHOTO_BUCKET,
...
0
votes
0
answers
61
views
Migrating to AWS SDK V3 and IRSA, but session is not refreshed correctly
I am migrating some services to aws SDK V3, and I need to use web identity token for the credentials, but I am facing a strange problem where it works for an hour and the first request after this hour ...
0
votes
0
answers
161
views
Auto populate timestamp Issue AWS SDK v2 in DynamoDB Java
In aws sdk v1 :
@DynamoDBAutoGeneratedTimestamp(strategy = DynamoDBAutoGenerateStrategy.CREATE)
Above annotation was there to create auto generated time field.
In aws sdk v2 replaced with below code:
...
1
vote
1
answer
268
views
Call to Ceph object gateway returns 400
I am attempting to create an object on our Ceph instance and the only piece of information returned is that the request failed with a 400. I don't have direct access to Ceph logs as its managed by the ...
0
votes
0
answers
156
views
How to fix 401 Unauthorized when I use the AWS SDK with Cloudflare R2 Storage in Spring Boot example?
I have a problem about fixing 401 Unauthorized issue when I upload a file through Cloudflare R2 Storage in my Spring Boot example.
I get Token value, access key, secret key and jurisdiction-specific ...
0
votes
0
answers
54
views
Error “Requiring unknown module ‘undefined’” with AWS SDK v3 in Expo SDK 52 (Hermes) when using @aws-sdk/client-cognito-identity-provider
I’m migrating my app to Expo SDK 52 (Hermes) and using AWS SDK v3 to call Cognito from React Native:
import { CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider';
import { ...
0
votes
1
answer
37
views
Custom Auth UI using AWS Cognito, AWS SDK, and connection it to my Rocket Chat applicaiton
I'm working on creating a custom authentication user interface for my Rocket.Chat application. For this, I'm using AWS Cognito and the AWS SDK for communication with Cognito. I'm not using the default ...
1
vote
1
answer
292
views
AWS DefaultCredentialsProvider for fs.s3a.aws.credentials.provider in the aws-sdk version 2
In Pyspark, I use this code so many time:
spark_session = (SparkSession
.builder
.appName(f"ditto-lander-spark-ingest-etl-{args['etl_job_name']}")
...
0
votes
1
answer
108
views
What is the Parameter to access s3 url only once
I have image files stored in AWS S3 bucket, I want to download those files in my application and so I am generating a presigned url. Using this URL, I will be able to download these images.
I am using ...
-1
votes
1
answer
66
views
AWS sdk 2 does not return from ".join()" that is called on the completable future on PutObject when uploading large files
We upgraded from version 1 to the version 2 sdk because support was cut for the first version of the SDK.
The old client sync client was switched out for the new async client and new transfer manager. ...
1
vote
2
answers
426
views
Can I connect a Replit web application to AWS DynamoDB, and should I use APIs or the AWS SDK?
I’m new to Replit and couldn’t find a clear answer in the documentation. I would like to build a web-based application on Replit that uses AWS DynamoDB as the primary data store.
My main questions are:...
0
votes
1
answer
40
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
81
views
Is it necessary to implement a credentials cache when using fromTemporaryCredentials to instantiate an AWS SDK v3 client?
import { DynamoDBClient } from '@aws-sdk/client-dynamodb'
import { fromTemporaryCredentials } from '@aws-sdk/credential-providers'
import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb'
const ...
0
votes
1
answer
48
views
Best practice on handling null API responses from AWS API calls
Lets say I invoke AWS APIs in my java/kotlin code. Example on getHostedZone route53 API below.
Should I check if response == null first or is response guaranteed to be non null? Is null pointer check ...
0
votes
1
answer
28
views
AWS one-time schduler usingf JAVA SDK error Error occurred: Parameter ScheduleExpression is not valid
I'm trying to create a one-time schedular in AWS event bridge using JAVA SDK. Below is the code
package com.example.kafkademo.service;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j....
0
votes
1
answer
359
views
Fix uploading error on @aws-sdk/client-s3 on nestjs
I’m trying to upload attachments to Amazon S3 using the AWS SDK v3 (@aws-sdk/client-s3) within a NestJS middleware, but I keep getting this timeout error:
RequestTimeout: Your socket connection to the ...
0
votes
1
answer
104
views
credentials to the AWS SDK 1.12.780 for Java
I want to set the
Environment variables-AWS_ACCESS_KEY_ID, AWS_SECRET_KEY or AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN
BasicSessionCredentials awsCreds = new BasicSessionCredentials("...
1
vote
0
answers
254
views
Request Timeout Error while uploading to s3 in aws sdk v3 in local environment
I am facing an issue in my local environment while uploading file to s3 after migrating from aws sdk v2 to v3. But there is no issue in the deployed site.I am getting the error "Your socket ...
2
votes
2
answers
251
views
DynamoDB Conditional Delete When Item Might Not Exist
I’m trying to perform a DeleteItem operation in DynamoDB with the following conditions:
If the item with a given primary key (PK) does not exist, the delete operation should succeed.
If the item ...
0
votes
0
answers
28
views
Awssdk in c++ ignores Legal Hold Locks of the MinIO s3 store
I have a object on a MinIO s3 Object Store and want to lock it with a Legal Hold so that I cannot overwrite it in c++.
I set the Legal Hold like that:
Aws::S3::Model::PutObjectLegalHoldRequest ...