Sample Java project on AWS Lambda
sam build
sam local invoke -e events/test.json
sam local invoke -e events/test.json -d 5005
Note: (IntelliJ) Run -> Debug... -> Remote JVM Debug
sam deploy --stack-name java-calculator --guided
sam logs --stack-name java-calculator --tail
aws lambda invoke --function-name java-calculator --payload file://events/test.json --cli-binary-format raw-in-base64-out /tmp/java-calculator.out
sam delete
https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html