6,343 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
46
views
AWS SDK v4 and S3 GetObject - System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send
I'm trying to figure out the source of this issue so I have created a little sample C# app that uses the AWS SDK v4. It calls out to an s3 bucket to get a file, the same file, in a loop.
Here's a ...
0
votes
0
answers
63
views
How can I standardize Amazon Bedrock model invocation parameters when each provider and model uses different request schemas?
I’m building an internal LLM testing platform where users can select any Amazon Bedrock model and dynamically adjust its input parameters (e.g., max_tokens, temperature, top_p, embedding options, etc.)...
1
vote
1
answer
83
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
69
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
0
answers
35
views
AWS SDK SNS not found in Gradle build
I have an older code base that I've upgraded slightly to Java 11 and Gradle 5.6. It does not complain about :
implementation platform('software.amazon.awssdk:bom:2.1.0')
but throws an error when I ...
0
votes
1
answer
52
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
1
answer
69
views
quarkus-logging-json wraps AWS SDK EmfMetricLoggingPublisher logs
I'm using quarkus-logging-json in my project and want to add automatic EMF logs to my Lambda clients like this:
LambdaAsyncClient.builder()
.httpClient(NettyNioAsyncHttpClient.create())
...
0
votes
0
answers
82
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 = ...
1
vote
0
answers
184
views
Uploading a file (PutObject) using aws-sdk with an InputStream received from a Mutlipart request
I am using aws-sdk to work with corporate S3 compatible storage. My S3 client configuration looks like this:
@Bean
public S3Client s3Client() {
return S3Client.builder()
....
0
votes
1
answer
133
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 ...
0
votes
1
answer
56
views
Cannot retrieve more results using ListJobRunsRequest due to invalid token
Using EMR serverless client, I'm retrieving job runs for a specific application. The maximum fetch size set by AWS is 50, hence I need to perform further calls, providing a token which is taken from ...
-3
votes
1
answer
195
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
18
views
Unable to import amazon.awssdk classes in Junit test
I am facing difficulty in running Junit test cases. I am writing a test case for startUpdateRootEmailAddress.
After adding below statement:
import software.amazon.awssdk.services.account.model....
0
votes
0
answers
84
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
51
views
How to move a file from an SFTP server to an S3 bucket using the AWS SDK?
I'm working on an AWS Lambda project where we need to process some files on an SFTP server. Files that have been successfully processed need to be moved to an S3 bucket for temporary storage. We have ...