185 questions
0
votes
1
answer
68
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
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
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:
...
0
votes
0
answers
96
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 ...
0
votes
0
answers
22
views
Is there a simple way to get the progress of an uploadDirectory request to S3TransferManager?
In the AWS SDK v1, it was possible to add a ProgressListener directly to a MultipleFileUpload object and set up logging in the progressedChanged method so that the progress of a directory upload could ...
0
votes
1
answer
684
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 ...
2
votes
0
answers
155
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 ...
0
votes
0
answers
155
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.. ...
1
vote
1
answer
968
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 = ...
0
votes
1
answer
236
views
aws sdk: Where is located S3EventNotification
Here my SQS listener class:
@RequiredArgsConstructor
@Slf4j
@Service
public class SQSS3CreatedNotificationService {
private final FluxProperties fluxProperties;
private final ...
3
votes
0
answers
414
views
What are the NettyNioAsyncHttpClient default configuration values?
The AWS SDK netty HTTP client is configurable through NettyNioAsyncHttpClient.Builder, but I can't find any documentation on the default values.
In particular I'm using the firehose SDK and looking ...
0
votes
1
answer
1k
views
Getting connection timeout while reading file from s3 using aws sdk 2x
I have a batch application which reads large file from amazon s3. MyS3 config:
@Configuration
public class S3Configuration {
@Bean
public S3Client s3Client() {
...
1
vote
1
answer
388
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
vote
0
answers
946
views
AWS Java SDK V2 and aws-secretsmanager-jdbc incompatibility?
I have a Java application that uses some V2 dependencies to manage our AWS environment. Than, these are my other aws dependencies
<dependency>
<groupId>software.amazon.awssdk</...
1
vote
1
answer
1k
views
How do I set up LocalStackContainer for KMS using the AWS Java SDK v2?
My KMSClient is being instantiated way before LocalStack is started and I don't know how I should initialise my KmsClientBuilder to override the endpoint.
KmsClient.builder().endpointOverride("...
0
votes
0
answers
168
views
Efficiently migrate Blobs from Oracle table into S3-Glacier
Scenario :- I have a Live table with few String columns(<10) and 1 Blob column (to hold binary for PDF).This in on premise cloud in Oracle 19c.
Each Blob item has an average size of 2MB, current ...
0
votes
0
answers
76
views
AmazonS3ClientBuilder Internal Server Error on Lambda
I have a LambdaFunction on Java 17 and I get a Internal Server Error, if i try to add the s3Client code snippet into my codebase. I really don't know how to get rid of it.
Because of IAM I don't have ...
0
votes
1
answer
153
views
Invalid response from AWS KMS GeneratedDataKey: Invalid ciphertext (AWS Database Encryption SDK - DynamoDB)
When using AWS Database Encryption SDK I'm facing the error "Invalid response from AWS KMS GeneratedDataKey: Invalid ciphertext".
By debugging the AWS SDK v2 (Java), I found that the length ...
1
vote
0
answers
84
views
Is it possible to use dyanmodb streams with encrypted data?
I am doing some investigation on whether it is possible to use DynamoDB streams with encrypted data using the latest DynamoDB sdk updates i.e. can DynamoDB streams decrypt data that was encrypted ...
-1
votes
2
answers
1k
views
Error creating bean with name 'dynamodbClient': Lookup method resolution failed
Java: 20.0
Springboot: 3.0.1
Dependency
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java</artifactId>
<version>2.20....
1
vote
1
answer
831
views
AWS Java SDK - Is it possible to create an REST API with lambda backend
Is it possible to create a REST API with lambda backend using AWS Java SDK?
I have been able to create HTTP API using software.amazon.awssdk.services.apigatewayv2.ApiGatewayV2Client with a lambda ...
0
votes
0
answers
1k
views
AWS SDK for Java 2.x: How to configure S3Client with access-key, secret-key and role-arn?
I use Spring boot 3 and AWS SDK for Java 2.x
When I try to create S3Client I get an error:
software.amazon.awssdk.services.sts.model.StsException: User: arn:aws:sts::SOME_NUMBER:assumed-role/SOME_TEXT/...
0
votes
1
answer
338
views
How to query a list of partitionKeys with Dynamo DB Enhanced Client in AWS SDK v2
I have a table with both partitionKey and sortKey are defined.
Per https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/ddb-en-client-use-multirecord-query.html, I can query single ...
3
votes
0
answers
855
views
High latency observed while calling AWS sagemaker and online feature-store service
We have recently done an integration with AWS SageMaker and FeatureStore for one of our use-case. On Cloudwatch, we could see the p99: 50-60ms(Overhead + Model) for sagemaker and p99: 15-20ms for ...
1
vote
0
answers
175
views
How do I build a Policy POJO with Statements with Resources in AWS SDK for Java v2.x?
All the v2 documentation around the subject just assumes an already serialized json string, but in our existing code using the v1 SDK we easily create Policy objects with Statement objects with ...