Questions tagged [aws-java-sdk]

The AWS SDK for Java provides a Java API for Amazon Web Services. Using the SDK, you can easily build Java applications that work with Amazon S3, Amazon EC2, DynamoDB, and more.

The AWS SDK for Java provides a Java API for Amazon Web Services. Using the SDK, you can easily build Java applications that work with Amazon S3, Amazon EC2, DynamoDB, and more.

Links

548 questions
39
votes
6 answers

AmazonS3: Getting warning: S3AbortableInputStream:Not all bytes were read from the S3ObjectInputStream, aborting HTTP connection

Here's the warning that I am getting: S3AbortableInputStream:Not all bytes were read from the S3ObjectInputStream, aborting HTTP connection. This is likely an error and may result in sub-optimal behavior. Request only the bytes you need via a…
Chirag Sejpal
  • 877
  • 2
  • 9
  • 17
36
votes
2 answers

Pagination with DynamoDBMapper Java AWS SDK

From the API docs dynamo db does support pagination for scan and query operations. The catch here is to set the ExclusiveStartIndex of current request to the value of the LastEvaluatedIndex of previous request to get next set (logical page) of…
Adi GuN
  • 1,244
  • 3
  • 16
  • 38
28
votes
7 answers

package com.amazonaws.services.lambda.runtime does not exist in AWS java sdk 1.10.2

I am trying the Java code example in the Getting Started (Authoring AWS Lambda Code in Java) page, but am stuck as com.amazonaws.services.lambda.runtime pacakge seems to be missing Here is the sample code: package example; import…
Arthur
  • 595
  • 1
  • 7
  • 17
25
votes
8 answers

Java -version shows java 8 while java 11 is installed

After installing java 11 on my system, runtime continues to be 1.8 Versions of java installed: C:\Program Files\Java\jre1.8.0_201 C:\Program Files\Java\jdk-11.0.3 JAVA_HOME env variable value: C:\Program Files\Java\jdk-11.0.3 From command…
TheZerg
  • 309
  • 1
  • 3
  • 9
25
votes
1 answer

API retry logic in Amazon Web Services

http://docs.aws.amazon.com/general/latest/gr/api-retries.html This document mentions that "each AWS SDK implements automatic retry logic and AWS SDK for Java automatically retries requests." What is the default mechanism for Java AWS SDK, if i don't…
WillMcavoy
  • 1,795
  • 4
  • 22
  • 34
24
votes
8 answers

How to download a file from s3 using provided url?

In my application I will get the url of s3 file like : https://s3.amazonaws.com/account-update/input.csv I have to download it and then process it. What I already done : AmazonS3 s3 = new AmazonS3Client(credentials); S3Object s3object =…
Rohit Chouhan
  • 241
  • 1
  • 2
  • 5
15
votes
1 answer

Getting cognito user pool username from cognito identity pool identityId

I am using AWS Congito User Pools for account management with a Cognito Identity Pool that has this User Pool as the Identity Provider. I'm using this to control access to an API through API Gateway that sends requests to Lambda. My Lambda is…
15
votes
1 answer

AWS Cognito Sign-In with Java SDK for desktop application

I searched a lot, but it seems impossible to find a solution from start to finish to this topic. As a premise, I've already implemented Cognito sign-up, sign-in and refresh of credentials in two native apps for both iOS and Android, so I have…
mars
  • 151
  • 1
  • 4
14
votes
4 answers

Upload ZipOutputStream to S3 without saving zip file (large) temporary to disk using AWS S3 Java

I have a requirement to download photos (not in same directory) from S3, ZIP them and again upload to S3 using AWS S3 Java SDK. This zip file size can go in GBs. Currently I am using AWS Lambda which has a limitation of temporary storage up to 500…
pankaj
  • 1,643
  • 4
  • 22
  • 35
12
votes
2 answers

How to check if bucket already exists in AWS S3

How can I check if the bucket already exists in my Aws S3 account using Java SDK? Using below code AmazonS3ClientBuilder.defaultClient().doesBucketExistV2(bucketName); Checks global existence of bucket and returns true if a bucket with this…
12
votes
2 answers

Not all bytes were read from the S3ObjectInputStream, aborting HTTP connection

I recently had to upgrade to aws-java-sdk 1.11.108. I have a java program that downloads s3 objects (8 to 10 GB in size) to EC2 box and process it as a stream. This program has had been working for over 2 years w/o any problems, but after updating…
dee
  • 121
  • 1
  • 4
12
votes
3 answers

Timeout when publishing from AWS Lambda to SNS

I'm trying to publish some data to SNS from a Lambda function call, but it doesn't seem to be working. My function code is - public class Handler implements RequestHandler { private static final String SNS_TOPIC_ARN =…
Rohan
  • 1,180
  • 2
  • 15
  • 28
12
votes
1 answer

JetS3t vs AWS Java SDK

I need to figure out between AWS SDK Java APIs and Jets3t APIs ? which is better in terms of throughput and performance? I am assuming connection is not reliable so i may need to upload/download data in chunks. There is API for multipart upload in…
vbh
  • 135
  • 5
11
votes
5 answers

What is the required configuration steps to have a Spring Boot application send simple e-mails via AWS SES?

I have been fighting with this for several hours today. I started with the documentation at http://cloud.spring.io/spring-cloud-aws/spring-cloud-aws.html#_sending_mails which doesn't really say a lot about the specific steps. It just says that the…
deinspanjer
  • 495
  • 1
  • 7
  • 22
11
votes
3 answers

maven-resources-plugin:2.6 - Cannot create resource output directory

So I just created a Linux instance from EC2 and now I'm trying to install the AWS Java SDK on it. I'm at the end of the installation when I run mvn clean compile exec:java and get this: [ec2-user@ip-xxx-xxx-xxx-xxx aws-java-sample]$ mvn clean…
user2361174
  • 1,872
  • 4
  • 33
  • 51
1
2 3
36 37