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

Maven shade-plugin relocation not updating a entry in resource file

I am trying shade aws-java-sdk in order to resolve library conflicts as per the recommendation mentioned here. But I see that maven-shade-plugin, the entries in resource files (text) are not getting updated. For example contents of the…
4
votes
4 answers

Get EC2 Instance XML Description using AWS Java SDK?

We have a scenario in which we need to retrieve the description info for EC2 instances running on AWS. To accomplish this, we are using the AWS Java SDK. In 90% of our use case, the com.amazonaws.services.ec2.model.Instance class is exactly what…
Shadowman
  • 11,150
  • 19
  • 100
  • 198
4
votes
0 answers

dynamodb condition expression with multiple values

I using following query expression to get Campaign for a particular id DynamoDBQueryExpression expression = new DynamoDBQueryExpression() .withKeyConditionExpression("#id = :val1") …
mihir S
  • 617
  • 3
  • 8
  • 23
4
votes
3 answers

Read the contents of a file from AWS s3 using its Pre-signed URL

I am trying to read and print the contents of a file from a s3 bucket using AWS Java Sdk. I have a presigned URL that lets me access (and download) the file. But, I am unable to read the file using the presigned-URL. I am looking to do something…
Ratnadeep
  • 123
  • 1
  • 11
4
votes
1 answer

Amazon DynamoDB putItem returning null

I am using AmazonDynamoDBClient putItem method to insert item in DB. return type of putItem is PutItemResult but i m getting it as null. AmazonDynamoDBClient client = new AmazonDynamoDBClient(); PutItemRequest r = new…
Rohit Chouhan
  • 119
  • 1
  • 2
  • 9
4
votes
2 answers

Deleting AWS SQS messages using Java sdk

I'm exploring the AWS SQS service. When trying to delete message from queue using java sdk i'm facing some issue. A queue is created in SQS and it has three messages. The queue is backed by AWS S3 storage for handling large size messages. Here is…
Vignesh
  • 364
  • 2
  • 11
  • 19
4
votes
2 answers

Does AWS SDK for Java communicate in a secure channel with S3 servers?

I would like to think that it's a big YES, but I prefer to ask before to suppose. So, do you know if the AWS SDK for Java always uses a secure channel when I download/upload files from/to S3 buckets? Or this is something that should be configured…
JonDoe297
  • 1,601
  • 1
  • 15
  • 21
4
votes
2 answers

How to get all results in a query to a aws dynamodb table?

the first example given in http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryingJavaDocumentAPI.html which returns a ItemCollection According to…
shrewquest
  • 541
  • 1
  • 7
  • 22
4
votes
1 answer

Amazon SQS Queue Does Not Exist

I am trying to access an amazon queue using java sdk. The queue is set in an environment with EC2 instance roles so I do not need to use credentials to access it. Here is my code public AWSSimpleQueueServiceClient(String queueName, String endPoint)…
Programmer
  • 175
  • 1
  • 2
  • 17
4
votes
1 answer

Including aws-java-sdk jar in Production

The only feature of AWS that we are going to use is s3. I have the aws-java-sdk-.jar which is ~14MB jar. Is there a standalone jar available for just using s3 (I mean the core components and s3 features)? I looked up on the web, tried…
TJ-
  • 14,085
  • 12
  • 59
  • 90
3
votes
0 answers

AWS SDK 2.x issues in PUTOBJECT request. Unable to add headers

We recently migrated from AWS SDK 1.x to 2.x for Java and put operation for AWS S3 is not happening. S3 bucket is encryption enabled ( using AWS KMS key). Below is the code I am trying to use but I am getting error mentioned below that Server Side…
3
votes
3 answers

Unable to retrieve AWS Secrets from Lambda running Java

I am writing a AWS Lambda function that will handle requests from discord. I am storing my discord values in AWS SecretsManager and need to retrieve them so I can verify the requests. I have my lambda set to time out after 30 seconds and when my…
locus2k
  • 2,802
  • 1
  • 14
  • 21
3
votes
1 answer

How to access AWS S3 with KMS from org.apache.hadoop.fs.s3a.S3AFileSystem API

I have EC2 configured with fs.s3a.aws.credentials.provider com.amazonaws.auth.InstanceProfileCredentialsProvider fs.s3a.server-side-encryption-algorithm
3
votes
1 answer

How to generate AWS credential report for all accounts in an organization

I am looking to generate a AWS credential report for all the accounts under an organization. Is there any way to generate the consolidated report of accounts. I know we can generate a credential report per account (one) under an organization as per…
3
votes
2 answers

Querying a Global Secondary Index of a DynamoDB table without using the partition key

I have a DynamoDB table with partition key as userID and no sort key. The table also has a timestamp attribute in each item. I wanted to retrieve all the items having a timestamp in the specified range (regardless of userID i.e. ranging across all…