I am trying to access a aws webservice here I have lambda expression, but my project is in java 7, So I want to convert this code to normal method. Answer A lambda expression can be translated into either an anonymous class or a named class. In your example, you need a class that implements the interface: If we look
Tag: amazon-web-services
Get Maven Version in an AWS Lambda
I am developing an AWS Lambdas using java. It would be very useful if, in the lambda, there was a way to log the maven version of the lambda in the log file so we can track what versions of lambdas are running in different environments. Normally this could be done pretty easily using the code below: Unfortunately it always
AWS Lambda not finding Shared Object File in Layer
I’m trying to create a Lambda function that runs Selenium tests in Java as part of a CI/CD pipeline in AWS. However, after the function installs Chromedriver, it fails because a .so file that Chromedriver requires is missing: I have read that you can include native libraries via Software Layers in Lambda, and I understand that you have to compile
Gremlin Driver blocks while initializing ConnectionPool with multiple endpoints
We are running a neptune DB in AWS. We have one writer and 3 reader instances. A few weeks ago, we found out, that the load balancing does not work as expected. We figured out, that our software instance is connecting to just one reader and keeps this connection until EOL. So the other reader instances were never be taken.
Spring Boot Fails while maven test …jdk8 and aws-sdk-bom 1.11
This is my pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.1.6.RELEASE com.dummy lattt 0.0.1-SNAPSHOT war lattt lattt I have 2 junit test and these are failing repeatedly 1.Installed and Using jdk 8 2.But aws-sdk-bom runs with 1.11.618 and downloads&executes test with 1.11.618 3.And throws the error Test file How to execute the mvn test with errors Authentication Provider ->Yes Answer “Could not find
Image and PDF files getting corrupted while uploading on AWS S3
I am trying to upload images and PDF on AWS S3 using my Spring Boot app. They are getting uploaded in corrupt format without any error. Text files are uploaded successfully. Below is the dependencies we have used. Answer My code works fine. The issue was in the AWS API Gateway. We need to add ‘*/*’ in the Binary Media
AWS Transcript: file to text returns nonsense
This is a follow-on question to AWS Transcribe S3 .wav file to text. I use a stream to read and send a .wav file contents to AWS. Instead of getting back the correct transcript, I get nonsense like a bunch of “Yeah.” statements. It looks like AWS isn’t able to interpret the byte stream correctly, but I’m not sure what’s
AWS Transcribe S3 .wav file to text
I am trying to use aws Transcribe to convert a wav file to text. I have uploaded a wav file to S3, which is located here and it has public read/write permissions: https://s3.us-east-1.amazonaws.com/csld8xmsdksdf8s9sk3mmdjsdifkjksdijsldk/Transcribe2.wav. The wav file is valid. I can download it in my browser and replay it (and it sounds like the origin recording), so I think we can
AWS Exception “Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4” even after set the v4 signature
I have below code to connect to AWS S3. However, I got an error I googled online, and the suggestion is to set the signature to version 4, which I did already. Any thoughts? Note my aws jdk is pretty dated as I cannot upgrade it due to some other libs conflicts. Answer Setting AWS SDK client configuration to V4
Save text pdf direct to s3 without having to save it locally
I am generating pdf files using itext 5 and Java, and saving them locally then saving these local saved files on AWS S3. Is there a way to just send them straight to S3 without having to save them locally. I have seen a few examples but none is working for me. This is how am generating the pdf file