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
6
votes
1 answer

S3 download pdf - REST API

I am trying to serve one of my PDF stored on S3 using Spring Boot Rest API. Following is my code : byte[] targetArray = null; InputStream is = null; S3Object object = s3Client .getObject(new…
Shivkumar Mallesappa
  • 2,875
  • 7
  • 41
  • 68
6
votes
1 answer

batchLoad on a Global Secondary Index in Dynamo

Is there a way to perform a batch Load from a table in DynamoDB using the Global Secondary index? The batchLoad API accepts only HashKeys, and the queryPage API only lets you pass in a single key.
vineet
  • 151
  • 3
  • 11
6
votes
1 answer

How to get outputstream from an S3Object?

My goal is to fetch an object (image) from S3, change the metadata of the file, and replace it with new file that has changed metadata. For changing the metadata I am using commons imaging library. I have coded the sample below that works as…
Anthony
  • 33,838
  • 42
  • 169
  • 278
6
votes
4 answers

NoSuchMethodError with jackson while trying to upload files to Amazon S3 using java.

My project is trying to upload files to Amazon S3 using aws-java-sdk-1.11.15. I'm using ant to build my project on CLI. The jackson version I'm using is 2.8.0. I'm adding my lib folder to my classpath. All my jar files are in my lib folder. I get…
srao
  • 111
  • 1
  • 9
6
votes
3 answers

Amazon Cloud Watch Log - PutLogEventsRequest - The given sequenceToken is invalid

I am building a small log tracker for my application using Amazon Cloud Watch service. The idea is not track log outputs on files and use search engine from aws console to find log information. I am using: Eclipse as IDE Java 8 Dependencies :…
afym
  • 532
  • 2
  • 6
  • 22
6
votes
1 answer

Can't access S3 Pre-Signed URL due to authorization

Using Java8 and aws-java-sdk 1.10.43 I'm trying to get a Pre-Signed URL to an S3 file. I do get back a link, but browsing to it lead to this error: authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256 To…
user2339344
  • 951
  • 2
  • 12
  • 22
5
votes
2 answers

How to Configure using STSAssumeRoleSessionCredentialsProvider with roleSessionName and roleArn for AWS SDK for Java 2.x?

Currently for AWS SDK for Java 1.x im using below code. @Configuration @ImportResource("classpath:aws-context.xml") public class AmazonS3Config { @Bean(destroyMethod = "shutdown") public AmazonS3Client…
5
votes
2 answers

How to do auto script generation with AWS glue job with AWS java SDK

I am creating glue job creation using Java Sdk. It has only two required params Command and Glue version. But i need to create job with auto script generation. As we can do from console, we add data source, A proposed script generated by AWS Glue,…
5
votes
2 answers

AWS Java SDK - Running a command using SSM on EC2 instances

I could not find any examples of this online, nor could I find the documentation explaining how to do this. Basically I have a list of Windows EC2 instances and I need to run the quser command in each one of them to check how many users are logged…
Alexandre Krabbe
  • 727
  • 1
  • 13
  • 33
5
votes
2 answers

How to subscribe a SQS queue to a SNS topic in Java

When I create a new queue and subscribe it to a topic in Java, no message comes. The same via the AWS web console works fine. I guess I have to confirm the subscription somehow, but the sns.confirmSubscription method needs a token - where shall I…
Barney
  • 797
  • 1
  • 11
  • 20
5
votes
3 answers

AWS Java SDK Version For Creating a Lambda

I'm trying to develop an AWS Java lambda function by following the guidelines described here which describes the implementation of the RequestHandler interface and also references the AWS-lambda-java-core library. However, I am trying to use the…
D-Dᴙum
  • 7,689
  • 8
  • 58
  • 97
5
votes
1 answer

Cognito SRP Authentication JAVA SDK

Iam trying to authenticate a Java app with Cognito. I have used for python the warrant library that worked very good. But i want to do the same in java now. My Python function i used for authentication with the warrant library def…
Khan
  • 1,418
  • 1
  • 25
  • 49
5
votes
1 answer

AWS java SDK does not honor log4j properties

Whenever I use AWS Java SDK I get bombarded with crazy amount of logs because it being set to debug and I cannot get it to stay quite. Below is the result of the output with -Dlog4j.debug flag. it shows that my log4j.properties file has been read…
jk-kim
  • 1,136
  • 3
  • 12
  • 20
5
votes
2 answers

How do I download an S3 file only if it has changed?

I have a 900 MB file that I'd like to download to disk from S3 if it isn't already in place downloaded. Is there an easy way for me to only download the file if it isn't already in place? I know S3 supports querying MD5 checksum of files, but I'm…
Ztyx
  • 14,100
  • 15
  • 78
  • 114
5
votes
2 answers

How do you make a Java client side call to an AWS API gateway, that has an IAM role accosiated to it

I am looking for examples of the java code used to make a call to an AWS API Gateway. I can make the call to an AWS API gateway that dose not require IAM verification but I am finding it very difficult to find a clear example of how to structure a…
1 2
3
36 37