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

How to display particular EC2 instance cost (price details) through java programmatically

I am creating AWS instances programmatically using AWS Java API. This entire process is developed as an web application. Now the question is, after successfully purchasing an EC2 instance, how can I display the price details of that particular…
0
votes
0 answers

How to display aws ec2,rds price details in my java web application page

I am new in aws. i want display aws ec2 and rds price details in my website(developing at java spring). Thanks, SriRam.
0
votes
1 answer

Getting null dns of newly created instance

I am writing below code to get public dns of newly created instance however i am getting null DescribeInstancesResult describeInstancesRequest = amazonEC2Client.describeInstances(new DescribeInstancesRequest()); List reservations =…
aquaabhi
  • 3
  • 2
0
votes
1 answer

Add tag to load balancer

I am adding tags to load balancer in java using below code: AmazonElasticLoadBalancingClient elbClient = new AmazonElasticLoadBalancingClient(credentials); AddTagsRequest addTagReq = new AddTagsRequest(); addTagReq.setTags("Name","Value"); However…
Aquarius24
  • 1,806
  • 6
  • 33
  • 61
0
votes
1 answer

Querying items by secondary index with only secondary hashKey, no rangeKey

I have a table in dynamoDb with a primary hashKey itemId. Items also have a relationship to a parent item, so besides querying them by its itemId, I also want to be able to retrieve all the children of a parent, so I added another attribute…
user331244
  • 601
  • 9
  • 19
0
votes
1 answer

how to copy rds snapshot one region to another region using java api programatically

I am new in amazon web Services. How to copy RDS Snapshot one region to another Region using aws-sdk-api java programmatic.
Sri Ram
  • 33
  • 6
0
votes
2 answers

Linking AWS with Java - Extreme Basics

I haven't used Java in a long while but I am trying to write a simple Java application which utilizes the AWS API. The part I am stuck at is that I can't exactly remember how to link the API to the Java code. I am not using eclipse and I don't want…
srz2
  • 162
  • 1
  • 10
0
votes
0 answers

https fails for java sdk for aws-s3

I am using java sdks for was to connect to s3 over https protocol. O have the following. ClientConfiguration clientconf = new ClientConfiguration(); clientconf.setProtocol(Protocol.HTTPS); s3client = new…
Scooby
  • 3,371
  • 8
  • 44
  • 84
0
votes
1 answer

Receiving message from SQS: received message is different from sent message

I am working with a SQS queue where I send an element using Python boto. When I try to receive it from Java, I get something else, not the same body. This is my Java: CreateQueueRequest createQueueRequest = new…
sau
  • 1,316
  • 4
  • 16
  • 37
0
votes
2 answers

Not able to create a VPC in AWS using Java SDK

Below is my code using the API to create VPC in AWS, but I am getting an error. Code: CreateAccessKeyRequest key = new CreateAccessKeyRequest(); BasicAWSCredentials cred = new BasicAWSCredentials("", ""); key.setRequestCredentials(cred); AmazonEC2…
pavan kumar
  • 102
  • 1
  • 2
  • 11
0
votes
1 answer

Access EC2 Instance using Basic Credentials

I'm trying to use the Java SDK to programmatically stop an EC2 instance. I'm very new the AWS api, but what I'm trying to do should be very basic: BasicAWSCredentials credentials = new BasicAWSCredentials(ACCESS_KEY, SECRET_KEY); AmazonEC2Client…
user244145
  • 73
  • 1
  • 11
-1
votes
3 answers

Why am I getting 504 Gateway Time-out after updating aws-java-sdk version in Spring-Boot app on AWS?

I am having a spring boot app and it's deployed over the AWS EKS cluster. There is one maven dependency 'aws-java-sdk' . Earlier it was running fine with the older version - 1.11.52, but when I have updated the version to - 1.12.470. It start giving…
-1
votes
1 answer

AWS Lambda Java - Execute DynamoDB save and send SNS SMS in same function call

I'm trying to save an item in DynamoDB and send an OTP from the same function. I'm able to save the data but not able to receive the OTP SMS. I guess my code is exiting the function before the SMS is sent. I'm able to save and send SMS in two…
-1
votes
1 answer

Is there a way to batch upload a collection of InputStreams to Amazon S3 using the Java SDK?

I am aware of the TransferManager and the .uploadFileList() and .uploadFileDirectory() methods, however they accept java.io.File types as arguments. I have a collection of byte array input streams containing jpeg image data. I don't want to create…
Nalyd
  • 95
  • 1
  • 16
-1
votes
1 answer

Java AWS SDK v1 - S3 API - Not able to upload multiple files parallely using multipart api

I have 5 files of size 200 MB each. I am uploading these files parallel y using Executor service and using TransferManager with multipart threashold = 50 MB and waiting for upload to finish by using blocking method call to upload.waitForCompletion()…
user10916892
  • 825
  • 12
  • 33
1 2 3
36
37