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
0 answers

Amazon S3 copy multipart with destination equal to source

I'm working with AWS Java SDK, specifically to interact with a S3 bucket. Since I read that S3 does not support the append operation, I'm trying to implement myself a form of append. Basically my idea is to: - store into my S3 bucket a file with…
Andrea Rossi
  • 981
  • 1
  • 10
  • 23
0
votes
1 answer

Delete multiple network interfaces in one call with AWS java SDK

I have been trying to figure out how to delete multiple EC2 network interfaces using the AWS Java SDK. It is possible to select and delete multiple network interfaces in one operation in the AWS console, however, the DeleteNetworkInterfaceRequest…
0
votes
0 answers

AWS Lambda - Asynchronously invoked function but nothing happens

I have 2 lambda functions, my first function w/c we'll call "PostStep" invokes another lambda function "RetryStep" asynchronously whenever a timeout occurs. It's been working fine ever since. Now I have to do some code changes, and during testing, a…
0
votes
1 answer

AWS Java SDK Context class not found

I'm trying to develop a Lambda function using the AWS Java SDK and I'm running into a stumbling block. The examples reference a com.amazonaws.services.lambda.runtime.Context class, but I'm not able to find this anywhere in the Java SDK. I have…
alessandro ferrucci
  • 1,261
  • 2
  • 24
  • 48
0
votes
2 answers

Does Aws update bill back in time?

I am programatically downloading aws bill from s3 bucket,parsing all line items and processes them. I am doing this process daily by remembering a marker based on timestamp of last lineitem in the bill. So, in the next run, I will process only the…
Manohar
  • 127
  • 12
0
votes
2 answers

Aws Java sdk how to set tags to volume

I am trying to create an ec2 volume using tags //Create ec2 client using credentials AmazonEC2 ec2 = AmazonEC2ClientBuilder.standard().withCredentials(creds).withRegion(region).build(); List ts = new…
0
votes
1 answer

Are AWS Error Codes available from the Java SDK?

One of our production customers just had a problem uploading a file to S3. When the error was printed out to the log, we received a undescriptive error message: com.amazonaws.services.s3.model.AmazonS3Exception: BadRequest(Service:…
Robert Allurent
  • 187
  • 1
  • 2
  • 10
0
votes
3 answers

AmazonS3Client is deprecated how to get s3client object with using credential

For getting s3 client object i am using below code. BasicAWSCredentials creds = new BasicAWSCredentials(key, S3secretKey); AmazonS3 s3Client =AmazonS3ClientBuilder.standard().withCredentials(new…
Sonali Sahoo
  • 57
  • 1
  • 6
0
votes
0 answers

s3 only allows uploading from one folder

The problem I am having is that I can only upload images from the projects directory (/home/usr/workspace/project/~from here~). For obvious reasons this won't work when I go to publish this feature. I am not sure where I should configure this…
0
votes
1 answer

Creating Account in the AWS Organizations using AWS SDK for Java

Can you give a sample about this question? I've tried something about it but not have succeeded yet. How can I create an account for someone else on my master account? @Bean public AWSOrganizations createAwsAccount(){ …
hsnclk
  • 77
  • 2
  • 12
0
votes
2 answers

Unable to upload file to S3 Bucket using aws-java-sdk

I have a spring boot application which uploads files to S3 bucket. I am receiving the following error whenever the application tries to upload a file. The stack trace is a huge one. So I am providing only a part of…
Soumya
  • 1,833
  • 5
  • 34
  • 45
0
votes
1 answer

AWS Java SDK Build Error

I am trying to build the AWS SDK for java. I have followed the steps as specified on the github repository. I'm getting the following error when i run mvn clean install [ERROR] Failed to execute goal…
Dakait
  • 2,531
  • 1
  • 25
  • 43
0
votes
1 answer

java - downloading a input stream using servlets

I am using the following code to get the content from an object in s3 bucket. I am able to copy the data into a file locally, but the file needs to be 'downloaded' and it has to be shown in the browser's downloads list. I searched a bit about this…
lavy
  • 11
  • 3
0
votes
0 answers

Deserialize PrimaryKey (DynamoDB) with Jackson

An error is thrown when I'm trying to deserialize PrimaryKey (serialization goes well with Jackson). I'm trying the following: Myobject myObject =(Myobject) mapper.convertValue(obj.get("myObject"), MyObject.class); with object: public class…
jhagege
  • 1,486
  • 3
  • 22
  • 36
0
votes
0 answers

How can I let my Elastic Beanstalk web application interact with a Simple Storage Service bucket? (Java, EB, S3)

I am working on a project, where the user can upload an image which will be stored remotely. I am building a Java web app through Elastic Beanstalk (EB), where the user's images will be stored in Simple Storage Service (S3). The code required to do…