I’m using aws s3 SDK in my code. In my tests I’m trying to create/drop buckets for the test. My sdk version is 1.11.800 : The creation’s code is exactly the same as in aws examples : The exception : I got more than 100 buckets in my account but when I try to create a bucket in the aws
Tag: amazon-web-services
How do I set up an AWS S3 Object Redirect via the Java SDK
I’m asking this question in order to answer it and point others in the right direction faster then I got there. I spent far too long looking for the answer as most S3 Object Redirection questions and their answers had to do with the technical detail of confusing the S3 bucket access point for the S3 website access point. What,
How to specify JVM to gradle when using AWS lambda
I’m using AWS Lambda with Java and I’m running into this issue. Can someone help? “gradlew is using a JVM with major version 14 which is newer than 11 that is supported by AWS Lambda. The compiled function code may not run in AWS Lambda unless the project has been configured to be compatible with Java 11 using ‘targetCompatibility’ in
SpringBoot – Java AWS SDK 2 DynamoDB Enhanced Client and devtools problem
I am using Spring Boot 2.17 and java sdk and dynamodb-enhanced ‘2.13.8’. I am calling with the enhanced client an item like this: it leads when called to this error: Switching the livereload to enabled: false did not help but completly removing the devtools worked. But this a not statisfying solution since I want to use the devtools. Thanks for
Convert from object to AWS Kinesis -> Java Cannot deserialize instance of `java.util.Date` out of VALUE_NUMBER_FLOAT token
I am working on a AWS lambda function in order to get dynamically a SNS Event or a Kinesis Event, to do so, in my lambda function I am getting an Object as parameter: Then, I am using Jackson in order to convert it to SNS or Kinesis dynamically: The problem is that, when I’m using the convertToKinesisEvent function I
Add AWS Signature Header to all rest assured requests
I’m trying to call an get api which is hosted in aws api gateway via rest-assured I’m able to sign the request and make a call. But to sign the request, I need to pass the full url to AWS to generate the Authorization Header. For Ex. If I’m going to access an an endpoint https://my-aws-api.com/basepath/v1/request/123 I need to sign
How the function changeMessageVisibility of sqs message extends the visibility time?
In its documentation of ChangeMessageVisibility function, Amazon gives the following example: For example, you have a message with a visibility timeout of 5 minutes. After 3 minutes, you call ChangeMessageVisibility with a timeout of 10 minutes. You can continue to call ChangeMessageVisibility to extend the visibility timeout to the maximum allowed time. If you try to extend the visibility timeout
AWS Java SDK for service to service Oauth client credentential flow authentication with Cognito user pool?
Situation: I have java background process service running that needs to access a secured REST API endpoint. The API endpoint an AWS lambda function running behind Amazon API Gateway, using the Serverless framework. It is secured with a Amazon Cognito User Pool Authorizer. I have created an App Client for my Java background service, which is attached to the user
How to connect to DynamoDB on AWS using a Spring Boot application running on local system?
I’m working on Spring Boot microservice REST based application and backedn database is currently local Dynamodb database. I can make REST calls using Postman to my application running locally and can perform CRUD operation with the local dynamodb database. Now I want to make changes in the configuration so that whenever I make similar CRUD operations on my application running
Simple dynamic JTree-based S3 bucket/object chooser example
Before writing my own custom implementation, I have been googling for a complete example of a simple tree-like JTree/JDialog that allows me to dynamically load and expand the contents of a S3 bucket or sub-S3-object-keys. In other words, I don’t want to recursively prefetch all the objects from different buckets beforehand and populate a JTree. The reason is that there