'Aws Lambda Java for storing Image in S3
I am trying to make a lambda function which will store the image in S3 bucket using Java .
The issue is my whenever I am invoking the Lambda using Http API, it gives me Internal server error. I have tried to use simple code to upload the text file in s3 bucket as well However it is not working. I have set up a IAM role for this Lambda with following permissions:-
- LambdaBasicExecution
- S3 full Access
- CloudWatch Logs
However my Lambda Function is not able to trigger the S3 bucket. It seems that there is some issue with the configuration. `
Solution 1:[1]
Answering if anyone face this issue like I faced:-
The issue was with Maven Dependency. I was using S3 SDK version which was picking up mismatch Object versions for other Aws SDKs and it was giving Internal Server Error.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sahil Kairon |
