Questions tagged [aws-sdk-java-2.0]

164 questions
0
votes
0 answers

AWS lambda function times out invoked from aws java sdk V2

I have created a AWS lambda function (written in python) that reads a tar.gz file from one S3 bucket, unzips and untars it and writes the extracted files to another S3 bucket. Tar inside the GZ is of >1GB size so lambda takes more time to complete…
0
votes
1 answer

create a file.pem containing the private key when creating a Key Pair using AWS SDK for Java

I am trying to create Key Pairs using the AWS SDK for Java. Usually if you are using the Management Console on AWS website and when you create a new Key Pair, you are provided with a YourKeypairName.pem file containing the private RSA key that you…
0
votes
1 answer

Migrate AmazonWebServiceClient to ApiGatewayAsyncClient in aws-sdk-java-v2

I'm currently using an AWS java client to request a gateway API. The actual code relies on "aws-sdk-java" and I want to migrate the more modern version "aws-sdk-java-v2". The client would then benefit from a non blocking I/O API. Turns out,…
0
votes
1 answer

AWS S3 Pre Signed URL with Metadata

Here is the code snippet where I am trying to upload a document with some custom metadata using AWS S3 pre signed URL. try (CloseableHttpClient httpClient = HttpClients.createSystem()) { var tempFile =…
enthusiast
  • 355
  • 1
  • 5
  • 16
0
votes
1 answer

DynamoDBAttribute with DynamoDbEnhancedAsyncClient not working

Looks like renaming a field with @DynamoDBAttribute does not work with the new DynamoDbEnhancedAsyncClient. Entity: @DynamoDbBean public class TableEntity { @DynamoDBAttribute(attributeName = "unique_id") private String id; public…
Bhushan
  • 590
  • 1
  • 7
  • 23
0
votes
1 answer

Whats The AWS SDKV2 equivalent of setSdkClientExecutionTimeout

I have a client with a guaranteed execution timeout setting here (which can be configured per request) https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/AmazonWebServiceRequest.html#setSdkClientExecutionTimeout-int- But I cannot…
Arunav Sanyal
  • 1,708
  • 1
  • 16
  • 36
0
votes
0 answers

Multiple timeout when uploading an object to Amazon S3

I'm communicating with AWS via AWS Java SDK V2 in a Spring boot Project. I have a scheduled task that run 4 times per day (6 hours interval) that will extract some information from database and put them in CSV file in an Amazon S3 bucket. The…
0
votes
1 answer

AWS ProfileCredentialProvides AWS SDK1 VS AWS SDK 2 JAVA

Can someone please explain the difference between the two libraries below - I have two pieces of code, both trying to list s3 buckets in an account. JAVA 1 Library. that uses CredentialProvider from …
user3867198
  • 1
  • 1
  • 3
0
votes
1 answer

AWS SDK Java V2 SIGNING_REGION_SCOPE ERROR

I am using next AWS dependency: software.amazon.awssdk s3 2.17.34 And here is my bean configuration for S3Client @Bean S3Client amazonS3Client() { …
0
votes
1 answer

Adding Configuration set to SES email using Java SDK v2?

I am trying to send an email through AWS SES using Java SDK 2. Although I am able to send the email successfully. I wanted to know how to set the Configuration Set while sending out the email in Java SDK 2. I am trying to follow the code similar to…
0
votes
2 answers

AWS SDK Lambda Invoke fails as input is not Base-64 encoded

When I am trying to invoke a Lambda function (below is my code) , I am getting an error in CloudWatch Logs saying the input is not a valid Base-64 string. String payload = "xxxxxxxxxxx"; SdkBytes payloadBytes =…
0
votes
1 answer

How to get region of S3 bucket with Bucket name?

I am working on project with Amazon S3 and I am using AWS SDK 2 to interact with S3. I have many old buckets created into my S3 account and now I want to change the code of authentication and setting the ACL. I have created S3Client…
Neelam Sharma
  • 2,745
  • 4
  • 32
  • 73
0
votes
1 answer

Unable to set Expiry Time of File Object on AWS S3 Bucket

I am setting an expiry time of 30 minutes while uploading a FileInputStream to S3 bucket using AWS SDK , but the file was not deleted after 30 minutes . I even tried the next day at 12:00AM thinking maybe the queue is refreshed at night but still…
0
votes
2 answers

How do we retrieve ec2 client tags

How can I retrieve the tags for ec2 instance using Java aws v2 library. I have been stuck at this for a while. The filter I want to apply is the resource id but its giving me a syntax error DescribeTagsRequest req =…
0
votes
1 answer

Maven dependencies for AWS S3 classes

Could anyone help me with maven and AWS? In the documentation, they explain that we need to add the following dependencies:
amir
  • 331
  • 2
  • 9
  • 20