548 questions
1 vote
1 answer
51 views
Spring Boot AWS Secrets Manager keys not loaded despite correct config/imports
I'm trying to import secrets from AWS Secrets Manager into my Spring Boot application hosted on an ECS container using spring.config.import in application.yml. However, I'm getting the following error:...
0 votes
0 answers
89 views
No duplicate IdentityProperty names allowed - S3Client
I’m running an AWS Lambda written in Java 21 with Spring Boot 3. My Lambda uses an S3 client, which I instantiate as follows: @Configuration public class AwsConfig { @Bean public S3Client ...
0 votes
0 answers
82 views
Can't authenticate through SSO with Java AWS SDK
This is the actual error I'm getting: software.amazon.awssdk.core.exception.SdkClientException: Unable to load credentials from any of the providers in the chain: AwsCredentialsProviderChain: [ ...
2 votes
1 answer
65 views
How to delete resource record from route 53 using AWS JAVA SDK
Im newbie in java and trying trying to write code to delete specific record from route 53. so far, I have written following code by referring java doc. package oe.k8s; import java.util.ArrayList; ...
0 votes
1 answer
328 views
Java API for generating and verifying MAC using AWS KMS key
Essentially, I want to perform this "Sign" mechanism for a symmetric - in particular HMAC - key that I've generated in my AWS KMS (CMK). But obviously, the SignRequest or SignResponse ...
1 vote
1 answer
267 views
EventBridge one time schedule expression error
I'm trying to schedule a one time event on AWS EventBridge from my app. I'm using AWS java SDK: implementation(platform("software.amazon.awssdk:bom:2.20.56")) implementation("...
1 vote
2 answers
239 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 ...
1 vote
3 answers
164 views
I deleted old version JavaFX and downloaded a new version and in command line it shows no source files
Currently, I updated my java SDK from version 18 to version 21.0.3 in my Mac (Monterey 12.7.4). Before installation i deleted the previous version sdk completely as below: sudo rm -fr /Library/...
0 votes
0 answers
2k views
AWS Java SDK error: Unable to load credentials from any of the providers
I'm writing a test to see if I can access credentials stored in AWS secrets manager, in Java on my local machine. I've tested that I have an active session on my machine by running the aws sts get-...
0 votes
1 answer
686 views
aws java: parse S3Put event coming from SQS to lambda
It's been a surprise for me to see that handle event sources is something handcrafty... I mean, I've been strugling for some days to try to receive ("deserialize") an S3Put event into my ...
-1 votes
1 answer
120 views
Get Reservation Utilization from AWS Cost explorer for multiple services
How to get Reservations Utilization from AWS Cost explorer for both virtual machines and RDS at the same time? I tried following code, but it throws error as we are allowed to pass only 1 service at a ...
0 votes
1 answer
205 views
Stream a large SQL ResultSet directly to an S3 bucket in java
I have a (possibly) quite large ResultSet when querying a (Vertica) SQL Database, and because it won't fit in memory I'm trying to find a way to stream the results (in CSV form) directly to an S3 ...
1 vote
0 answers
256 views
How to find all regions given a country name in AWS Java SDK?
This class provides constants for all the regions AWS supports. However instead of manually creating a list in my app for all US regions, is there a way to get all supported regions from AWS SDK ...
0 votes
0 answers
39 views
Trying to create HTTP POST request in Lambda but Params are in gibberish - Java
I have the below code and the POST params are always gibberish even though I know my entry id is valid Getting the following message - Missing parameter "entryId"< Seems like the ...
3 votes
2 answers
327 views
Can't get AWS cloudwatch metrics for Elasticache in Java
I am trying to retrieve some Elasticache metrics from CloudWatch using Java SDK 1.x. I have several classes for multiple services, and they all work, except for Elasticache. This class is passed a ...