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

Different S3 object listing when uploading via Java SDK and AWS Console

I have a bucket in S3 with the following structure and contents: javaFolderA/ └── javaFolderB/ └── javaFile.tmp consoleFolderA/ └── consoleFolderB/ └── consoleFile.tmp The java* folders and file were uploaded via the Java SDK: final File…
avojak
  • 2,342
  • 2
  • 26
  • 32
0
votes
0 answers

AWS S3 file upload - 1 gb file

I am trying to upload large files (less than 5 GB, hence not multipart upload, normal upload) using java sdk. Smaller files gets uploaded in no time. but files which are above 1 MB, doesnt upload. My code gets stuck in the lince where actual upload…
FunWithJava
  • 213
  • 1
  • 2
  • 9
0
votes
0 answers

S3 upload working from aws cli but AccessDenied from aws s3api

I am facing a strange issue (might be related to bucket policy) with s3 upload. When I am trying to upload a file using aws cli along with sse-kms, it is getting uploaded without any issue. But, when I am trying to upload the same file with…
Vikash Pareek
  • 1,063
  • 14
  • 30
0
votes
1 answer

Get all the regions of aws dynamically for user to choose from

How can I get list of all regions to show to user to choose from. basically I want to show a dropdown with all regions possible. This is for S3 bucket configuration (not sure if ec2 describe region would work?). All it should be dynamic and not…
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
0
votes
2 answers

where to find specific version of aws-java-sdk?

I want to download aws-java-sdk-1.9.5, could not find any archive for this jar. Whatever I am finding is the latest jar from AWS site https://aws.amazon.com/sdk-for-java/ I also checked maven repository but there the available jar is of 2 KBs only…
Vikash Pareek
  • 1,063
  • 14
  • 30
0
votes
1 answer

Impossible connect to RDS MySQL from AWS Lambda

I have RDS MySQL database created under one AWS account. This DB is opened, i can connect by Workbench or by any other desktop app. Also i have other AWS account where i'm trying to create Lambda function for to connect to RDS DB from my first…
Yevhen
  • 791
  • 9
  • 24
0
votes
1 answer

AWS Lambda invoke exception "No LambdaFunction annotation for method invoke"

I am invoking a Lambda function from my Java code that is running inside Spark process. The invocation is failing with following exception: 23:22:50,043 ERROR com.gravty.batch.process.BitProcessImpl - …
meeza
  • 664
  • 1
  • 9
  • 20
0
votes
1 answer

ArchiveTransferManagerBuilder Unable to find a region via the region provider chain

The AWS Glacier API gives me an error about not finding the region even when I specify it specifically: EndpointConfiguration endpointConfig = new EndpointConfiguration("https://glacier.us-east-2.amazonaws.com/", "us-east-2"); AmazonGlacier…
0
votes
1 answer

Java Client for MQTT using AWS IoT

I am fairly new to the Aws IoT . I am aware that we can write the Java client for Aws IoT. I have below three queries: Is the Java Client used only to receive messages from the 'Thing' on Aws ? Can other devices subscribe to the Java Client Can…
heisenberg
  • 139
  • 1
  • 12
0
votes
1 answer

AWS Java SDK: check if an object exists with a specific version in an S3 bucket

I know there is a doesObjectExist method to check if an object exists in a specified bucket, but how do I check if an object with a specific version exists in an S3 bucket? I want to call doesObjectExist(bucketName, objectName, s3Version). Is there…
rooscous
  • 481
  • 2
  • 7
  • 19
0
votes
1 answer

Jackson: "Conflicting setter definitions for property" in JUnit Tests

I have an application that queries EC2 Instance data using Amazon's AWS SDK for Java. The Instance is serialized to a JSON String using the Jackson wrapper class included in the AWS SDK. Later, I'm able to use the Jackson.fromJsonString(String,…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
0
votes
1 answer

S3 get metadata of older version objects

I am getting a 405 method not allowed while trying to retrieve metadata of older versions of an S3 object using a Lambda Java function. AmazonS3 amazonS3 = getAmazonS3(); GetObjectRequest getObjectRequest = new GetObjectRequest(bucket, templateKey,…
John Jai
  • 3,463
  • 6
  • 25
  • 32
0
votes
1 answer

Fastest way of transferring an unstructured collection of S3 files to EC2

If we are downloading an entire virtual directory then there is the method MultipleFileDownload(...) from TransferManager. However MultipleFileDownload(...) does not support downloading an arbitrary list of S3 files objects. What is the best way of…
T. Verdier
  • 311
  • 2
  • 4
0
votes
1 answer

AWS Java SDK fetching many Cloudwatch metrics with one request

I am woking with AWS Kinesis and CouldWatch. How can I fetch many metrics of one shard with one request? This is how I get one metric: GetMetricStatisticsRequest request = new GetMetricStatisticsRequest(); request.withNamespace(namespace) …
0
votes
1 answer

Partially reading a tar.gz file from Amazon S3

I'm trying to extract specific files from Amazon S3 without having to read all the bytes because the archives can be huge and I only need 2 or 3 files out of it. I'm using the AWS Java SDK. Here's the code (Exception Handing skipped): AWSCredentials…
ares
  • 4,283
  • 6
  • 32
  • 63