182 questions
0
votes
1
answer
102
views
SQS endpoint resolution by AWS SDK
I am configuring SQS client as shown in the below snippet:
SqsClient client = SqsClient.builder()
.region(region)
.credentialsProvider(DefaultCredentialsProvider.create(...
0
votes
1
answer
79
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
97
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
97
views
Recording and reusing an AWS JSON response
I'm trying to use an existing AWS JSON response to do exploratory tests with so I don't use resources I don't have permissions for. My company has strict AWS permissions although someone has given me ...
0
votes
0
answers
240
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
118
views
What does AWS mean when they say that there are scalability issues with Checked Exceptions? [closed]
I am upgrading AWS' Java SDK from 1.x to 2.x. In 2.x, it seems that most exceptional cases are modeled with Unchecked Exceptions, as opposed to Checked Exceptions like it was in 1.x.
When trying to ...
0
votes
0
answers
102
views
How to verify that two files are equal using Java AWS SDK
I am looking for the way how to compare two files (especially large files) in S3 within the same bucket using Java AWS SDK.
I do not need to verify whole bucket if there are duplicates. As I ...
1
vote
1
answer
217
views
Java Amazon SDK 2.x equivalent for the 1.x "S3Objects" utility class
I'm migrating a java project that was using the AWS SDK 1.x to list and iterate through objects lazily in S3.
S3Objects iterableS3Objects = S3Objects.withPrefix(amazonS3, myBucketName, myPrefix);
for ...
0
votes
1
answer
739
views
How to set the request body for POST request using the AwsCrtHttpClient (AWS CRT HTTP Client?)
I am creating HTTP requests with the AWS CRT HTTP Client, but I cannot find a way to set the request body. I am using Java 11 with the AWS SDK version 2.27.9. No matter how I configure this ...
1
vote
1
answer
96
views
How to use the AWS CRT HTTP Client with Hoverfly?
I would like to implement the AwsCrtHttpClient and intercept the HTTP requests in the unit tests with Hoverfly, but Hoverfly is not intercepting the requests. The client is initialized like: private ...
2
votes
0
answers
165
views
AWS SDK Https calls from EKS pod slower than ECS
I have a Spring Boot reactive application running on both ECS and EKS, with similar hardware configuration (cpu:6 and memory 16G).
This applications has a REST API endpoint that updates multiple ...
1
vote
0
answers
117
views
AWS S3 SDK v2 Upload Adds Random String Prefix to JSON File
I'm using the AWS SDK v2 for Java to upload JSON data to an S3 bucket. However, after the upload, the file in S3 contains a random string prefix and the JSON data appears to be incomplete or corrupted....
0
votes
0
answers
171
views
AWS MQTT3 Websockets Connection Closed Unexpectedly
I'm trying to connect to AWS MQTT3 via websockets with authentication from Cognito, but I'm getting Caused by: software.amazon.awssdk.crt.mqtt.MqttException: The connection was closed unexpectedly.. ...
0
votes
1
answer
300
views
Amazon SQS Do I need to make DeleteMessage request to eliminate message or does some other way exist to delete the message from the queue?
I am new to AWS and wanted to ask a question about Amazon SQS and AWS SDK. From my understanding SQS has visibility timeout feature and after making ReceiveMessage request call the message gets hidden ...
1
vote
1
answer
1k
views
AWS Java SDK 2 (putObject) + MinIO: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256
I have run MinIO in a docker container, created a bucket (test), made the bucket as public, created access key, set a server location (us-east-1).
After that I build a client:
final S3Client client = ...