Skip to content

Tag: amazon-web-services

AWS SDK for java 1.7

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 …

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: Unfortuna…

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 …