Questions tagged [aws-sdk-java-2.0]
164 questions
3
votes
1 answer
AWS Java SDK Async Client in ECS EC2 Environment
I try to migrate an java service from beanstalk to ECS.
Unfortunately, the async client which is used does not seem to work this way. I also tried to update to the latest version (software.amazon.awssdk:bom:2.13.8) without effect.
For testing I…

Matthias
- 1,378
- 10
- 23
3
votes
0 answers
Creating Java Interfaces with type parameters in Coldfusion
In my CF project, I'm working with the AWS Java 2.0 SDK and I'm trying to implement an async multi part upload, but I'm running into some trouble getting things set up, specifically in creating a BiConsumer Interface.
Docs:…

The Red Duke
- 163
- 10
3
votes
1 answer
AWS SDK v2 SdkAsyncHttpClient implementation Using Java 11 java.net.http HttpClient sendAsync
I am trying to implement a SdkAsyncHttpClient that uses Java 11's java.net.http.HttpClient (specifically sendAsync). SdkAsyncHttpClient has one method to implement CompletableFuture execute(AsyncExecuteRequest asyncExecuteRequest). The…

brcolow
- 1,042
- 2
- 11
- 33
3
votes
1 answer
AwsS3 client throws error on initialization
I am seeing this crash whenever I am trying to initialize aws s3 client. I tried looking for solutions but didn't found any.
BasicAWSCredentials awsCreds = new BasicAWSCredentials(amazonAccessId, amazonSecretKey);
Amazon S3 s3Client =…

Ayush Malviya
- 991
- 1
- 7
- 20
3
votes
0 answers
Amazon SDK custom header issue on Transfer Manager
We are trying to use TransferManager for download file fromAmazon S3. But TransferManager is using getObjectMetadata service multiple times in doDownload function. And to call those service creating a request by copying common members from initial…

olgunyldz
- 531
- 3
- 8
2
votes
0 answers
Unable to fetch the custom properties from AWS secret manager for micronaut application invoked by AWS lambda function
I am getting below error :
Unable to execute HTTP request: Connect to secretsmanager.eu-central-1.amazonaws.com:443 [secretsmanager.eu-central-1.amazonaws.com/ipadress, secretsmanager.eu-central-1.amazonaws.com/ipadress] failed: connect timed out",…

Sriram
- 101
- 9
2
votes
1 answer
How to delete multiple objects in an Amazon S3 bucket using Java V2
So I want to delete all the objects that could be inside a folder in s3 (basically with a certain prefix).
How do I do that?
I am currently using this while (true) loop, but I am told it is not a good approach to use while (true).
This is what I am…

Inderjeet Chawla
- 21
- 4
2
votes
1 answer
Why is the AWS SDK for Java v2 not letting me send emails larger than 10 MB?
I would like to make use of the increased SES sending limit from 10MB to now up to 40MB since September 2021 to send larger Excel files as email attachment.
I used an official code example but unfortunately, I can't go beyond 10MB in size.
I get the…

MJey
- 345
- 3
- 16
2
votes
3 answers
How copy an existing object to same path Amazon S3
Hi I want to copy an existing object to same path in AWS S3 and I am getting following exception
This copy request is illegal because it is trying to copy an object to itself without changing the object's metadata, storage class, website redirect…

Zakir saifi
- 406
- 4
- 23
2
votes
1 answer
Exponential apiCallAttemptTimeout in AWS SDK for Java V2
I'm currently using the AWS SDK for Java v2 (specifically v2.17.1) and the S3AsyncClient::getObject method.
final GetObjectRequest getObjectRequest = GetObjectRequest.builder()
.bucket("my bucket")
.key("some key")
…

Borja Canseco
- 325
- 1
- 6
- 24
2
votes
1 answer
Creating EKS cluster by using Java application
everyone I am new to AWS SDK. I am trying to create an EKS cluster from my java application.
I have used this eksctl create cluster command to create a cluster and I have also done this by using cluster templates.
I have tried to use AWS SDK to…

Naveed Khan
- 65
- 9
2
votes
2 answers
How to remove attribute from item in DynamoDB table?
I have an item whose particular attribute I want to remove using SDK 2.x from DynamoDB. How do I do this? I am using enhanced DynamoDB for table management. Here's a code sample:
DynamoDbTable mappedTable = AwsConfig.getTableSchema(schema,…

Anwesh Mohapatra
- 107
- 1
- 10
2
votes
1 answer
SES metrics not updated in cloudwatch
We have configured tracking in cloudwatch for sending emails via AWS SES programmatically via AWS SDK ( as mentioned in the documentation). Whenever I send an email for the first time with a new configuration set I am able to see the metrics (open,…

Pallavi Kaushik
- 159
- 1
- 3
- 16
2
votes
2 answers
Dyanmodb Enchanced client nested Objects as json
I have nested Object (composition) use to represent data that i want to store and using Dyanmodb enhanced client as part of AWS Java version 2 api. In the readme it explains how to flatten the objects. In the version one of the api was able to store…

tsingh
- 361
- 1
- 5
- 17
2
votes
0 answers
get iam username of resource utilizing ec2
my requirement is, my code will be deployed on an ec2 instance. and at some point, it needs the username of the IAM account who is executing that code. or whose session is currently active on that ec2 instance. Is it even possible?
FYI,
I read the…

Sandip Kumar
- 241
- 3
- 25