139 questions
0
votes
1
answer
37
views
AWS Credentials not loading for one user in Java
Our team has created a Java command-line utility that connects to AWS S3. We aren't specifying a particular credentials source, we're just using S3Client.builder().region(region).build() and allowing ...
-1
votes
0
answers
16
views
API Gateway Access Errors with Java SDK
I'm using the AWS SDK v2 in my Java program to send a request to an API Gateway I've hosted. I'm seeing some unexpected errors where I'm receiving a 403 Forbidden response from my gateway, but only in ...
0
votes
1
answer
37
views
Non-ascii email address with Java & AWS SES
I'm using AWS SES to send emails from a Java application using AWS SDK v2.
ASCII email addresses work fine ([email protected]), but when I try to send email to address with non-ascii characters (...
1
vote
1
answer
200
views
Drop checksum header on AWS Java SDK 2 >= 2.30.0
We are having this issue where since some recent update the AWS SDK for Java always sends a x-amz-content-sha256 hash header in S3 putObject requests.
That works fine with AWS but our allegedly ...
2
votes
2
answers
152
views
What's the cost effective way to retrieve batch DDB Items by LSI sort keys?
I have a DDB table with the following structure:
CustmerID (PK)
emailId (SortKey)
orderId (LSI)
I want to get batch items using AWS DynamoDB Java SDK for the following 2 patterns:
Get Items by a PK ...
0
votes
0
answers
55
views
how to set JVM options for AWS Secrets manager via service specific endpoint override
I have a requirement where I need to override AWS secrets manager via my local endpoint to use localstack based secrets manager.
I was able to use AWS_ENDPOINT_URL_SECRETS_MANAGER and that works but I ...
0
votes
0
answers
52
views
AWS SQS error : The security token included in the request is expired
AWS sqs config class for aws sqs connection
@Configuration
@EnableSqs
public class AwsSqsConfig {
@Bean
public SimpleMessageListenerContainerFactory ...
1
vote
2
answers
645
views
How to programmatically create IAM Roles Anywhere sessions with AWS SDK for Java V2 in a Spring Boot service
I'm working on a Spring Boot backend service where I need to access certain S3 buckets programmatically using IAM Roles Anywhere. I found the following documentation for RolesAnywhereClient in the AWS ...
1
vote
1
answer
528
views
User is not authorized to perform: bedrock:CreateKnowledgeBase
I am trying to create a bedrock knowledgebase using aws sdk. but when i try to hit the createKnowledgeBase method if gives me the below error.
User: arn:aws:iam::85172538xxxx:user/bedrock_assist_user ...
0
votes
1
answer
493
views
How to set the request body for POST request using the AwsCrtHttpClient (AWS CRT HTTP Client?)
I am creating HTTP requests with the AWS CRT HTTP Client, but I cannot find a way to set the request body. I am using Java 11 with the AWS SDK version 2.27.9. No matter how I configure this ...
0
votes
1
answer
281
views
Issues with Region in S3AsyncClient and S3TransferManager using Minio with AWS SDK for Java
I encountered an issue while configuring S3AsyncClient using the AWS SDK for Java in a Spring Boot application. Despite setting all the necessary properties, I keep receiving the following error ...
1
vote
1
answer
40
views
Getting a number of items from a list by pagination in Dynamodb
I have a dynamodb structure like below:
{
"PK" : "queue#1234#view",
"SK" : "board#1234",
"items" : [
"1234&...
2
votes
1
answer
414
views
Cannot find symbol class ResponseHeaderOverrides location: package software.amazon.awssdk.services.s3.model Java SDK v2 AWS
I am a beginner to Java programming.
I am trying to do a GET on a object in S3 using the AWS Java SDK v2. The code is staightforward hello world code that I have from a video tutorial.
//get ...
0
votes
1
answer
795
views
DynamoDB java sdk v2 client batchWrite retries
Does the DynamoDB Java SDKv2 offer a retry strategy for batchWriteItem calls? I'm looking for a retry strategy that retries items that would otherwise be returned as unprocessedItems.
In the DynamoDB ...
0
votes
2
answers
139
views
Is there an equivalent of the socketTimeout configuration option for the AwsCrtHttpClient?
In the AWS Java SDKv2, the ApacheHttpClient and UrlConnectionHttpClient both have a socketTimeout configuration option:
socketTimeout(Duration socketTimeout)
The amount of time to wait for data to be ...