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
5
votes
3 answers

How do I validate that a Cloudwatch Log Group and Log Stream exists?

Is there any method in java to check whether a given Log Group and Log Stream exists, before getting log events from the Log Group?
5
votes
2 answers

writeTo PipedOutputStream just hangs

My goal is to: reading a file from S3, changing its metadata Push it out to S3 again AWS java SDK doesn't allow outputstreams to be pushed. Therefore, I have to convert the outputstream from step2 to inputstream. For this I decided to use…
Omnipresent
  • 29,434
  • 47
  • 142
  • 186
5
votes
1 answer

Wait for EC2 instance to start

I have a custom AMI which runs my service. Using the AWS Java SDK, I create an EC2 instance using RunInstancesRequest from the AMI. Now before I begin to use my service, I must ensure that the newly created instance is up and running. I poll the…
Slartibartfast
  • 1,592
  • 4
  • 22
  • 33
5
votes
1 answer

Batching multiple files to Amazon S3 using the Java SDK

I'm trying to upload multiple files to Amazon S3 all under the same key, by appending the files. I have a list of file names and want to upload/append the files in that order. I am pretty much exactly following this tutorial but I am looping through…
user1413793
  • 9,057
  • 7
  • 30
  • 42
4
votes
2 answers

Java File Upload to S3 - should multipart speed it up?

We are using Java 8 and using AWS SDK to programmatically upload files to AWS S3. For uploading large file (>100MB), we read that the preferred method to use is Multipart Upload. We tried that but it seems it does not speed it up, upload time…
4
votes
2 answers

Use of DynamoDB annotations in nested objects

I am trying to use DynamoDB annotations in nested objects as below: @DynamoDBTable(tableName=xyz) class entity1{ @DynamoDBAttribute @DynamoDBTypeConvertedJson private List userActions; } class UserAction{ …
Deepak
  • 962
  • 4
  • 17
  • 38
4
votes
1 answer

How to use IMDSv2 from AWS Java SDK

If an instance is configured for IMDSv2 then after upgrading AWS-CLI we are able to connect to IMDSv2 , but we can not connect to it from java code. Also, we could not find any documentation regarding whether we need any specific version of AWS java…
Alok Bhandari
  • 41
  • 1
  • 3
4
votes
2 answers

Get controller name and java service path in controller advice

Hi All i have created a global exception handler in my spring boot app and writing the exception occurred in AWS cloudwatch below code working fine i am able to write the exception in cloudwatch but the challenge is i am unable to get the…
4
votes
1 answer

AWS Aurora Serverless RdsDataClient unicode problem

I'm using latest AWSRDSData client for running queries on my Aurora-MySQL database. The schema and table charsets are utf8mb4 and collation is utf8mb4_turkish_ci; When I insert rows via MySQL workbench, there's no problem with unicode characters but…
4
votes
1 answer

Does the standard AmazonDynamoDBClient use exponential back off when retrying requests that failed due to a ProvisionedThroughputExceededException?

I've created a standard AmazonDynamoDBClient using the AmazonDynamoDBClientBuilder: AmazonDynamoDBClient client = AmazonDynamoDBClientBuilder.standard().build(); In the documentation for the AmazonDynamoDBClient, it…
4
votes
1 answer

Creating SQS using AWS Java SDK for role-based, federated user without having credentials

I am trying to create SQS using AWS Java SDK. I do not have access-key and key-id, I go into AWS console with a link provided by my company. It is a role-based, SAML access (federated login). Whenever I try creating SQS from Java code, either I get…
4
votes
1 answer

Execute A set of queries as Batch In AW Athena

I'm trying to execute AWS Athena queries as batch using aws-java-sdk-athena. I'm able to establish the connection,run individually the queries, but no idea how to run 3 queries as batch. Any help appreciated. Query 1.select * from table1 limit 2 …
Juhan
  • 1,283
  • 2
  • 11
  • 30
4
votes
3 answers

AWS Serverless Java Lambda Debug

Please let me know if it is possible to debug Java AWS Lambda (serverless framework) in eclipse. Any pointers will be really helpful
Anil Bhaskaran
  • 495
  • 1
  • 8
  • 23
4
votes
3 answers

AWS Java - How do I load the ~/.aws/config file?

I've been reading through documentation for some time. I can see examples for the JavaScript and Go SDK that show how to load the config file by setting the AWS_SDK_LOAD_CONFIG environment variable to a truthy value. The documentation is here and…
Niko
  • 4,158
  • 9
  • 46
  • 85
4
votes
1 answer

AWS Cognito - Credentials Issue

I am trying to use AWS Cognito to authenticate (using Google) and authorise users, with the intention of assigning IAM roles for the authorised users. I have followed the below steps till now Use the authorization end point to fire up Google…